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) = "<=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. The field name. Currently you can only use filtering with the [Cluster.name] field.
*
* 2. An `=` operator.
*
* 3. The value in double quotes (`"`). Must be 1-63 characters long and match the regular expression `[a-zA-Z0-9_-]+`.
*
* A filter expression that filters resources listed in the response.
*
* The expression must specify:
*
* 1. The field name. Currently you can only use filtering with the [Cluster.name] field.
*
* 2. An `=` operator.
*
* 3. The value in double quotes (`"`). Must be 1-63 characters long and match the regular expression `[a-zA-Z0-9_-]+`.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
com.google.protobuf.ByteString
getFilterBytes();
}
/**
* Protobuf type {@code yandex.cloud.mdb.greenplum.v1.ListClustersRequest}
*/
public static final class ListClustersRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.greenplum.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.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClustersRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClustersRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersRequest.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersRequest.Builder.class);
}
public static final int FOLDER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder to list Greenplum® clusters in.
*
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
* ID of the folder to list Greenplum® 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) = "<=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. The field name. Currently you can only use filtering with the [Cluster.name] field.
*
* 2. An `=` operator.
*
* 3. The value in double quotes (`"`). Must be 1-63 characters long and match the regular expression `[a-zA-Z0-9_-]+`.
*
* A filter expression that filters resources listed in the response.
*
* The expression must specify:
*
* 1. The field name. Currently you can only use filtering with the [Cluster.name] field.
*
* 2. An `=` operator.
*
* 3. The value in double quotes (`"`). Must be 1-63 characters long and match the regular expression `[a-zA-Z0-9_-]+`.
*
*
* 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.greenplum.v1.ClusterServiceOuterClass.ListClustersRequest)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersRequest other = (yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClustersRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClustersRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClustersRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClustersRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClustersRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ListClustersRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.greenplum.v1.ListClustersRequest)
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClustersRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClustersRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersRequest.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersRequest.Builder.class);
}
// Construct using yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClustersRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersRequest getDefaultInstanceForType() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersRequest build() {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersRequest buildPartial() {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersRequest result = new yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClustersRequest) {
return mergeFrom((yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersRequest other) {
if (other == yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClustersRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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 Greenplum® clusters in.
*
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
* ID of the folder to list Greenplum® 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) = "<=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) = "<=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. The field name. Currently you can only use filtering with the [Cluster.name] field.
*
* 2. An `=` operator.
*
* 3. The value in double quotes (`"`). Must be 1-63 characters long and match the regular expression `[a-zA-Z0-9_-]+`.
*
* A filter expression that filters resources listed in the response.
*
* The expression must specify:
*
* 1. The field name. Currently you can only use filtering with the [Cluster.name] field.
*
* 2. An `=` operator.
*
* 3. The value in double quotes (`"`). Must be 1-63 characters long and match the regular expression `[a-zA-Z0-9_-]+`.
*
*
* 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. The field name. Currently you can only use filtering with the [Cluster.name] field.
*
* 2. An `=` operator.
*
* 3. The value in double quotes (`"`). Must be 1-63 characters long and match the regular expression `[a-zA-Z0-9_-]+`.
*
*
* 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. The field name. Currently you can only use filtering with the [Cluster.name] field.
*
* 2. An `=` operator.
*
* 3. The value in double quotes (`"`). Must be 1-63 characters long and match the regular expression `[a-zA-Z0-9_-]+`.
*
*
* 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. The field name. Currently you can only use filtering with the [Cluster.name] field.
*
* 2. An `=` operator.
*
* 3. The value in double quotes (`"`). Must be 1-63 characters long and match the regular expression `[a-zA-Z0-9_-]+`.
*
*
* 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.greenplum.v1.ListClustersRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.greenplum.v1.ListClustersRequest)
private static final yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersRequest();
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClustersRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListClustersResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.greenplum.v1.ListClustersResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* This token 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.
*
* This token 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.greenplum.v1.ListClustersResponse}
*/
public static final class ListClustersResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.greenplum.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.greenplum.v1.ClusterOuterClass.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.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClustersResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClustersResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersResponse.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersResponse.Builder.class);
}
public static final int CLUSTERS_FIELD_NUMBER = 1;
private java.util.List clusters_;
/**
*
*
* repeated .yandex.cloud.mdb.greenplum.v1.Cluster clusters = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterOuterClass.ClusterOrBuilder getClustersOrBuilder(
int index) {
return clusters_.get(index);
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
private volatile java.lang.Object nextPageToken_;
/**
*
* This token 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.
*
* This token 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.greenplum.v1.ClusterServiceOuterClass.ListClustersResponse)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersResponse other = (yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClustersResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClustersResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClustersResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClustersResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClustersResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ListClustersResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.greenplum.v1.ListClustersResponse)
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClustersResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClustersResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersResponse.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersResponse.Builder.class);
}
// Construct using yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClustersResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersResponse getDefaultInstanceForType() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersResponse build() {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersResponse buildPartial() {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersResponse result = new yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClustersResponse) {
return mergeFrom((yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersResponse other) {
if (other == yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClustersResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterOuterClass.Cluster, yandex.cloud.api.mdb.greenplum.v1.ClusterOuterClass.Cluster.Builder, yandex.cloud.api.mdb.greenplum.v1.ClusterOuterClass.ClusterOrBuilder> clustersBuilder_;
/**
*
* This token 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.
*
* This token 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;
}
}
/**
*
* This token 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;
}
/**
*
* This token 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;
}
/**
*
* This token 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.greenplum.v1.ListClustersResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.greenplum.v1.ListClustersResponse)
private static final yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClustersResponse();
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClustersResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateClusterRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.greenplum.v1.CreateClusterRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the folder to create the Greenplum® cluster in.
*
* Deployment environment of the Greenplum® cluster.
*
*
* .yandex.cloud.mdb.greenplum.v1.Cluster.Environment environment = 5 [(.yandex.cloud.required) = true];
* @return The enum numeric value on the wire for environment.
*/
int getEnvironmentValue();
/**
*
* Deployment environment of the Greenplum® cluster.
*
*
* repeated string security_group_ids = 15;
* @return A list containing the securityGroupIds.
*/
java.util.List
getSecurityGroupIdsList();
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 15;
* @return The count of securityGroupIds.
*/
int getSecurityGroupIdsCount();
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 15;
* @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 = 15;
* @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 = 17;
* @return A list containing the hostGroupIds.
*/
java.util.List
getHostGroupIdsList();
/**
*
* Host groups to place VMs of the cluster in.
*
*
* repeated string host_group_ids = 17;
* @return The count of hostGroupIds.
*/
int getHostGroupIdsCount();
/**
*
* Host groups to place VMs of the cluster in.
*
*
* repeated string host_group_ids = 17;
* @param index The index of the element to return.
* @return The hostGroupIds at the given index.
*/
java.lang.String getHostGroupIds(int index);
/**
*
* Host groups to place VMs of the cluster in.
*
*
* repeated string host_group_ids = 17;
* @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);
/**
*
* A Greenplum® cluster maintenance window. Should be defined by either one of the two options.
*
*
* .yandex.cloud.mdb.greenplum.v1.MaintenanceWindow maintenance_window = 19;
* @return Whether the maintenanceWindow field is set.
*/
boolean hasMaintenanceWindow();
/**
*
* A Greenplum® cluster maintenance window. Should be defined by either one of the two options.
*
* Custom labels for the Greenplum® 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 Greenplum® cluster.
*
*
* .yandex.cloud.mdb.greenplum.v1.Cluster.Environment environment = 5 [(.yandex.cloud.required) = true];
* @return The enum numeric value on the wire for environment.
*/
@java.lang.Override public int getEnvironmentValue() {
return environment_;
}
/**
*
* Deployment environment of the Greenplum® cluster.
*
*
* .yandex.cloud.mdb.greenplum.v1.Cluster.Environment environment = 5 [(.yandex.cloud.required) = true];
* @return The environment.
*/
@java.lang.Override public yandex.cloud.api.mdb.greenplum.v1.ClusterOuterClass.Cluster.Environment getEnvironment() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.greenplum.v1.ClusterOuterClass.Cluster.Environment result = yandex.cloud.api.mdb.greenplum.v1.ClusterOuterClass.Cluster.Environment.valueOf(environment_);
return result == null ? yandex.cloud.api.mdb.greenplum.v1.ClusterOuterClass.Cluster.Environment.UNRECOGNIZED : result;
}
public static final int CONFIG_FIELD_NUMBER = 6;
private yandex.cloud.api.mdb.greenplum.v1.ClusterOuterClass.GreenplumConfig config_;
/**
*
* Greenplum® cluster configuration.
*
*
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig config = 6;
* @return Whether the config field is set.
*/
@java.lang.Override
public boolean hasConfig() {
return config_ != null;
}
/**
*
* Configuration of the Greenplum® segment subcluster.
*
*
* .yandex.cloud.mdb.greenplum.v1.SegmentSubclusterConfigSpec segment_config = 8;
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.SegmentSubclusterConfigSpecOrBuilder getSegmentConfigOrBuilder() {
return getSegmentConfig();
}
public static final int MASTER_HOST_COUNT_FIELD_NUMBER = 9;
private long masterHostCount_;
/**
*
* Number of hosts in the master subcluster.
*
*
* int64 master_host_count = 9;
* @return The masterHostCount.
*/
@java.lang.Override
public long getMasterHostCount() {
return masterHostCount_;
}
public static final int SEGMENT_IN_HOST_FIELD_NUMBER = 10;
private long segmentInHost_;
/**
*
* Number of segments per host.
*
*
* int64 segment_in_host = 10;
* @return The segmentInHost.
*/
@java.lang.Override
public long getSegmentInHost() {
return segmentInHost_;
}
public static final int SEGMENT_HOST_COUNT_FIELD_NUMBER = 11;
private long segmentHostCount_;
/**
*
* Number of hosts in the segment subcluster.
*
*
* int64 segment_host_count = 11;
* @return The segmentHostCount.
*/
@java.lang.Override
public long getSegmentHostCount() {
return segmentHostCount_;
}
public static final int USER_NAME_FIELD_NUMBER = 12;
private volatile java.lang.Object userName_;
/**
*
*
* string network_id = 14 [(.yandex.cloud.required) = true, (.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 = 15;
private com.google.protobuf.LazyStringList securityGroupIds_;
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 15;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_;
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 15;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 15;
* @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 = 15;
* @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 = 16;
private boolean deletionProtection_;
/**
*
* Determines whether the cluster is protected from being deleted.
*
*
* bool deletion_protection = 16;
* @return The deletionProtection.
*/
@java.lang.Override
public boolean getDeletionProtection() {
return deletionProtection_;
}
public static final int HOST_GROUP_IDS_FIELD_NUMBER = 17;
private com.google.protobuf.LazyStringList hostGroupIds_;
/**
*
* Host groups to place VMs of the cluster in.
*
*
* repeated string host_group_ids = 17;
* @return A list containing the hostGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getHostGroupIdsList() {
return hostGroupIds_;
}
/**
*
* Host groups to place VMs of the cluster in.
*
*
* repeated string host_group_ids = 17;
* @return The count of hostGroupIds.
*/
public int getHostGroupIdsCount() {
return hostGroupIds_.size();
}
/**
*
* Host groups to place VMs of the cluster in.
*
*
* repeated string host_group_ids = 17;
* @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 to place VMs of the cluster in.
*
*
* repeated string host_group_ids = 17;
* @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 MAINTENANCE_WINDOW_FIELD_NUMBER = 19;
private yandex.cloud.api.mdb.greenplum.v1.Maintenance.MaintenanceWindow maintenanceWindow_;
/**
*
* A Greenplum® cluster maintenance window. Should be defined by either one of the two options.
*
*
* .yandex.cloud.mdb.greenplum.v1.MaintenanceWindow maintenance_window = 19;
* @return Whether the maintenanceWindow field is set.
*/
@java.lang.Override
public boolean hasMaintenanceWindow() {
return maintenanceWindow_ != null;
}
/**
*
* A Greenplum® cluster maintenance window. Should be defined by either one of the two options.
*
* Deployment environment of the Greenplum® cluster.
*
*
* .yandex.cloud.mdb.greenplum.v1.Cluster.Environment environment = 5 [(.yandex.cloud.required) = true];
* @return The enum numeric value on the wire for environment.
*/
@java.lang.Override public int getEnvironmentValue() {
return environment_;
}
/**
*
* Deployment environment of the Greenplum® cluster.
*
*
* .yandex.cloud.mdb.greenplum.v1.Cluster.Environment environment = 5 [(.yandex.cloud.required) = true];
* @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 Greenplum® cluster.
*
*
* .yandex.cloud.mdb.greenplum.v1.Cluster.Environment environment = 5 [(.yandex.cloud.required) = true];
* @return The environment.
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterOuterClass.Cluster.Environment getEnvironment() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.greenplum.v1.ClusterOuterClass.Cluster.Environment result = yandex.cloud.api.mdb.greenplum.v1.ClusterOuterClass.Cluster.Environment.valueOf(environment_);
return result == null ? yandex.cloud.api.mdb.greenplum.v1.ClusterOuterClass.Cluster.Environment.UNRECOGNIZED : result;
}
/**
*
* Deployment environment of the Greenplum® cluster.
*
*
* .yandex.cloud.mdb.greenplum.v1.Cluster.Environment environment = 5 [(.yandex.cloud.required) = true];
* @param value The environment to set.
* @return This builder for chaining.
*/
public Builder setEnvironment(yandex.cloud.api.mdb.greenplum.v1.ClusterOuterClass.Cluster.Environment value) {
if (value == null) {
throw new NullPointerException();
}
environment_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Deployment environment of the Greenplum® cluster.
*
*
* string network_id = 14 [(.yandex.cloud.required) = true, (.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_ & 0x00000002) != 0)) {
securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(securityGroupIds_);
bitField0_ |= 0x00000002;
}
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 15;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_.getUnmodifiableView();
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 15;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 15;
* @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 = 15;
* @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 = 15;
* @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 = 15;
* @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 = 15;
* @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 = 17;
* @return A list containing the hostGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getHostGroupIdsList() {
return hostGroupIds_.getUnmodifiableView();
}
/**
*
* Host groups to place VMs of the cluster in.
*
*
* repeated string host_group_ids = 17;
* @return The count of hostGroupIds.
*/
public int getHostGroupIdsCount() {
return hostGroupIds_.size();
}
/**
*
* Host groups to place VMs of the cluster in.
*
*
* repeated string host_group_ids = 17;
* @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 to place VMs of the cluster in.
*
*
* repeated string host_group_ids = 17;
* @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 to place VMs of the cluster in.
*
*
* repeated string host_group_ids = 17;
* @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 to place VMs of the cluster in.
*
*
* repeated string host_group_ids = 17;
* @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 to place VMs of the cluster in.
*
*
* repeated string host_group_ids = 17;
* @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;
}
/**
*
*
* .yandex.cloud.mdb.greenplum.v1.CloudStorage cloud_storage = 21;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.greenplum.v1.ClusterOuterClass.CloudStorage, yandex.cloud.api.mdb.greenplum.v1.ClusterOuterClass.CloudStorage.Builder, yandex.cloud.api.mdb.greenplum.v1.ClusterOuterClass.CloudStorageOrBuilder>
getCloudStorageFieldBuilder() {
if (cloudStorageBuilder_ == null) {
cloudStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.greenplum.v1.ClusterOuterClass.CloudStorage, yandex.cloud.api.mdb.greenplum.v1.ClusterOuterClass.CloudStorage.Builder, yandex.cloud.api.mdb.greenplum.v1.ClusterOuterClass.CloudStorageOrBuilder>(
getCloudStorage(),
getParentForChildren(),
isClean());
cloudStorage_ = null;
}
return cloudStorageBuilder_;
}
@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.greenplum.v1.CreateClusterRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.greenplum.v1.CreateClusterRequest)
private static final yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.CreateClusterRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.CreateClusterRequest();
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.CreateClusterRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateClusterRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateClusterRequest(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.greenplum.v1.ClusterServiceOuterClass.CreateClusterRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConfigSpecOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.greenplum.v1.ConfigSpec)
com.google.protobuf.MessageOrBuilder {
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6_17 greenplum_config_6_17 = 1 [json_name = "greenplumConfig_6_17"];
* @return Whether the greenplumConfig617 field is set.
*/
boolean hasGreenplumConfig617();
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6_17 greenplum_config_6_17 = 1 [json_name = "greenplumConfig_6_17"];
* @return The greenplumConfig617.
*/
yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_17 getGreenplumConfig617();
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6_17 greenplum_config_6_17 = 1 [json_name = "greenplumConfig_6_17"];
*/
yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_17OrBuilder getGreenplumConfig617OrBuilder();
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6_19 greenplum_config_6_19 = 2 [json_name = "greenplumConfig_6_19"];
* @return Whether the greenplumConfig619 field is set.
*/
boolean hasGreenplumConfig619();
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6_19 greenplum_config_6_19 = 2 [json_name = "greenplumConfig_6_19"];
* @return The greenplumConfig619.
*/
yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_19 getGreenplumConfig619();
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6_19 greenplum_config_6_19 = 2 [json_name = "greenplumConfig_6_19"];
*/
yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_19OrBuilder getGreenplumConfig619OrBuilder();
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6_21 greenplum_config_6_21 = 4 [json_name = "greenplumConfig_6_21"];
* @return Whether the greenplumConfig621 field is set.
*/
boolean hasGreenplumConfig621();
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6_21 greenplum_config_6_21 = 4 [json_name = "greenplumConfig_6_21"];
* @return The greenplumConfig621.
*/
yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_21 getGreenplumConfig621();
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6_21 greenplum_config_6_21 = 4 [json_name = "greenplumConfig_6_21"];
*/
yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_21OrBuilder getGreenplumConfig621OrBuilder();
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6_22 greenplum_config_6_22 = 5 [json_name = "greenplumConfig_6_22"];
* @return Whether the greenplumConfig622 field is set.
*/
boolean hasGreenplumConfig622();
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6_22 greenplum_config_6_22 = 5 [json_name = "greenplumConfig_6_22"];
* @return The greenplumConfig622.
*/
yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_22 getGreenplumConfig622();
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6_22 greenplum_config_6_22 = 5 [json_name = "greenplumConfig_6_22"];
*/
yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_22OrBuilder getGreenplumConfig622OrBuilder();
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6 greenplum_config_6 = 9 [json_name = "greenplumConfig_6"];
* @return Whether the greenplumConfig6 field is set.
*/
boolean hasGreenplumConfig6();
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6 greenplum_config_6 = 9 [json_name = "greenplumConfig_6"];
* @return The greenplumConfig6.
*/
yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6 getGreenplumConfig6();
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6 greenplum_config_6 = 9 [json_name = "greenplumConfig_6"];
*/
yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6OrBuilder getGreenplumConfig6OrBuilder();
/**
*
* Odyssey® pool settings.
*
*
* .yandex.cloud.mdb.greenplum.v1.ConnectionPoolerConfig pool = 3;
* @return Whether the pool field is set.
*/
boolean hasPool();
/**
*
* Odyssey® pool settings.
*
*
* .yandex.cloud.mdb.greenplum.v1.ConnectionPoolerConfig pool = 3;
* @return The pool.
*/
yandex.cloud.api.mdb.greenplum.v1.Config.ConnectionPoolerConfig getPool();
/**
*
* Odyssey® pool settings.
*
*
* .yandex.cloud.mdb.greenplum.v1.ConnectionPoolerConfig pool = 3;
*/
yandex.cloud.api.mdb.greenplum.v1.Config.ConnectionPoolerConfigOrBuilder getPoolOrBuilder();
/**
* .yandex.cloud.mdb.greenplum.v1.BackgroundActivitiesConfig background_activities = 6;
* @return Whether the backgroundActivities field is set.
*/
boolean hasBackgroundActivities();
/**
* .yandex.cloud.mdb.greenplum.v1.BackgroundActivitiesConfig background_activities = 6;
* @return The backgroundActivities.
*/
yandex.cloud.api.mdb.greenplum.v1.Config.BackgroundActivitiesConfig getBackgroundActivities();
/**
* .yandex.cloud.mdb.greenplum.v1.BackgroundActivitiesConfig background_activities = 6;
*/
yandex.cloud.api.mdb.greenplum.v1.Config.BackgroundActivitiesConfigOrBuilder getBackgroundActivitiesOrBuilder();
/**
* .yandex.cloud.mdb.greenplum.v1.PXFConfig pxf_config = 8;
* @return Whether the pxfConfig field is set.
*/
boolean hasPxfConfig();
/**
* .yandex.cloud.mdb.greenplum.v1.PXFConfig pxf_config = 8;
* @return The pxfConfig.
*/
yandex.cloud.api.mdb.greenplum.v1.Pxf.PXFConfig getPxfConfig();
/**
* .yandex.cloud.mdb.greenplum.v1.PXFConfig pxf_config = 8;
*/
yandex.cloud.api.mdb.greenplum.v1.Pxf.PXFConfigOrBuilder getPxfConfigOrBuilder();
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ConfigSpec.GreenplumConfigCase getGreenplumConfigCase();
}
/**
* Protobuf type {@code yandex.cloud.mdb.greenplum.v1.ConfigSpec}
*/
public static final class ConfigSpec extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.greenplum.v1.ConfigSpec)
ConfigSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConfigSpec.newBuilder() to construct.
private ConfigSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConfigSpec() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ConfigSpec();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConfigSpec(
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: {
yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_17.Builder subBuilder = null;
if (greenplumConfigCase_ == 1) {
subBuilder = ((yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_17) greenplumConfig_).toBuilder();
}
greenplumConfig_ =
input.readMessage(yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_17.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_17) greenplumConfig_);
greenplumConfig_ = subBuilder.buildPartial();
}
greenplumConfigCase_ = 1;
break;
}
case 18: {
yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_19.Builder subBuilder = null;
if (greenplumConfigCase_ == 2) {
subBuilder = ((yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_19) greenplumConfig_).toBuilder();
}
greenplumConfig_ =
input.readMessage(yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_19.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_19) greenplumConfig_);
greenplumConfig_ = subBuilder.buildPartial();
}
greenplumConfigCase_ = 2;
break;
}
case 26: {
yandex.cloud.api.mdb.greenplum.v1.Config.ConnectionPoolerConfig.Builder subBuilder = null;
if (pool_ != null) {
subBuilder = pool_.toBuilder();
}
pool_ = input.readMessage(yandex.cloud.api.mdb.greenplum.v1.Config.ConnectionPoolerConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pool_);
pool_ = subBuilder.buildPartial();
}
break;
}
case 34: {
yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_21.Builder subBuilder = null;
if (greenplumConfigCase_ == 4) {
subBuilder = ((yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_21) greenplumConfig_).toBuilder();
}
greenplumConfig_ =
input.readMessage(yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_21.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_21) greenplumConfig_);
greenplumConfig_ = subBuilder.buildPartial();
}
greenplumConfigCase_ = 4;
break;
}
case 42: {
yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_22.Builder subBuilder = null;
if (greenplumConfigCase_ == 5) {
subBuilder = ((yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_22) greenplumConfig_).toBuilder();
}
greenplumConfig_ =
input.readMessage(yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_22.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_22) greenplumConfig_);
greenplumConfig_ = subBuilder.buildPartial();
}
greenplumConfigCase_ = 5;
break;
}
case 50: {
yandex.cloud.api.mdb.greenplum.v1.Config.BackgroundActivitiesConfig.Builder subBuilder = null;
if (backgroundActivities_ != null) {
subBuilder = backgroundActivities_.toBuilder();
}
backgroundActivities_ = input.readMessage(yandex.cloud.api.mdb.greenplum.v1.Config.BackgroundActivitiesConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(backgroundActivities_);
backgroundActivities_ = subBuilder.buildPartial();
}
break;
}
case 66: {
yandex.cloud.api.mdb.greenplum.v1.Pxf.PXFConfig.Builder subBuilder = null;
if (pxfConfig_ != null) {
subBuilder = pxfConfig_.toBuilder();
}
pxfConfig_ = input.readMessage(yandex.cloud.api.mdb.greenplum.v1.Pxf.PXFConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pxfConfig_);
pxfConfig_ = subBuilder.buildPartial();
}
break;
}
case 74: {
yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6.Builder subBuilder = null;
if (greenplumConfigCase_ == 9) {
subBuilder = ((yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6) greenplumConfig_).toBuilder();
}
greenplumConfig_ =
input.readMessage(yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6) greenplumConfig_);
greenplumConfig_ = subBuilder.buildPartial();
}
greenplumConfigCase_ = 9;
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.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ConfigSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ConfigSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ConfigSpec.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ConfigSpec.Builder.class);
}
private int greenplumConfigCase_ = 0;
private java.lang.Object greenplumConfig_;
public enum GreenplumConfigCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
GREENPLUM_CONFIG_6_17(1),
GREENPLUM_CONFIG_6_19(2),
GREENPLUM_CONFIG_6_21(4),
GREENPLUM_CONFIG_6_22(5),
GREENPLUM_CONFIG_6(9),
GREENPLUMCONFIG_NOT_SET(0);
private final int value;
private GreenplumConfigCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static GreenplumConfigCase valueOf(int value) {
return forNumber(value);
}
public static GreenplumConfigCase forNumber(int value) {
switch (value) {
case 1: return GREENPLUM_CONFIG_6_17;
case 2: return GREENPLUM_CONFIG_6_19;
case 4: return GREENPLUM_CONFIG_6_21;
case 5: return GREENPLUM_CONFIG_6_22;
case 9: return GREENPLUM_CONFIG_6;
case 0: return GREENPLUMCONFIG_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public GreenplumConfigCase
getGreenplumConfigCase() {
return GreenplumConfigCase.forNumber(
greenplumConfigCase_);
}
public static final int GREENPLUM_CONFIG_6_17_FIELD_NUMBER = 1;
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6_17 greenplum_config_6_17 = 1 [json_name = "greenplumConfig_6_17"];
* @return Whether the greenplumConfig617 field is set.
*/
@java.lang.Override
public boolean hasGreenplumConfig617() {
return greenplumConfigCase_ == 1;
}
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6_17 greenplum_config_6_17 = 1 [json_name = "greenplumConfig_6_17"];
* @return The greenplumConfig617.
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_17 getGreenplumConfig617() {
if (greenplumConfigCase_ == 1) {
return (yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_17) greenplumConfig_;
}
return yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_17.getDefaultInstance();
}
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6_17 greenplum_config_6_17 = 1 [json_name = "greenplumConfig_6_17"];
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_17OrBuilder getGreenplumConfig617OrBuilder() {
if (greenplumConfigCase_ == 1) {
return (yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_17) greenplumConfig_;
}
return yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_17.getDefaultInstance();
}
public static final int GREENPLUM_CONFIG_6_19_FIELD_NUMBER = 2;
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6_19 greenplum_config_6_19 = 2 [json_name = "greenplumConfig_6_19"];
* @return Whether the greenplumConfig619 field is set.
*/
@java.lang.Override
public boolean hasGreenplumConfig619() {
return greenplumConfigCase_ == 2;
}
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6_19 greenplum_config_6_19 = 2 [json_name = "greenplumConfig_6_19"];
* @return The greenplumConfig619.
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_19 getGreenplumConfig619() {
if (greenplumConfigCase_ == 2) {
return (yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_19) greenplumConfig_;
}
return yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_19.getDefaultInstance();
}
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6_19 greenplum_config_6_19 = 2 [json_name = "greenplumConfig_6_19"];
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_19OrBuilder getGreenplumConfig619OrBuilder() {
if (greenplumConfigCase_ == 2) {
return (yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_19) greenplumConfig_;
}
return yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_19.getDefaultInstance();
}
public static final int GREENPLUM_CONFIG_6_21_FIELD_NUMBER = 4;
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6_21 greenplum_config_6_21 = 4 [json_name = "greenplumConfig_6_21"];
* @return Whether the greenplumConfig621 field is set.
*/
@java.lang.Override
public boolean hasGreenplumConfig621() {
return greenplumConfigCase_ == 4;
}
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6_21 greenplum_config_6_21 = 4 [json_name = "greenplumConfig_6_21"];
* @return The greenplumConfig621.
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_21 getGreenplumConfig621() {
if (greenplumConfigCase_ == 4) {
return (yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_21) greenplumConfig_;
}
return yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_21.getDefaultInstance();
}
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6_21 greenplum_config_6_21 = 4 [json_name = "greenplumConfig_6_21"];
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_21OrBuilder getGreenplumConfig621OrBuilder() {
if (greenplumConfigCase_ == 4) {
return (yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_21) greenplumConfig_;
}
return yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_21.getDefaultInstance();
}
public static final int GREENPLUM_CONFIG_6_22_FIELD_NUMBER = 5;
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6_22 greenplum_config_6_22 = 5 [json_name = "greenplumConfig_6_22"];
* @return Whether the greenplumConfig622 field is set.
*/
@java.lang.Override
public boolean hasGreenplumConfig622() {
return greenplumConfigCase_ == 5;
}
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6_22 greenplum_config_6_22 = 5 [json_name = "greenplumConfig_6_22"];
* @return The greenplumConfig622.
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_22 getGreenplumConfig622() {
if (greenplumConfigCase_ == 5) {
return (yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_22) greenplumConfig_;
}
return yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_22.getDefaultInstance();
}
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6_22 greenplum_config_6_22 = 5 [json_name = "greenplumConfig_6_22"];
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_22OrBuilder getGreenplumConfig622OrBuilder() {
if (greenplumConfigCase_ == 5) {
return (yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_22) greenplumConfig_;
}
return yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6_22.getDefaultInstance();
}
public static final int GREENPLUM_CONFIG_6_FIELD_NUMBER = 9;
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6 greenplum_config_6 = 9 [json_name = "greenplumConfig_6"];
* @return Whether the greenplumConfig6 field is set.
*/
@java.lang.Override
public boolean hasGreenplumConfig6() {
return greenplumConfigCase_ == 9;
}
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6 greenplum_config_6 = 9 [json_name = "greenplumConfig_6"];
* @return The greenplumConfig6.
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6 getGreenplumConfig6() {
if (greenplumConfigCase_ == 9) {
return (yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6) greenplumConfig_;
}
return yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6.getDefaultInstance();
}
/**
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig6 greenplum_config_6 = 9 [json_name = "greenplumConfig_6"];
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6OrBuilder getGreenplumConfig6OrBuilder() {
if (greenplumConfigCase_ == 9) {
return (yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6) greenplumConfig_;
}
return yandex.cloud.api.mdb.greenplum.v1.Config.GreenplumConfig6.getDefaultInstance();
}
public static final int POOL_FIELD_NUMBER = 3;
private yandex.cloud.api.mdb.greenplum.v1.Config.ConnectionPoolerConfig pool_;
/**
*
* Odyssey® pool settings.
*
*
* .yandex.cloud.mdb.greenplum.v1.ConnectionPoolerConfig pool = 3;
* @return Whether the pool field is set.
*/
@java.lang.Override
public boolean hasPool() {
return pool_ != null;
}
/**
*
* Odyssey® pool settings.
*
*
* .yandex.cloud.mdb.greenplum.v1.ConnectionPoolerConfig pool = 3;
* @return The pool.
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.Config.ConnectionPoolerConfig getPool() {
return pool_ == null ? yandex.cloud.api.mdb.greenplum.v1.Config.ConnectionPoolerConfig.getDefaultInstance() : pool_;
}
/**
*
*
* .yandex.cloud.mdb.greenplum.v1.ConnectionPoolerConfig pool = 3;
* @return Whether the pool field is set.
*/
public boolean hasPool() {
return poolBuilder_ != null || pool_ != null;
}
/**
*
* Odyssey® pool settings.
*
*
* .yandex.cloud.mdb.greenplum.v1.ConnectionPoolerConfig pool = 3;
* @return The pool.
*/
public yandex.cloud.api.mdb.greenplum.v1.Config.ConnectionPoolerConfig getPool() {
if (poolBuilder_ == null) {
return pool_ == null ? yandex.cloud.api.mdb.greenplum.v1.Config.ConnectionPoolerConfig.getDefaultInstance() : pool_;
} else {
return poolBuilder_.getMessage();
}
}
/**
*
* Odyssey® pool settings.
*
*
* .yandex.cloud.mdb.greenplum.v1.ConnectionPoolerConfig pool = 3;
*/
public Builder setPool(yandex.cloud.api.mdb.greenplum.v1.Config.ConnectionPoolerConfig value) {
if (poolBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pool_ = value;
onChanged();
} else {
poolBuilder_.setMessage(value);
}
return this;
}
/**
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Custom labels for the Greenplum® 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 Greenplum® 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 Greenplum® 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 Greenplum® 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 Greenplum® 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.
*
*
* repeated string security_group_ids = 17;
* @return A list containing the securityGroupIds.
*/
java.util.List
getSecurityGroupIdsList();
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 17;
* @return The count of securityGroupIds.
*/
int getSecurityGroupIdsCount();
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 17;
* @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 = 17;
* @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.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_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 Greenplum® 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 Greenplum® 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 Greenplum® 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 Greenplum® 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 NAME_FIELD_NUMBER = 5;
private volatile java.lang.Object name_;
/**
*
* The Greenplum® cluster maintenance window. Should be defined by either one of the two options.
*
*
* .yandex.cloud.mdb.greenplum.v1.MaintenanceWindow maintenance_window = 15;
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.Maintenance.MaintenanceWindowOrBuilder getMaintenanceWindowOrBuilder() {
return getMaintenanceWindow();
}
public static final int SECURITY_GROUP_IDS_FIELD_NUMBER = 17;
private com.google.protobuf.LazyStringList securityGroupIds_;
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 17;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_;
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 17;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 17;
* @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 = 17;
* @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 = 18;
private boolean deletionProtection_;
/**
*
* Determines whether the cluster is protected from being deleted.
*
*
* bool deletion_protection = 18;
* @return The deletionProtection.
*/
@java.lang.Override
public boolean getDeletionProtection() {
return deletionProtection_;
}
public static final int CONFIG_SPEC_FIELD_NUMBER = 19;
private yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ConfigSpec configSpec_;
/**
*
* Settings of the Greenplum® cluster.
*
*
* .yandex.cloud.mdb.greenplum.v1.ConfigSpec config_spec = 19;
* @return Whether the configSpec field is set.
*/
@java.lang.Override
public boolean hasConfigSpec() {
return configSpec_ != null;
}
/**
*
*
* 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 Greenplum® 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 Greenplum® 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 Greenplum® 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 Greenplum® 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 Greenplum® 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 Greenplum® 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 Greenplum® 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 Greenplum® 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 Greenplum® 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 Greenplum® 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 = 5 [(.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 cluster.
*
*
* string name = 5 [(.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 cluster.
*
*
* string name = 5 [(.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 cluster.
*
*
* string name = 5 [(.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 yandex.cloud.api.mdb.greenplum.v1.ClusterOuterClass.GreenplumConfig config_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.greenplum.v1.ClusterOuterClass.GreenplumConfig, yandex.cloud.api.mdb.greenplum.v1.ClusterOuterClass.GreenplumConfig.Builder, yandex.cloud.api.mdb.greenplum.v1.ClusterOuterClass.GreenplumConfigOrBuilder> configBuilder_;
/**
*
* The Greenplum® cluster configuration.
*
*
* .yandex.cloud.mdb.greenplum.v1.GreenplumConfig config = 6;
* @return Whether the config field is set.
*/
public boolean hasConfig() {
return configBuilder_ != null || config_ != null;
}
/**
*
*
* repeated string security_group_ids = 17;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_.getUnmodifiableView();
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 17;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 17;
* @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 = 17;
* @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 = 17;
* @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 = 17;
* @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 = 17;
* @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;
}
/**
*
* ID of the Greenplum Cluster resource to update.
* To get the Greenplum 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 SEGMENT_HOST_COUNT_FIELD_NUMBER = 2;
private long segmentHostCount_;
/**
*
* Number of hosts for add to the segment subcluster
*
*
* int64 segment_host_count = 2;
* @return The segmentHostCount.
*/
@java.lang.Override
public long getSegmentHostCount() {
return segmentHostCount_;
}
public static final int ADD_SEGMENTS_PER_HOST_COUNT_FIELD_NUMBER = 3;
private long addSegmentsPerHostCount_;
/**
*
* Number of segments per host to add
*
*
* int64 add_segments_per_host_count = 3;
* @return The addSegmentsPerHostCount.
*/
@java.lang.Override
public long getAddSegmentsPerHostCount() {
return addSegmentsPerHostCount_;
}
public static final int DURATION_FIELD_NUMBER = 4;
private long duration_;
/**
*
* Redistribute duration, in seconds
*
*
* int64 duration = 4;
* @return The duration.
*/
@java.lang.Override
public long getDuration() {
return duration_;
}
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 (segmentHostCount_ != 0L) {
output.writeInt64(2, segmentHostCount_);
}
if (addSegmentsPerHostCount_ != 0L) {
output.writeInt64(3, addSegmentsPerHostCount_);
}
if (duration_ != 0L) {
output.writeInt64(4, duration_);
}
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 (segmentHostCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, segmentHostCount_);
}
if (addSegmentsPerHostCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, addSegmentsPerHostCount_);
}
if (duration_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, duration_);
}
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.greenplum.v1.ClusterServiceOuterClass.ExpandRequest)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequest other = (yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequest) obj;
if (!getClusterId()
.equals(other.getClusterId())) return false;
if (getSegmentHostCount()
!= other.getSegmentHostCount()) return false;
if (getAddSegmentsPerHostCount()
!= other.getAddSegmentsPerHostCount()) return false;
if (getDuration()
!= other.getDuration()) 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) + SEGMENT_HOST_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSegmentHostCount());
hash = (37 * hash) + ADD_SEGMENTS_PER_HOST_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAddSegmentsPerHostCount());
hash = (37 * hash) + DURATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDuration());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequest 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.greenplum.v1.ClusterServiceOuterClass.ExpandRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequest 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.greenplum.v1.ClusterServiceOuterClass.ExpandRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequest 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.greenplum.v1.ClusterServiceOuterClass.ExpandRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequest 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.greenplum.v1.ClusterServiceOuterClass.ExpandRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequest 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.greenplum.v1.ClusterServiceOuterClass.ExpandRequest 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.greenplum.v1.ExpandRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.greenplum.v1.ExpandRequest)
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ExpandRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ExpandRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequest.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequest.Builder.class);
}
// Construct using yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequest.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_ = "";
segmentHostCount_ = 0L;
addSegmentsPerHostCount_ = 0L;
duration_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ExpandRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequest getDefaultInstanceForType() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequest build() {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequest buildPartial() {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequest result = new yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequest(this);
result.clusterId_ = clusterId_;
result.segmentHostCount_ = segmentHostCount_;
result.addSegmentsPerHostCount_ = addSegmentsPerHostCount_;
result.duration_ = duration_;
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.greenplum.v1.ClusterServiceOuterClass.ExpandRequest) {
return mergeFrom((yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequest other) {
if (other == yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequest.getDefaultInstance()) return this;
if (!other.getClusterId().isEmpty()) {
clusterId_ = other.clusterId_;
onChanged();
}
if (other.getSegmentHostCount() != 0L) {
setSegmentHostCount(other.getSegmentHostCount());
}
if (other.getAddSegmentsPerHostCount() != 0L) {
setAddSegmentsPerHostCount(other.getAddSegmentsPerHostCount());
}
if (other.getDuration() != 0L) {
setDuration(other.getDuration());
}
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.greenplum.v1.ClusterServiceOuterClass.ExpandRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ExpandRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object clusterId_ = "";
/**
*
* ID of the Greenplum Cluster resource to update.
* To get the Greenplum 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) = "<=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.greenplum.v1.ListClusterOperationsRequest}
*/
public static final class ListClusterOperationsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.greenplum.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.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterOperationsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterOperationsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest.Builder.class);
}
public static final int CLUSTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clusterId_;
/**
*
* ID of the Greenplum® cluster resource to list operations for.
*
* ID of the Greenplum® cluster resource to list operations for.
*
*
* 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) = "<=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.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest other = (yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ListClusterOperationsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.greenplum.v1.ListClusterOperationsRequest)
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterOperationsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterOperationsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest.Builder.class);
}
// Construct using yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterOperationsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest getDefaultInstanceForType() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest build() {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest buildPartial() {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest result = new yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest) {
return mergeFrom((yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest other) {
if (other == yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object clusterId_ = "";
/**
*
* ID of the Greenplum® cluster resource to list operations for.
*
* ID of the Greenplum® cluster resource to list operations for.
*
*
* 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) = "<=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) = "<=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.greenplum.v1.ListClusterOperationsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.greenplum.v1.ListClusterOperationsRequest)
private static final yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest();
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListClusterOperationsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.greenplum.v1.ListClusterOperationsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of Operation resources for the specified Greenplum® cluster.
*
* This token 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.
*
* This token 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.greenplum.v1.ListClusterOperationsResponse}
*/
public static final class ListClusterOperationsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.greenplum.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.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterOperationsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterOperationsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponse.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponse.Builder.class);
}
public static final int OPERATIONS_FIELD_NUMBER = 1;
private java.util.List operations_;
/**
*
* List of Operation resources for the specified Greenplum® cluster.
*
* List of Operation resources for the specified Greenplum® 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_;
/**
*
* This token 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.
*
* This token 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.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponse other = (yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ListClusterOperationsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.greenplum.v1.ListClusterOperationsResponse)
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterOperationsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterOperationsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponse.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponse.Builder.class);
}
// Construct using yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterOperationsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponse getDefaultInstanceForType() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponse build() {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponse buildPartial() {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponse result = new yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponse) {
return mergeFrom((yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponse other) {
if (other == yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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 Operation resources for the specified Greenplum® cluster.
*
* This token 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.
*
* This token 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;
}
}
/**
*
* This token 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;
}
/**
*
* This token 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;
}
/**
*
* This token 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.greenplum.v1.ListClusterOperationsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.greenplum.v1.ListClusterOperationsResponse)
private static final yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponse();
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterOperationsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListClusterHostsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.greenplum.v1.ListClusterHostsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the Greenplum® cluster.
* To get the Greenplum® 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 [ListClusterHostsResponse.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 [ListClusterHostsResponse.next_page_token] returned by the previous list request.
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterHostsResponse.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.greenplum.v1.ListClusterHostsRequest}
*/
public static final class ListClusterHostsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.greenplum.v1.ListClusterHostsRequest)
ListClusterHostsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListClusterHostsRequest.newBuilder() to construct.
private ListClusterHostsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListClusterHostsRequest() {
clusterId_ = "";
pageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListClusterHostsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListClusterHostsRequest(
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.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterHostsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterHostsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest.Builder.class);
}
public static final int CLUSTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clusterId_;
/**
*
* ID of the Greenplum® cluster.
* To get the Greenplum® cluster ID use a [ClusterService.List] request.
*
* ID of the Greenplum® cluster.
* To get the Greenplum® 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 [ListClusterHostsResponse.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 [ListClusterHostsResponse.next_page_token] returned by the previous list request.
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterHostsResponse.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.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest other = (yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest) 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.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest 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.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest 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.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest 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.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest 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.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest 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.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest 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.greenplum.v1.ListClusterHostsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.greenplum.v1.ListClusterHostsRequest)
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterHostsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterHostsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest.Builder.class);
}
// Construct using yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest.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.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterHostsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest getDefaultInstanceForType() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest build() {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest buildPartial() {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest result = new yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest(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.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest) {
return mergeFrom((yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest other) {
if (other == yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest.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.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object clusterId_ = "";
/**
*
* ID of the Greenplum® cluster.
* To get the Greenplum® cluster ID use a [ClusterService.List] request.
*
* ID of the Greenplum® cluster.
* To get the Greenplum® 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 [ListClusterHostsResponse.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 [ListClusterHostsResponse.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 [ListClusterHostsResponse.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 [ListClusterHostsResponse.next_page_token] returned by the previous list request.
*
* Page token. To get the next page of results, set [page_token] to the [ListClusterHostsResponse.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 [ListClusterHostsResponse.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 [ListClusterHostsResponse.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 [ListClusterHostsResponse.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.greenplum.v1.ListClusterHostsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.greenplum.v1.ListClusterHostsRequest)
private static final yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest();
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListClusterHostsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListClusterHostsRequest(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.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListClusterHostsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.greenplum.v1.ListClusterHostsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* This token allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterHostsRequest.page_size], use the [next_page_token] as the value for the [ListClusterHostsRequest.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.
*
* This token allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterHostsRequest.page_size], use the [next_page_token] as the value for the [ListClusterHostsRequest.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.greenplum.v1.ListClusterHostsResponse}
*/
public static final class ListClusterHostsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.greenplum.v1.ListClusterHostsResponse)
ListClusterHostsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListClusterHostsResponse.newBuilder() to construct.
private ListClusterHostsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListClusterHostsResponse() {
hosts_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListClusterHostsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListClusterHostsResponse(
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)) {
hosts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
hosts_.add(
input.readMessage(yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.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)) {
hosts_ = java.util.Collections.unmodifiableList(hosts_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterHostsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterHostsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse.Builder.class);
}
public static final int HOSTS_FIELD_NUMBER = 1;
private java.util.List hosts_;
/**
*
*
* repeated .yandex.cloud.mdb.greenplum.v1.Host hosts = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.HostOrBuilder getHostsOrBuilder(
int index) {
return hosts_.get(index);
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
private volatile java.lang.Object nextPageToken_;
/**
*
* This token allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterHostsRequest.page_size], use the [next_page_token] as the value for the [ListClusterHostsRequest.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.
*
* This token allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterHostsRequest.page_size], use the [next_page_token] as the value for the [ListClusterHostsRequest.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 < hosts_.size(); i++) {
output.writeMessage(1, hosts_.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 < hosts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, hosts_.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.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse other = (yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse) obj;
if (!getHostsList()
.equals(other.getHostsList())) 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 (getHostsCount() > 0) {
hash = (37 * hash) + HOSTS_FIELD_NUMBER;
hash = (53 * hash) + getHostsList().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.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse 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.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse 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.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse 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.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse 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.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse 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.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse 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.greenplum.v1.ListClusterHostsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.greenplum.v1.ListClusterHostsResponse)
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterHostsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterHostsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse.Builder.class);
}
// Construct using yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getHostsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (hostsBuilder_ == null) {
hosts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
hostsBuilder_.clear();
}
nextPageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterHostsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse getDefaultInstanceForType() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse build() {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse buildPartial() {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse result = new yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse(this);
int from_bitField0_ = bitField0_;
if (hostsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
hosts_ = java.util.Collections.unmodifiableList(hosts_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.hosts_ = hosts_;
} else {
result.hosts_ = hostsBuilder_.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.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse) {
return mergeFrom((yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse other) {
if (other == yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse.getDefaultInstance()) return this;
if (hostsBuilder_ == null) {
if (!other.hosts_.isEmpty()) {
if (hosts_.isEmpty()) {
hosts_ = other.hosts_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureHostsIsMutable();
hosts_.addAll(other.hosts_);
}
onChanged();
}
} else {
if (!other.hosts_.isEmpty()) {
if (hostsBuilder_.isEmpty()) {
hostsBuilder_.dispose();
hostsBuilder_ = null;
hosts_ = other.hosts_;
bitField0_ = (bitField0_ & ~0x00000001);
hostsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getHostsFieldBuilder() : null;
} else {
hostsBuilder_.addAllMessages(other.hosts_);
}
}
}
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.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List hosts_ =
java.util.Collections.emptyList();
private void ensureHostsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
hosts_ = new java.util.ArrayList(hosts_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host, yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.Host.Builder, yandex.cloud.api.mdb.greenplum.v1.HostOuterClass.HostOrBuilder> hostsBuilder_;
/**
*
* This token allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterHostsRequest.page_size], use the [next_page_token] as the value for the [ListClusterHostsRequest.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.
*
* This token allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterHostsRequest.page_size], use the [next_page_token] as the value for the [ListClusterHostsRequest.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;
}
}
/**
*
* This token allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterHostsRequest.page_size], use the [next_page_token] as the value for the [ListClusterHostsRequest.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;
}
/**
*
* This token allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterHostsRequest.page_size], use the [next_page_token] as the value for the [ListClusterHostsRequest.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;
}
/**
*
* This token allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterHostsRequest.page_size], use the [next_page_token] as the value for the [ListClusterHostsRequest.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.greenplum.v1.ListClusterHostsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.greenplum.v1.ListClusterHostsResponse)
private static final yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse();
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListClusterHostsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListClusterHostsResponse(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.greenplum.v1.ClusterServiceOuterClass.ListClusterHostsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MasterSubclusterConfigSpecOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.greenplum.v1.MasterSubclusterConfigSpec)
com.google.protobuf.MessageOrBuilder {
/**
*
* Resources allocated to Greenplum® master subcluster hosts.
*
*
* .yandex.cloud.mdb.greenplum.v1.Resources resources = 1;
* @return Whether the resources field is set.
*/
boolean hasResources();
/**
*
* Resources allocated to Greenplum® master subcluster hosts.
*
* This token 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.
* This value is interchangeable with the [StreamLogRecord.next_record_token] from [StreamLogs] method.
*
* This token 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.
* This value is interchangeable with the [StreamLogRecord.next_record_token] from [StreamLogs] method.
*
*
* string next_page_token = 2;
* @return The bytes for nextPageToken.
*/
com.google.protobuf.ByteString
getNextPageTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.mdb.greenplum.v1.ListClusterLogsResponse}
*/
public static final class ListClusterLogsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.greenplum.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.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterLogsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterLogsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponse.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponse.Builder.class);
}
public static final int LOGS_FIELD_NUMBER = 1;
private java.util.List logs_;
/**
*
*
* repeated .yandex.cloud.mdb.greenplum.v1.LogRecord logs = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.LogRecordOrBuilder getLogsOrBuilder(
int index) {
return logs_.get(index);
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
private volatile java.lang.Object nextPageToken_;
/**
*
* This token 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.
* This value is interchangeable with the [StreamLogRecord.next_record_token] from [StreamLogs] method.
*
* This token 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.
* This value is interchangeable with the [StreamLogRecord.next_record_token] from [StreamLogs] method.
*
*
* 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.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponse other = (yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ListClusterLogsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.greenplum.v1.ListClusterLogsResponse)
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterLogsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterLogsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponse.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponse.Builder.class);
}
// Construct using yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterLogsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponse getDefaultInstanceForType() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponse build() {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponse buildPartial() {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponse result = new yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponse) {
return mergeFrom((yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponse other) {
if (other == yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.LogRecord, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.LogRecord.Builder, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.LogRecordOrBuilder> logsBuilder_;
/**
*
* This token 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.
* This value is interchangeable with the [StreamLogRecord.next_record_token] from [StreamLogs] method.
*
* This token 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.
* This value is interchangeable with the [StreamLogRecord.next_record_token] from [StreamLogs] method.
*
*
* 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;
}
}
/**
*
* This token 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.
* This value is interchangeable with the [StreamLogRecord.next_record_token] from [StreamLogs] method.
*
*
* 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;
}
/**
*
* This token 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.
* This value is interchangeable with the [StreamLogRecord.next_record_token] from [StreamLogs] method.
*
*
* string next_page_token = 2;
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
nextPageToken_ = getDefaultInstance().getNextPageToken();
onChanged();
return this;
}
/**
*
* This token 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.
* This value is interchangeable with the [StreamLogRecord.next_record_token] from [StreamLogs] method.
*
*
* 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.greenplum.v1.ListClusterLogsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.greenplum.v1.ListClusterLogsResponse)
private static final yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponse();
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LogRecordOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.greenplum.v1.LogRecord)
com.google.protobuf.MessageOrBuilder {
/**
*
* Time when the log was recorded.
*
*
* .google.protobuf.Timestamp timestamp = 1;
* @return Whether the timestamp field is set.
*/
boolean hasTimestamp();
/**
*
* Columns from log 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 log 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 log 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 log 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.greenplum.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) = "<=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 always returns a [ListClusterLogsResponse.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. Currently filtering can be applied to the [LogRecord.logs.message.hostname], [LogRecord.logs.message.error_severity] (for `GREENPLUM` service) and [LogRecord.logs.message.level] (for `GREENPLUM_POOLER` service) fields.
* 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}$`.
* Examples of a filter:
* * `message.hostname='node1.db.cloud.yandex.net'`;
* * `message.error_severity IN ("ERROR", "FATAL", "PANIC") AND 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. Currently filtering can be applied to the [LogRecord.logs.message.hostname], [LogRecord.logs.message.error_severity] (for `GREENPLUM` service) and [LogRecord.logs.message.level] (for `GREENPLUM_POOLER` service) fields.
* 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}$`.
* Examples of a filter:
* * `message.hostname='node1.db.cloud.yandex.net'`;
* * `message.error_severity IN ("ERROR", "FATAL", "PANIC") AND 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.greenplum.v1.ListClusterLogsRequest}
*/
public static final class ListClusterLogsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.greenplum.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.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterLogsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterLogsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsRequest.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsRequest.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.mdb.greenplum.v1.ListClusterLogsRequest.ServiceType}
*/
public enum ServiceType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
* SERVICE_TYPE_UNSPECIFIED = 0;
*/
public static final int SERVICE_TYPE_UNSPECIFIED_VALUE = 0;
/**
*
* Greenplum® activity logs.
*
*
* GREENPLUM = 1;
*/
public static final int GREENPLUM_VALUE = 1;
/**
*
* Greenplum® pooler logs.
*
*
* GREENPLUM_POOLER = 2;
*/
public static final int GREENPLUM_POOLER_VALUE = 2;
/**
*
* Greenplum® PXF service logs.
*
*
* GREENPLUM_PXF = 3;
*/
public static final int GREENPLUM_PXF_VALUE = 3;
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 GREENPLUM;
case 2: return GREENPLUM_POOLER;
case 3: return GREENPLUM_PXF;
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.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ListClusterLogsRequest.ServiceType)
}
public static final int CLUSTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clusterId_;
/**
*
* ID of the Greenplum® cluster to request logs for.
* To get the Greenplum® cluster ID, use a [ClusterService.List] request.
*
* ID of the Greenplum® cluster to request logs for.
* To get the Greenplum® 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 log 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 log 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 log 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 log 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.greenplum.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.greenplum.v1.ListClusterLogsRequest.ServiceType service_type = 3;
* @return The serviceType.
*/
@java.lang.Override public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsRequest.ServiceType getServiceType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsRequest.ServiceType result = yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsRequest.ServiceType.valueOf(serviceType_);
return result == null ? yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsRequest.ServiceType.UNRECOGNIZED : result;
}
public static final int FROM_TIME_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp fromTime_;
/**
*
* Start timestamp for the logs request.
*
*
* .google.protobuf.Timestamp from_time = 4;
* @return Whether the fromTime field is set.
*/
@java.lang.Override
public boolean hasFromTime() {
return fromTime_ != null;
}
/**
*
*
* .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) = "<=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 always returns a [ListClusterLogsResponse.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. Currently filtering can be applied to the [LogRecord.logs.message.hostname], [LogRecord.logs.message.error_severity] (for `GREENPLUM` service) and [LogRecord.logs.message.level] (for `GREENPLUM_POOLER` service) fields.
* 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}$`.
* Examples of a filter:
* * `message.hostname='node1.db.cloud.yandex.net'`;
* * `message.error_severity IN ("ERROR", "FATAL", "PANIC") AND 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. Currently filtering can be applied to the [LogRecord.logs.message.hostname], [LogRecord.logs.message.error_severity] (for `GREENPLUM` service) and [LogRecord.logs.message.level] (for `GREENPLUM_POOLER` service) fields.
* 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}$`.
* Examples of a filter:
* * `message.hostname='node1.db.cloud.yandex.net'`;
* * `message.error_severity IN ("ERROR", "FATAL", "PANIC") AND message.hostname = "node1.db.cloud.yandex.net"`.
*
* ID of the Greenplum® cluster to request logs for.
* To get the Greenplum® 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 log 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 log 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 log 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 log 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 log 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 log 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 log 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 log table to request.
* If no columns are specified, entire log records are returned.
*
* Columns from log 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.greenplum.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.greenplum.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.greenplum.v1.ListClusterLogsRequest.ServiceType service_type = 3;
* @return The serviceType.
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsRequest.ServiceType getServiceType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsRequest.ServiceType result = yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsRequest.ServiceType.valueOf(serviceType_);
return result == null ? yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsRequest.ServiceType.UNRECOGNIZED : result;
}
/**
*
* Type of the service to request logs about.
*
*
* .yandex.cloud.mdb.greenplum.v1.ListClusterLogsRequest.ServiceType service_type = 3;
* @param value The serviceType to set.
* @return This builder for chaining.
*/
public Builder setServiceType(yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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) = "<=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) = "<=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 always returns a [ListClusterLogsResponse.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. Currently filtering can be applied to the [LogRecord.logs.message.hostname], [LogRecord.logs.message.error_severity] (for `GREENPLUM` service) and [LogRecord.logs.message.level] (for `GREENPLUM_POOLER` service) fields.
* 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}$`.
* Examples of a filter:
* * `message.hostname='node1.db.cloud.yandex.net'`;
* * `message.error_severity IN ("ERROR", "FATAL", "PANIC") AND 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. Currently filtering can be applied to the [LogRecord.logs.message.hostname], [LogRecord.logs.message.error_severity] (for `GREENPLUM` service) and [LogRecord.logs.message.level] (for `GREENPLUM_POOLER` service) fields.
* 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}$`.
* Examples of a filter:
* * `message.hostname='node1.db.cloud.yandex.net'`;
* * `message.error_severity IN ("ERROR", "FATAL", "PANIC") AND 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. Currently filtering can be applied to the [LogRecord.logs.message.hostname], [LogRecord.logs.message.error_severity] (for `GREENPLUM` service) and [LogRecord.logs.message.level] (for `GREENPLUM_POOLER` service) fields.
* 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}$`.
* Examples of a filter:
* * `message.hostname='node1.db.cloud.yandex.net'`;
* * `message.error_severity IN ("ERROR", "FATAL", "PANIC") AND 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. Currently filtering can be applied to the [LogRecord.logs.message.hostname], [LogRecord.logs.message.error_severity] (for `GREENPLUM` service) and [LogRecord.logs.message.level] (for `GREENPLUM_POOLER` service) fields.
* 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}$`.
* Examples of a filter:
* * `message.hostname='node1.db.cloud.yandex.net'`;
* * `message.error_severity IN ("ERROR", "FATAL", "PANIC") AND 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. Currently filtering can be applied to the [LogRecord.logs.message.hostname], [LogRecord.logs.message.error_severity] (for `GREENPLUM` service) and [LogRecord.logs.message.level] (for `GREENPLUM_POOLER` service) fields.
* 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}$`.
* Examples of a filter:
* * `message.hostname='node1.db.cloud.yandex.net'`;
* * `message.error_severity IN ("ERROR", "FATAL", "PANIC") AND 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.greenplum.v1.ListClusterLogsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.greenplum.v1.ListClusterLogsRequest)
private static final yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsRequest();
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterLogsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListClusterBackupsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.greenplum.v1.ListClusterBackupsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the Greenplum® cluster.
* To get the Greenplum® 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.greenplum.v1.ListClusterBackupsRequest}
*/
public static final class ListClusterBackupsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.greenplum.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.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterBackupsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterBackupsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest.Builder.class);
}
public static final int CLUSTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clusterId_;
/**
*
* ID of the Greenplum® cluster.
* To get the Greenplum® cluster ID use a [ClusterService.List] request.
*
* ID of the Greenplum® cluster.
* To get the Greenplum® 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.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest other = (yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ListClusterBackupsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.greenplum.v1.ListClusterBackupsRequest)
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterBackupsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterBackupsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest.Builder.class);
}
// Construct using yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterBackupsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest getDefaultInstanceForType() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest build() {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest buildPartial() {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest result = new yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest) {
return mergeFrom((yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest other) {
if (other == yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object clusterId_ = "";
/**
*
* ID of the Greenplum® cluster.
* To get the Greenplum® cluster ID use a [ClusterService.List] request.
*
* ID of the Greenplum® cluster.
* To get the Greenplum® 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.greenplum.v1.ListClusterBackupsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.greenplum.v1.ListClusterBackupsRequest)
private static final yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest();
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.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 getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StreamLogRecordOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.greenplum.v1.StreamLogRecord)
com.google.protobuf.MessageOrBuilder {
/**
*
* One of the requested log records.
*
*
* .yandex.cloud.mdb.greenplum.v1.LogRecord record = 1;
* @return Whether the record field is set.
*/
boolean hasRecord();
/**
*
* One of the requested log records.
*
*
* .yandex.cloud.mdb.greenplum.v1.LogRecord record = 1;
* @return The record.
*/
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.LogRecord getRecord();
/**
*
* This token allows you to continue streaming logs starting from the exact same record.
* To do that, specify value of [next_record_token] as the value for [StreamLogs.record_token] parameter in the next [StreamLogs] request.
* This value is interchangeable with [ListLogs.next_page_token] from [ListLogs] method.
*
* This token allows you to continue streaming logs starting from the exact same record.
* To do that, specify value of [next_record_token] as the value for [StreamLogs.record_token] parameter in the next [StreamLogs] request.
* This value is interchangeable with [ListLogs.next_page_token] from [ListLogs] method.
*
*
* string next_record_token = 2;
* @return The bytes for nextRecordToken.
*/
com.google.protobuf.ByteString
getNextRecordTokenBytes();
}
/**
* Protobuf type {@code yandex.cloud.mdb.greenplum.v1.StreamLogRecord}
*/
public static final class StreamLogRecord extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.greenplum.v1.StreamLogRecord)
StreamLogRecordOrBuilder {
private static final long serialVersionUID = 0L;
// Use StreamLogRecord.newBuilder() to construct.
private StreamLogRecord(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StreamLogRecord() {
nextRecordToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StreamLogRecord();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StreamLogRecord(
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: {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.LogRecord.Builder subBuilder = null;
if (record_ != null) {
subBuilder = record_.toBuilder();
}
record_ = input.readMessage(yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.LogRecord.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(record_);
record_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
nextRecordToken_ = 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.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_StreamLogRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_StreamLogRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord.Builder.class);
}
public static final int RECORD_FIELD_NUMBER = 1;
private yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.LogRecord record_;
/**
*
* One of the requested log records.
*
*
* .yandex.cloud.mdb.greenplum.v1.LogRecord record = 1;
* @return Whether the record field is set.
*/
@java.lang.Override
public boolean hasRecord() {
return record_ != null;
}
/**
*
* One of the requested log records.
*
*
* .yandex.cloud.mdb.greenplum.v1.LogRecord record = 1;
* @return The record.
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.LogRecord getRecord() {
return record_ == null ? yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.LogRecord.getDefaultInstance() : record_;
}
/**
*
* One of the requested log records.
*
*
* .yandex.cloud.mdb.greenplum.v1.LogRecord record = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.LogRecordOrBuilder getRecordOrBuilder() {
return getRecord();
}
public static final int NEXT_RECORD_TOKEN_FIELD_NUMBER = 2;
private volatile java.lang.Object nextRecordToken_;
/**
*
* This token allows you to continue streaming logs starting from the exact same record.
* To do that, specify value of [next_record_token] as the value for [StreamLogs.record_token] parameter in the next [StreamLogs] request.
* This value is interchangeable with [ListLogs.next_page_token] from [ListLogs] method.
*
* This token allows you to continue streaming logs starting from the exact same record.
* To do that, specify value of [next_record_token] as the value for [StreamLogs.record_token] parameter in the next [StreamLogs] request.
* This value is interchangeable with [ListLogs.next_page_token] from [ListLogs] method.
*
*
* string next_record_token = 2;
* @return The bytes for nextRecordToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNextRecordTokenBytes() {
java.lang.Object ref = nextRecordToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextRecordToken_ = 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 (record_ != null) {
output.writeMessage(1, getRecord());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextRecordToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextRecordToken_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (record_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRecord());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextRecordToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextRecordToken_);
}
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.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord other = (yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord) obj;
if (hasRecord() != other.hasRecord()) return false;
if (hasRecord()) {
if (!getRecord()
.equals(other.getRecord())) return false;
}
if (!getNextRecordToken()
.equals(other.getNextRecordToken())) 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 (hasRecord()) {
hash = (37 * hash) + RECORD_FIELD_NUMBER;
hash = (53 * hash) + getRecord().hashCode();
}
hash = (37 * hash) + NEXT_RECORD_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getNextRecordToken().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord 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.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord 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.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord 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.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord 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.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord 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.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord 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.greenplum.v1.StreamLogRecord}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.greenplum.v1.StreamLogRecord)
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecordOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_StreamLogRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_StreamLogRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord.Builder.class);
}
// Construct using yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (recordBuilder_ == null) {
record_ = null;
} else {
record_ = null;
recordBuilder_ = null;
}
nextRecordToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_StreamLogRecord_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord getDefaultInstanceForType() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord build() {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord buildPartial() {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord result = new yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord(this);
if (recordBuilder_ == null) {
result.record_ = record_;
} else {
result.record_ = recordBuilder_.build();
}
result.nextRecordToken_ = nextRecordToken_;
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.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord) {
return mergeFrom((yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord other) {
if (other == yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord.getDefaultInstance()) return this;
if (other.hasRecord()) {
mergeRecord(other.getRecord());
}
if (!other.getNextRecordToken().isEmpty()) {
nextRecordToken_ = other.nextRecordToken_;
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.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.LogRecord record_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.LogRecord, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.LogRecord.Builder, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.LogRecordOrBuilder> recordBuilder_;
/**
*
* One of the requested log records.
*
*
* .yandex.cloud.mdb.greenplum.v1.LogRecord record = 1;
* @return Whether the record field is set.
*/
public boolean hasRecord() {
return recordBuilder_ != null || record_ != null;
}
/**
*
* One of the requested log records.
*
*
* .yandex.cloud.mdb.greenplum.v1.LogRecord record = 1;
* @return The record.
*/
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.LogRecord getRecord() {
if (recordBuilder_ == null) {
return record_ == null ? yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.LogRecord.getDefaultInstance() : record_;
} else {
return recordBuilder_.getMessage();
}
}
/**
*
* One of the requested log records.
*
*
* .yandex.cloud.mdb.greenplum.v1.LogRecord record = 1;
*/
public Builder setRecord(yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.LogRecord value) {
if (recordBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
record_ = value;
onChanged();
} else {
recordBuilder_.setMessage(value);
}
return this;
}
/**
*
* This token allows you to continue streaming logs starting from the exact same record.
* To do that, specify value of [next_record_token] as the value for [StreamLogs.record_token] parameter in the next [StreamLogs] request.
* This value is interchangeable with [ListLogs.next_page_token] from [ListLogs] method.
*
* This token allows you to continue streaming logs starting from the exact same record.
* To do that, specify value of [next_record_token] as the value for [StreamLogs.record_token] parameter in the next [StreamLogs] request.
* This value is interchangeable with [ListLogs.next_page_token] from [ListLogs] method.
*
*
* string next_record_token = 2;
* @return The bytes for nextRecordToken.
*/
public com.google.protobuf.ByteString
getNextRecordTokenBytes() {
java.lang.Object ref = nextRecordToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nextRecordToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* This token allows you to continue streaming logs starting from the exact same record.
* To do that, specify value of [next_record_token] as the value for [StreamLogs.record_token] parameter in the next [StreamLogs] request.
* This value is interchangeable with [ListLogs.next_page_token] from [ListLogs] method.
*
*
* string next_record_token = 2;
* @param value The nextRecordToken to set.
* @return This builder for chaining.
*/
public Builder setNextRecordToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nextRecordToken_ = value;
onChanged();
return this;
}
/**
*
* This token allows you to continue streaming logs starting from the exact same record.
* To do that, specify value of [next_record_token] as the value for [StreamLogs.record_token] parameter in the next [StreamLogs] request.
* This value is interchangeable with [ListLogs.next_page_token] from [ListLogs] method.
*
*
* string next_record_token = 2;
* @return This builder for chaining.
*/
public Builder clearNextRecordToken() {
nextRecordToken_ = getDefaultInstance().getNextRecordToken();
onChanged();
return this;
}
/**
*
* This token allows you to continue streaming logs starting from the exact same record.
* To do that, specify value of [next_record_token] as the value for [StreamLogs.record_token] parameter in the next [StreamLogs] request.
* This value is interchangeable with [ListLogs.next_page_token] from [ListLogs] method.
*
*
* string next_record_token = 2;
* @param value The bytes for nextRecordToken to set.
* @return This builder for chaining.
*/
public Builder setNextRecordTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nextRecordToken_ = 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.greenplum.v1.StreamLogRecord)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.greenplum.v1.StreamLogRecord)
private static final yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord();
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StreamLogRecord parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StreamLogRecord(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.greenplum.v1.ClusterServiceOuterClass.StreamLogRecord getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StreamClusterLogsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.greenplum.v1.StreamClusterLogsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Columns from log table to get in the response.
* 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 log table to get in the response.
* If no columns are specified, entire log records are returned.
*
*
* repeated string column_filter = 2;
* @return The count of columnFilter.
*/
int getColumnFilterCount();
/**
*
* Columns from log table to get in the response.
* 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 log table to get in the response.
* 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.greenplum.v1.StreamClusterLogsRequest.ServiceType service_type = 3;
* @return The enum numeric value on the wire for serviceType.
*/
int getServiceTypeValue();
/**
*
* End timestamp for the logs request.
* If this field is not set, all existing logs are sent as well as the new ones as they appear.
* In essence it has `tail -f` semantics.
*
*
* .google.protobuf.Timestamp to_time = 5;
* @return Whether the toTime field is set.
*/
boolean hasToTime();
/**
*
* End timestamp for the logs request.
* If this field is not set, all existing logs are sent as well as the new ones as they appear.
* In essence it has `tail -f` semantics.
*
* End timestamp for the logs request.
* If this field is not set, all existing logs are sent as well as the new ones as they appear.
* In essence it has `tail -f` semantics.
*
* Record token. Set [record_token] to the [StreamLogs.next_record_token] returned by the previous [StreamLogs] request to start streaming from the next log record.
*
* Record token. Set [record_token] to the [StreamLogs.next_record_token] returned by the previous [StreamLogs] request to start streaming from the next log record.
*
*
* string record_token = 6 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for recordToken.
*/
com.google.protobuf.ByteString
getRecordTokenBytes();
/**
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. A field name. Currently filtering can be applied to the [LogRecord.logs.message.hostname], [LogRecord.logs.message.error_severity] (for GREENPLUM service), [LogRecord.logs.message.level] (for POOLER service) fields.
* 2. An `=` operator.
* 3. A value in double quotes (`"`). Must be 1-63 characters long and match the regular expression `[a-z0-9.-]{1,61}`.
* Examples of a filter:
* * `message.hostname='node1.db.cloud.yandex.net'`;
* * `message.error_severity IN ("ERROR", "FATAL", "PANIC") AND 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. Currently filtering can be applied to the [LogRecord.logs.message.hostname], [LogRecord.logs.message.error_severity] (for GREENPLUM service), [LogRecord.logs.message.level] (for POOLER service) fields.
* 2. An `=` operator.
* 3. A value in double quotes (`"`). Must be 1-63 characters long and match the regular expression `[a-z0-9.-]{1,61}`.
* Examples of a filter:
* * `message.hostname='node1.db.cloud.yandex.net'`;
* * `message.error_severity IN ("ERROR", "FATAL", "PANIC") AND message.hostname = "node1.db.cloud.yandex.net"`.
*
*
* string filter = 7 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
com.google.protobuf.ByteString
getFilterBytes();
}
/**
* Protobuf type {@code yandex.cloud.mdb.greenplum.v1.StreamClusterLogsRequest}
*/
public static final class StreamClusterLogsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.greenplum.v1.StreamClusterLogsRequest)
StreamClusterLogsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use StreamClusterLogsRequest.newBuilder() to construct.
private StreamClusterLogsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StreamClusterLogsRequest() {
clusterId_ = "";
columnFilter_ = com.google.protobuf.LazyStringArrayList.EMPTY;
serviceType_ = 0;
recordToken_ = "";
filter_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StreamClusterLogsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StreamClusterLogsRequest(
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 50: {
java.lang.String s = input.readStringRequireUtf8();
recordToken_ = s;
break;
}
case 58: {
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.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_StreamClusterLogsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_StreamClusterLogsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.mdb.greenplum.v1.StreamClusterLogsRequest.ServiceType}
*/
public enum ServiceType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
* SERVICE_TYPE_UNSPECIFIED = 0;
*/
public static final int SERVICE_TYPE_UNSPECIFIED_VALUE = 0;
/**
*
* Greenplum® activity logs.
*
*
* GREENPLUM = 1;
*/
public static final int GREENPLUM_VALUE = 1;
/**
*
* Greenplum® pooler logs.
*
*
* GREENPLUM_POOLER = 2;
*/
public static final int GREENPLUM_POOLER_VALUE = 2;
/**
*
* Greenplum® PXF service logs.
*
*
* GREENPLUM_PXF = 3;
*/
public static final int GREENPLUM_PXF_VALUE = 3;
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 GREENPLUM;
case 2: return GREENPLUM_POOLER;
case 3: return GREENPLUM_PXF;
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.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.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.greenplum.v1.StreamClusterLogsRequest.ServiceType)
}
public static final int CLUSTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clusterId_;
/**
*
*
* 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 log table to get in the response.
* 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 log table to get in the response.
* 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 log table to get in the response.
* 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 log table to get in the response.
* 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.greenplum.v1.StreamClusterLogsRequest.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.greenplum.v1.StreamClusterLogsRequest.ServiceType service_type = 3;
* @return The serviceType.
*/
@java.lang.Override public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.ServiceType getServiceType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.ServiceType result = yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.ServiceType.valueOf(serviceType_);
return result == null ? yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.ServiceType.UNRECOGNIZED : result;
}
public static final int FROM_TIME_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp fromTime_;
/**
*
* Start timestamp for the logs request.
*
*
* .google.protobuf.Timestamp from_time = 4;
* @return Whether the fromTime field is set.
*/
@java.lang.Override
public boolean hasFromTime() {
return fromTime_ != null;
}
/**
*
*
* .google.protobuf.Timestamp from_time = 4;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getFromTimeOrBuilder() {
return getFromTime();
}
public static final int TO_TIME_FIELD_NUMBER = 5;
private com.google.protobuf.Timestamp toTime_;
/**
*
* End timestamp for the logs request.
* If this field is not set, all existing logs are sent as well as the new ones as they appear.
* In essence it has `tail -f` semantics.
*
*
* .google.protobuf.Timestamp to_time = 5;
* @return Whether the toTime field is set.
*/
@java.lang.Override
public boolean hasToTime() {
return toTime_ != null;
}
/**
*
* End timestamp for the logs request.
* If this field is not set, all existing logs are sent as well as the new ones as they appear.
* In essence it has `tail -f` semantics.
*
* End timestamp for the logs request.
* If this field is not set, all existing logs are sent as well as the new ones as they appear.
* In essence it has `tail -f` semantics.
*
*
* .google.protobuf.Timestamp to_time = 5;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getToTimeOrBuilder() {
return getToTime();
}
public static final int RECORD_TOKEN_FIELD_NUMBER = 6;
private volatile java.lang.Object recordToken_;
/**
*
* Record token. Set [record_token] to the [StreamLogs.next_record_token] returned by the previous [StreamLogs] request to start streaming from the next log record.
*
* Record token. Set [record_token] to the [StreamLogs.next_record_token] returned by the previous [StreamLogs] request to start streaming from the next log record.
*
*
* string record_token = 6 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for recordToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRecordTokenBytes() {
java.lang.Object ref = recordToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
recordToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FILTER_FIELD_NUMBER = 7;
private volatile java.lang.Object filter_;
/**
*
* A filter expression that filters resources listed in the response.
* The expression must specify:
* 1. A field name. Currently filtering can be applied to the [LogRecord.logs.message.hostname], [LogRecord.logs.message.error_severity] (for GREENPLUM service), [LogRecord.logs.message.level] (for POOLER service) fields.
* 2. An `=` operator.
* 3. A value in double quotes (`"`). Must be 1-63 characters long and match the regular expression `[a-z0-9.-]{1,61}`.
* Examples of a filter:
* * `message.hostname='node1.db.cloud.yandex.net'`;
* * `message.error_severity IN ("ERROR", "FATAL", "PANIC") AND 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. Currently filtering can be applied to the [LogRecord.logs.message.hostname], [LogRecord.logs.message.error_severity] (for GREENPLUM service), [LogRecord.logs.message.level] (for POOLER service) fields.
* 2. An `=` operator.
* 3. A value in double quotes (`"`). Must be 1-63 characters long and match the regular expression `[a-z0-9.-]{1,61}`.
* Examples of a filter:
* * `message.hostname='node1.db.cloud.yandex.net'`;
* * `message.error_severity IN ("ERROR", "FATAL", "PANIC") AND message.hostname = "node1.db.cloud.yandex.net"`.
*
*
* string filter = 7 [(.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(clusterId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterId_);
}
for (int i = 0; i < columnFilter_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, columnFilter_.getRaw(i));
}
if (serviceType_ != yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.ServiceType.SERVICE_TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(3, serviceType_);
}
if (fromTime_ != null) {
output.writeMessage(4, getFromTime());
}
if (toTime_ != null) {
output.writeMessage(5, getToTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recordToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, recordToken_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, 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(clusterId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterId_);
}
{
int dataSize = 0;
for (int i = 0; i < columnFilter_.size(); i++) {
dataSize += computeStringSizeNoTag(columnFilter_.getRaw(i));
}
size += dataSize;
size += 1 * getColumnFilterList().size();
}
if (serviceType_ != yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.ServiceType.SERVICE_TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, serviceType_);
}
if (fromTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getFromTime());
}
if (toTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getToTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recordToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, recordToken_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, 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.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest other = (yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest) obj;
if (!getClusterId()
.equals(other.getClusterId())) return false;
if (!getColumnFilterList()
.equals(other.getColumnFilterList())) return false;
if (serviceType_ != other.serviceType_) return false;
if (hasFromTime() != other.hasFromTime()) return false;
if (hasFromTime()) {
if (!getFromTime()
.equals(other.getFromTime())) return false;
}
if (hasToTime() != other.hasToTime()) return false;
if (hasToTime()) {
if (!getToTime()
.equals(other.getToTime())) return false;
}
if (!getRecordToken()
.equals(other.getRecordToken())) 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) + CLUSTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getClusterId().hashCode();
if (getColumnFilterCount() > 0) {
hash = (37 * hash) + COLUMN_FILTER_FIELD_NUMBER;
hash = (53 * hash) + getColumnFilterList().hashCode();
}
hash = (37 * hash) + SERVICE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + serviceType_;
if (hasFromTime()) {
hash = (37 * hash) + FROM_TIME_FIELD_NUMBER;
hash = (53 * hash) + getFromTime().hashCode();
}
if (hasToTime()) {
hash = (37 * hash) + TO_TIME_FIELD_NUMBER;
hash = (53 * hash) + getToTime().hashCode();
}
hash = (37 * hash) + RECORD_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getRecordToken().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.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest 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.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest 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.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest 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.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest 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.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest 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.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest 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.greenplum.v1.StreamClusterLogsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.greenplum.v1.StreamClusterLogsRequest)
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_StreamClusterLogsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_StreamClusterLogsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.Builder.class);
}
// Construct using yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.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_ = "";
columnFilter_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
serviceType_ = 0;
if (fromTimeBuilder_ == null) {
fromTime_ = null;
} else {
fromTime_ = null;
fromTimeBuilder_ = null;
}
if (toTimeBuilder_ == null) {
toTime_ = null;
} else {
toTime_ = null;
toTimeBuilder_ = null;
}
recordToken_ = "";
filter_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_StreamClusterLogsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest getDefaultInstanceForType() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest build() {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest buildPartial() {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest result = new yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest(this);
int from_bitField0_ = bitField0_;
result.clusterId_ = clusterId_;
if (((bitField0_ & 0x00000001) != 0)) {
columnFilter_ = columnFilter_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.columnFilter_ = columnFilter_;
result.serviceType_ = serviceType_;
if (fromTimeBuilder_ == null) {
result.fromTime_ = fromTime_;
} else {
result.fromTime_ = fromTimeBuilder_.build();
}
if (toTimeBuilder_ == null) {
result.toTime_ = toTime_;
} else {
result.toTime_ = toTimeBuilder_.build();
}
result.recordToken_ = recordToken_;
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.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest) {
return mergeFrom((yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest other) {
if (other == yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.getDefaultInstance()) return this;
if (!other.getClusterId().isEmpty()) {
clusterId_ = other.clusterId_;
onChanged();
}
if (!other.columnFilter_.isEmpty()) {
if (columnFilter_.isEmpty()) {
columnFilter_ = other.columnFilter_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureColumnFilterIsMutable();
columnFilter_.addAll(other.columnFilter_);
}
onChanged();
}
if (other.serviceType_ != 0) {
setServiceTypeValue(other.getServiceTypeValue());
}
if (other.hasFromTime()) {
mergeFromTime(other.getFromTime());
}
if (other.hasToTime()) {
mergeToTime(other.getToTime());
}
if (!other.getRecordToken().isEmpty()) {
recordToken_ = other.recordToken_;
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.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object clusterId_ = "";
/**
*
*
* 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 log table to get in the response.
* 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 log table to get in the response.
* 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 log table to get in the response.
* 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 log table to get in the response.
* 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 log table to get in the response.
* 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 log table to get in the response.
* 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 log table to get in the response.
* 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 log table to get in the response.
* If no columns are specified, entire log records are returned.
*
* Columns from log table to get in the response.
* 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.greenplum.v1.StreamClusterLogsRequest.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.greenplum.v1.StreamClusterLogsRequest.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.greenplum.v1.StreamClusterLogsRequest.ServiceType service_type = 3;
* @return The serviceType.
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.ServiceType getServiceType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.ServiceType result = yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.ServiceType.valueOf(serviceType_);
return result == null ? yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.ServiceType.UNRECOGNIZED : result;
}
/**
*
* Type of the service to request logs about.
*
*
* .yandex.cloud.mdb.greenplum.v1.StreamClusterLogsRequest.ServiceType service_type = 3;
* @param value The serviceType to set.
* @return This builder for chaining.
*/
public Builder setServiceType(yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.ServiceType value) {
if (value == null) {
throw new NullPointerException();
}
serviceType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* End timestamp for the logs request.
* If this field is not set, all existing logs are sent as well as the new ones as they appear.
* In essence it has `tail -f` semantics.
*
*
* .google.protobuf.Timestamp to_time = 5;
* @return Whether the toTime field is set.
*/
public boolean hasToTime() {
return toTimeBuilder_ != null || toTime_ != null;
}
/**
*
* End timestamp for the logs request.
* If this field is not set, all existing logs are sent as well as the new ones as they appear.
* In essence it has `tail -f` semantics.
*
* End timestamp for the logs request.
* If this field is not set, all existing logs are sent as well as the new ones as they appear.
* In essence it has `tail -f` semantics.
*
*
* .google.protobuf.Timestamp to_time = 5;
*/
public Builder setToTime(com.google.protobuf.Timestamp value) {
if (toTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
toTime_ = value;
onChanged();
} else {
toTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* End timestamp for the logs request.
* If this field is not set, all existing logs are sent as well as the new ones as they appear.
* In essence it has `tail -f` semantics.
*
* End timestamp for the logs request.
* If this field is not set, all existing logs are sent as well as the new ones as they appear.
* In essence it has `tail -f` semantics.
*
* End timestamp for the logs request.
* If this field is not set, all existing logs are sent as well as the new ones as they appear.
* In essence it has `tail -f` semantics.
*
* End timestamp for the logs request.
* If this field is not set, all existing logs are sent as well as the new ones as they appear.
* In essence it has `tail -f` semantics.
*
* End timestamp for the logs request.
* If this field is not set, all existing logs are sent as well as the new ones as they appear.
* In essence it has `tail -f` semantics.
*
* End timestamp for the logs request.
* If this field is not set, all existing logs are sent as well as the new ones as they appear.
* In essence it has `tail -f` semantics.
*
* Record token. Set [record_token] to the [StreamLogs.next_record_token] returned by the previous [StreamLogs] request to start streaming from the next log record.
*
* Record token. Set [record_token] to the [StreamLogs.next_record_token] returned by the previous [StreamLogs] request to start streaming from the next log record.
*
*
* string record_token = 6 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for recordToken.
*/
public com.google.protobuf.ByteString
getRecordTokenBytes() {
java.lang.Object ref = recordToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
recordToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Record token. Set [record_token] to the [StreamLogs.next_record_token] returned by the previous [StreamLogs] request to start streaming from the next log record.
*
*
* string record_token = 6 [(.yandex.cloud.length) = "<=100"];
* @param value The recordToken to set.
* @return This builder for chaining.
*/
public Builder setRecordToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
recordToken_ = value;
onChanged();
return this;
}
/**
*
* Record token. Set [record_token] to the [StreamLogs.next_record_token] returned by the previous [StreamLogs] request to start streaming from the next log record.
*
*
* string record_token = 6 [(.yandex.cloud.length) = "<=100"];
* @return This builder for chaining.
*/
public Builder clearRecordToken() {
recordToken_ = getDefaultInstance().getRecordToken();
onChanged();
return this;
}
/**
*
* Record token. Set [record_token] to the [StreamLogs.next_record_token] returned by the previous [StreamLogs] request to start streaming from the next log record.
*
*
* string record_token = 6 [(.yandex.cloud.length) = "<=100"];
* @param value The bytes for recordToken to set.
* @return This builder for chaining.
*/
public Builder setRecordTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
recordToken_ = 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. Currently filtering can be applied to the [LogRecord.logs.message.hostname], [LogRecord.logs.message.error_severity] (for GREENPLUM service), [LogRecord.logs.message.level] (for POOLER service) fields.
* 2. An `=` operator.
* 3. A value in double quotes (`"`). Must be 1-63 characters long and match the regular expression `[a-z0-9.-]{1,61}`.
* Examples of a filter:
* * `message.hostname='node1.db.cloud.yandex.net'`;
* * `message.error_severity IN ("ERROR", "FATAL", "PANIC") AND 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. Currently filtering can be applied to the [LogRecord.logs.message.hostname], [LogRecord.logs.message.error_severity] (for GREENPLUM service), [LogRecord.logs.message.level] (for POOLER service) fields.
* 2. An `=` operator.
* 3. A value in double quotes (`"`). Must be 1-63 characters long and match the regular expression `[a-z0-9.-]{1,61}`.
* Examples of a filter:
* * `message.hostname='node1.db.cloud.yandex.net'`;
* * `message.error_severity IN ("ERROR", "FATAL", "PANIC") AND message.hostname = "node1.db.cloud.yandex.net"`.
*
*
* string filter = 7 [(.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. Currently filtering can be applied to the [LogRecord.logs.message.hostname], [LogRecord.logs.message.error_severity] (for GREENPLUM service), [LogRecord.logs.message.level] (for POOLER service) fields.
* 2. An `=` operator.
* 3. A value in double quotes (`"`). Must be 1-63 characters long and match the regular expression `[a-z0-9.-]{1,61}`.
* Examples of a filter:
* * `message.hostname='node1.db.cloud.yandex.net'`;
* * `message.error_severity IN ("ERROR", "FATAL", "PANIC") AND message.hostname = "node1.db.cloud.yandex.net"`.
*
*
* string filter = 7 [(.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. Currently filtering can be applied to the [LogRecord.logs.message.hostname], [LogRecord.logs.message.error_severity] (for GREENPLUM service), [LogRecord.logs.message.level] (for POOLER service) fields.
* 2. An `=` operator.
* 3. A value in double quotes (`"`). Must be 1-63 characters long and match the regular expression `[a-z0-9.-]{1,61}`.
* Examples of a filter:
* * `message.hostname='node1.db.cloud.yandex.net'`;
* * `message.error_severity IN ("ERROR", "FATAL", "PANIC") AND message.hostname = "node1.db.cloud.yandex.net"`.
*
*
* string filter = 7 [(.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. Currently filtering can be applied to the [LogRecord.logs.message.hostname], [LogRecord.logs.message.error_severity] (for GREENPLUM service), [LogRecord.logs.message.level] (for POOLER service) fields.
* 2. An `=` operator.
* 3. A value in double quotes (`"`). Must be 1-63 characters long and match the regular expression `[a-z0-9.-]{1,61}`.
* Examples of a filter:
* * `message.hostname='node1.db.cloud.yandex.net'`;
* * `message.error_severity IN ("ERROR", "FATAL", "PANIC") AND message.hostname = "node1.db.cloud.yandex.net"`.
*
*
* string filter = 7 [(.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.greenplum.v1.StreamClusterLogsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.greenplum.v1.StreamClusterLogsRequest)
private static final yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest();
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StreamClusterLogsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StreamClusterLogsRequest(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.greenplum.v1.ClusterServiceOuterClass.StreamClusterLogsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListClusterBackupsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.greenplum.v1.ListClusterBackupsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* This token allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterBackupsRequest.page_size], use the [next_page_token] as the value for the [ListClusterBackupsRequest.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.
*
* This token allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterBackupsRequest.page_size], use the [next_page_token] as the value for the [ListClusterBackupsRequest.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.greenplum.v1.ListClusterBackupsResponse}
*/
public static final class ListClusterBackupsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.greenplum.v1.ListClusterBackupsResponse)
ListClusterBackupsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListClusterBackupsResponse.newBuilder() to construct.
private ListClusterBackupsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListClusterBackupsResponse() {
backups_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListClusterBackupsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListClusterBackupsResponse(
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)) {
backups_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
backups_.add(
input.readMessage(yandex.cloud.api.mdb.greenplum.v1.BackupOuterClass.Backup.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)) {
backups_ = java.util.Collections.unmodifiableList(backups_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterBackupsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterBackupsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse.Builder.class);
}
public static final int BACKUPS_FIELD_NUMBER = 1;
private java.util.List backups_;
/**
*
*
* repeated .yandex.cloud.mdb.greenplum.v1.Backup backups = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.BackupOuterClass.BackupOrBuilder getBackupsOrBuilder(
int index) {
return backups_.get(index);
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
private volatile java.lang.Object nextPageToken_;
/**
*
* This token allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterBackupsRequest.page_size], use the [next_page_token] as the value for the [ListClusterBackupsRequest.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.
*
* This token allows you to get the next page of results for list requests.
* If the number of results is larger than [ListClusterBackupsRequest.page_size], use the [next_page_token] as the value for the [ListClusterBackupsRequest.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 < backups_.size(); i++) {
output.writeMessage(1, backups_.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 < backups_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, backups_.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.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse other = (yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse) obj;
if (!getBackupsList()
.equals(other.getBackupsList())) 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 (getBackupsCount() > 0) {
hash = (37 * hash) + BACKUPS_FIELD_NUMBER;
hash = (53 * hash) + getBackupsList().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.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse 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.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse 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.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse 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.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse 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.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse 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.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse 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.greenplum.v1.ListClusterBackupsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.greenplum.v1.ListClusterBackupsResponse)
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterBackupsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterBackupsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse.class, yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse.Builder.class);
}
// Construct using yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBackupsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (backupsBuilder_ == null) {
backups_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
backupsBuilder_.clear();
}
nextPageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_greenplum_v1_ListClusterBackupsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse getDefaultInstanceForType() {
return yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse build() {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse buildPartial() {
yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse result = new yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse(this);
int from_bitField0_ = bitField0_;
if (backupsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
backups_ = java.util.Collections.unmodifiableList(backups_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.backups_ = backups_;
} else {
result.backups_ = backupsBuilder_.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.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse) {
return mergeFrom((yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse other) {
if (other == yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse.getDefaultInstance()) return this;
if (backupsBuilder_ == null) {
if (!other.backups_.isEmpty()) {
if (backups_.isEmpty()) {
backups_ = other.backups_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureBackupsIsMutable();
backups_.addAll(other.backups_);
}
onChanged();
}
} else {
if (!other.backups_.isEmpty()) {
if (backupsBuilder_.isEmpty()) {
backupsBuilder_.dispose();
backupsBuilder_ = null;
backups_ = other.backups_;
bitField0_ = (bitField0_ & ~0x00000001);
backupsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getBackupsFieldBuilder() : null;
} else {
backupsBuilder_.addAllMessages(other.backups_);
}
}
}
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.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.greenplum.v1.ClusterServiceOuterClass.ListClusterBackupsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List backups_ =
java.util.Collections.emptyList();
private void ensureBackupsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
backups_ = new java.util.ArrayList(backups_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.mdb.greenplum.v1.BackupOuterClass.Backup, yandex.cloud.api.mdb.greenplum.v1.BackupOuterClass.Backup.Builder, yandex.cloud.api.mdb.greenplum.v1.BackupOuterClass.BackupOrBuilder> backupsBuilder_;
/**
*