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.opensearch.v1.ListClustersRequest}
*/
public static final class ListClustersRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClustersRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClustersRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersRequest.class, yandex.cloud.api.mdb.opensearch.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 OpenSearch clusters in.
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
* ID of the folder to list OpenSearch 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.opensearch.v1.ClusterServiceOuterClass.ListClustersRequest)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersRequest other = (yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClustersRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClustersRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClustersRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.v1.ListClustersRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.ListClustersRequest)
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClustersRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClustersRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersRequest.class, yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersRequest.Builder.class);
}
// Construct using yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClustersRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersRequest getDefaultInstanceForType() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersRequest build() {
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersRequest buildPartial() {
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersRequest result = new yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClustersRequest) {
return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersRequest other) {
if (other == yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClustersRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.opensearch.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 OpenSearch clusters in.
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
* ID of the folder to list OpenSearch 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.
*
* 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.opensearch.v1.ListClustersRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.ListClustersRequest)
private static final yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersRequest();
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClustersRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListClustersResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.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.opensearch.v1.ListClustersResponse}
*/
public static final class ListClustersResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.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.opensearch.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.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClustersResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClustersResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersResponse.class, yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersResponse.Builder.class);
}
public static final int CLUSTERS_FIELD_NUMBER = 1;
private java.util.List clusters_;
/**
*
*
* repeated .yandex.cloud.mdb.opensearch.v1.Cluster clusters = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClustersResponse)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersResponse other = (yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClustersResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClustersResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClustersResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.v1.ListClustersResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.ListClustersResponse)
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClustersResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClustersResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersResponse.class, yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersResponse.Builder.class);
}
// Construct using yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClustersResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersResponse getDefaultInstanceForType() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersResponse build() {
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersResponse buildPartial() {
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersResponse result = new yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClustersResponse) {
return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersResponse other) {
if (other == yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClustersResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterOuterClass.Cluster, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Builder, yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ListClustersResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.ListClustersResponse)
private static final yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClustersResponse();
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClustersResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateClusterRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.v1.CreateClusterRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the folder to create the OpenSearch cluster in.
*
* Deployment environment of the OpenSearch cluster.
*
*
* .yandex.cloud.mdb.opensearch.v1.Cluster.Environment environment = 5;
* @return The enum numeric value on the wire for environment.
*/
int getEnvironmentValue();
/**
*
* Deployment environment of the OpenSearch cluster.
*
*
* repeated string security_group_ids = 8;
* @return A list containing the securityGroupIds.
*/
java.util.List
getSecurityGroupIdsList();
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 8;
* @return The count of securityGroupIds.
*/
int getSecurityGroupIdsCount();
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 8;
* @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 = 8;
* @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);
/**
*
* ID of the service account used to access Object Storage.
*
* Custom labels for the OpenSearch 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 OpenSearch cluster.
*
*
* .yandex.cloud.mdb.opensearch.v1.Cluster.Environment environment = 5;
* @return The enum numeric value on the wire for environment.
*/
@java.lang.Override public int getEnvironmentValue() {
return environment_;
}
/**
*
* Deployment environment of the OpenSearch cluster.
*
*
* .yandex.cloud.mdb.opensearch.v1.Cluster.Environment environment = 5;
* @return The environment.
*/
@java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Environment getEnvironment() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Environment result = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Environment.valueOf(environment_);
return result == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Environment.UNRECOGNIZED : result;
}
public static final int CONFIG_SPEC_FIELD_NUMBER = 6;
private yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec configSpec_;
/**
*
* OpenSearch cluster configuration.
*
*
* .yandex.cloud.mdb.opensearch.v1.ConfigCreateSpec config_spec = 6 [(.yandex.cloud.required) = true];
* @return Whether the configSpec field is set.
*/
@java.lang.Override
public boolean hasConfigSpec() {
return configSpec_ != null;
}
/**
*
*
* string network_id = 7 [(.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 = 8;
private com.google.protobuf.LazyStringList securityGroupIds_;
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 8;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_;
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 8;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 8;
* @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 = 8;
* @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 SERVICE_ACCOUNT_ID_FIELD_NUMBER = 9;
private volatile java.lang.Object serviceAccountId_;
/**
*
* ID of the service account used to access Object Storage.
*
* Deployment environment of the OpenSearch cluster.
*
*
* .yandex.cloud.mdb.opensearch.v1.Cluster.Environment environment = 5;
* @return The enum numeric value on the wire for environment.
*/
@java.lang.Override public int getEnvironmentValue() {
return environment_;
}
/**
*
* Deployment environment of the OpenSearch cluster.
*
*
* .yandex.cloud.mdb.opensearch.v1.Cluster.Environment environment = 5;
* @param value The enum numeric value on the wire for environment to set.
* @return This builder for chaining.
*/
public Builder setEnvironmentValue(int value) {
environment_ = value;
onChanged();
return this;
}
/**
*
* Deployment environment of the OpenSearch cluster.
*
*
* .yandex.cloud.mdb.opensearch.v1.Cluster.Environment environment = 5;
* @return The environment.
*/
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Environment getEnvironment() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Environment result = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Environment.valueOf(environment_);
return result == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Environment.UNRECOGNIZED : result;
}
/**
*
* Deployment environment of the OpenSearch cluster.
*
*
* .yandex.cloud.mdb.opensearch.v1.Cluster.Environment environment = 5;
* @param value The environment to set.
* @return This builder for chaining.
*/
public Builder setEnvironment(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster.Environment value) {
if (value == null) {
throw new NullPointerException();
}
environment_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Deployment environment of the OpenSearch cluster.
*
*
* string network_id = 7 [(.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 = 8;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_.getUnmodifiableView();
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 8;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* User security groups.
*
*
* repeated string security_group_ids = 8;
* @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 = 8;
* @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 = 8;
* @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 = 8;
* @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 = 8;
* @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;
}
/**
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Custom labels for the OpenSearch 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 OpenSearch 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 OpenSearch 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 OpenSearch 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 OpenSearch 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.
*
* New name for the cluster. The name must be unique within the folder.
*
*
* string name = 6 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* User security groups
*
*
* repeated string security_group_ids = 7;
* @return A list containing the securityGroupIds.
*/
java.util.List
getSecurityGroupIdsList();
/**
*
* User security groups
*
*
* repeated string security_group_ids = 7;
* @return The count of securityGroupIds.
*/
int getSecurityGroupIdsCount();
/**
*
* User security groups
*
*
* repeated string security_group_ids = 7;
* @param index The index of the element to return.
* @return The securityGroupIds at the given index.
*/
java.lang.String getSecurityGroupIds(int index);
/**
*
* User security groups
*
*
* repeated string security_group_ids = 7;
* @param index The index of the value to return.
* @return The bytes of the securityGroupIds at the given index.
*/
com.google.protobuf.ByteString
getSecurityGroupIdsBytes(int index);
/**
*
* ID of the service account used to access Object Storage.
*
*
* 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.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_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 OpenSearch 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 OpenSearch 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 OpenSearch 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 OpenSearch cluster as `key:value` pairs.
* For example, `"project": "mvp"` or `"source": "dictionary"`.
* The new set of labels completely replaces the old one. To add a label, request the current
* set with the [ClusterService.Get] method, then send an [ClusterService.Update] request with the new label added to the set.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int CONFIG_SPEC_FIELD_NUMBER = 5;
private yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigUpdateSpec configSpec_;
/**
*
* New cluster configuration
*
*
* .yandex.cloud.mdb.opensearch.v1.ConfigUpdateSpec config_spec = 5;
* @return Whether the configSpec field is set.
*/
@java.lang.Override
public boolean hasConfigSpec() {
return configSpec_ != null;
}
/**
*
* New name for the cluster. The name must be unique within the folder.
*
*
* string name = 6 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SECURITY_GROUP_IDS_FIELD_NUMBER = 7;
private com.google.protobuf.LazyStringList securityGroupIds_;
/**
*
* User security groups
*
*
* repeated string security_group_ids = 7;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_;
}
/**
*
* User security groups
*
*
* repeated string security_group_ids = 7;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* User security groups
*
*
* repeated string security_group_ids = 7;
* @param index The index of the element to return.
* @return The securityGroupIds at the given index.
*/
public java.lang.String getSecurityGroupIds(int index) {
return securityGroupIds_.get(index);
}
/**
*
* User security groups
*
*
* repeated string security_group_ids = 7;
* @param index The index of the value to return.
* @return The bytes of the securityGroupIds at the given index.
*/
public com.google.protobuf.ByteString
getSecurityGroupIdsBytes(int index) {
return securityGroupIds_.getByteString(index);
}
public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 8;
private volatile java.lang.Object serviceAccountId_;
/**
*
* ID of the service account used to access Object Storage.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* New description of the OpenSearch 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 OpenSearch 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 OpenSearch 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 OpenSearch 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 OpenSearch 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 OpenSearch 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 OpenSearch 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 OpenSearch 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 OpenSearch 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 OpenSearch 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.
*
* New name for the cluster. The name must be unique within the folder.
*
*
* string name = 6 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* New name for the cluster. The name must be unique within the folder.
*
*
* string name = 6 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* New name for the cluster. The name must be unique within the folder.
*
*
* string name = 6 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* New name for the cluster. The name must be unique within the folder.
*
*
* string name = 6 [(.yandex.cloud.pattern) = "[a-zA-Z0-9_-]*", (.yandex.cloud.length) = "<=63"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList securityGroupIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSecurityGroupIdsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
securityGroupIds_ = new com.google.protobuf.LazyStringArrayList(securityGroupIds_);
bitField0_ |= 0x00000002;
}
}
/**
*
* User security groups
*
*
* repeated string security_group_ids = 7;
* @return A list containing the securityGroupIds.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupIdsList() {
return securityGroupIds_.getUnmodifiableView();
}
/**
*
* User security groups
*
*
* repeated string security_group_ids = 7;
* @return The count of securityGroupIds.
*/
public int getSecurityGroupIdsCount() {
return securityGroupIds_.size();
}
/**
*
* User security groups
*
*
* repeated string security_group_ids = 7;
* @param index The index of the element to return.
* @return The securityGroupIds at the given index.
*/
public java.lang.String getSecurityGroupIds(int index) {
return securityGroupIds_.get(index);
}
/**
*
* User security groups
*
*
* repeated string security_group_ids = 7;
* @param index The index of the value to return.
* @return The bytes of the securityGroupIds at the given index.
*/
public com.google.protobuf.ByteString
getSecurityGroupIdsBytes(int index) {
return securityGroupIds_.getByteString(index);
}
/**
*
* User security groups
*
*
* repeated string security_group_ids = 7;
* @param index The index to set the value at.
* @param value The securityGroupIds to set.
* @return This builder for chaining.
*/
public Builder setSecurityGroupIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.set(index, value);
onChanged();
return this;
}
/**
*
* User security groups
*
*
* repeated string security_group_ids = 7;
* @param value The securityGroupIds to add.
* @return This builder for chaining.
*/
public Builder addSecurityGroupIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSecurityGroupIdsIsMutable();
securityGroupIds_.add(value);
onChanged();
return this;
}
/**
*
* User security groups
*
*
* repeated string security_group_ids = 7;
* @param values The securityGroupIds to add.
* @return This builder for chaining.
*/
public Builder addAllSecurityGroupIds(
java.lang.Iterable values) {
ensureSecurityGroupIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, securityGroupIds_);
onChanged();
return this;
}
/**
*
* 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);
/**
*
* Start timestamp for the logs request.
*
*
* .google.protobuf.Timestamp from_time = 3;
* @return Whether the fromTime field is set.
*/
boolean hasFromTime();
/**
*
* 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 = 5 [(.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 = 6 [(.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] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `^[a-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] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `^[a-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 = 8 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
com.google.protobuf.ByteString
getFilterBytes();
/**
*
* Type of the service to request logs about.
*
*
* .yandex.cloud.mdb.opensearch.v1.ListClusterLogsRequest.ServiceType service_type = 9;
* @return The enum numeric value on the wire for serviceType.
*/
int getServiceTypeValue();
/**
*
* Type of the service to request logs about.
*
*
* .yandex.cloud.mdb.opensearch.v1.ListClusterLogsRequest.ServiceType service_type = 9;
* @return The serviceType.
*/
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest.ServiceType getServiceType();
}
/**
* Protobuf type {@code yandex.cloud.mdb.opensearch.v1.ListClusterLogsRequest}
*/
public static final class ListClusterLogsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.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;
pageToken_ = "";
filter_ = "";
serviceType_ = 0;
}
@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 26: {
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 34: {
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 40: {
pageSize_ = input.readInt64();
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
pageToken_ = s;
break;
}
case 56: {
alwaysNextPageToken_ = input.readBool();
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
filter_ = s;
break;
}
case 72: {
int rawValue = input.readEnum();
serviceType_ = rawValue;
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.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterLogsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterLogsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest.class, yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.mdb.opensearch.v1.ListClusterLogsRequest.ServiceType}
*/
public enum ServiceType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
* SERVICE_TYPE_UNSPECIFIED = 0;
*/
public static final int SERVICE_TYPE_UNSPECIFIED_VALUE = 0;
/**
*
* OpenSearch logs.
*
*
* OPENSEARCH = 1;
*/
public static final int OPENSEARCH_VALUE = 1;
/**
*
* Dashboards logs.
*
*
* DASHBOARDS = 2;
*/
public static final int DASHBOARDS_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ServiceType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ServiceType forNumber(int value) {
switch (value) {
case 0: return SERVICE_TYPE_UNSPECIFIED;
case 1: return OPENSEARCH;
case 2: return DASHBOARDS;
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.opensearch.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.opensearch.v1.ListClusterLogsRequest.ServiceType)
}
public static final int CLUSTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clusterId_;
/**
*
* ID of the OpenSearch cluster to request logs for.
* To get the OpenSearch cluster ID use a [ClusterService.List] request.
*
* ID of the OpenSearch cluster to request logs for.
* To get the OpenSearch 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 FROM_TIME_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp fromTime_;
/**
*
* Start timestamp for the logs request.
*
*
* .google.protobuf.Timestamp from_time = 3;
* @return Whether the fromTime field is set.
*/
@java.lang.Override
public boolean hasFromTime() {
return fromTime_ != null;
}
/**
*
*
* .google.protobuf.Timestamp to_time = 4;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getToTimeOrBuilder() {
return getToTime();
}
public static final int PAGE_SIZE_FIELD_NUMBER = 5;
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 = 5 [(.yandex.cloud.value) = "<=1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 6;
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 = 6 [(.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 = 7;
private boolean alwaysNextPageToken_;
/**
*
* The service always returns a [ListClusterLogsResponse.next_page_token], even if the current page is empty.
*
*
* bool always_next_page_token = 7;
* @return The alwaysNextPageToken.
*/
@java.lang.Override
public boolean getAlwaysNextPageToken() {
return alwaysNextPageToken_;
}
public static final int FILTER_FIELD_NUMBER = 8;
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] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `^[a-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] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `^[a-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 = 8 [(.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;
}
}
public static final int SERVICE_TYPE_FIELD_NUMBER = 9;
private int serviceType_;
/**
*
* Type of the service to request logs about.
*
*
* .yandex.cloud.mdb.opensearch.v1.ListClusterLogsRequest.ServiceType service_type = 9;
* @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.opensearch.v1.ListClusterLogsRequest.ServiceType service_type = 9;
* @return The serviceType.
*/
@java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest.ServiceType getServiceType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest.ServiceType result = yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest.ServiceType.valueOf(serviceType_);
return result == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest.ServiceType.UNRECOGNIZED : result;
}
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 (fromTime_ != null) {
output.writeMessage(3, getFromTime());
}
if (toTime_ != null) {
output.writeMessage(4, getToTime());
}
if (pageSize_ != 0L) {
output.writeInt64(5, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, pageToken_);
}
if (alwaysNextPageToken_ != false) {
output.writeBool(7, alwaysNextPageToken_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, filter_);
}
if (serviceType_ != yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest.ServiceType.SERVICE_TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(9, serviceType_);
}
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 (fromTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getFromTime());
}
if (toTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getToTime());
}
if (pageSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, pageSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, pageToken_);
}
if (alwaysNextPageToken_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, alwaysNextPageToken_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, filter_);
}
if (serviceType_ != yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest.ServiceType.SERVICE_TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(9, serviceType_);
}
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.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest other = (yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest) obj;
if (!getClusterId()
.equals(other.getClusterId())) return false;
if (!getColumnFilterList()
.equals(other.getColumnFilterList())) 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 (getPageSize()
!= other.getPageSize()) return false;
if (!getPageToken()
.equals(other.getPageToken())) return false;
if (getAlwaysNextPageToken()
!= other.getAlwaysNextPageToken()) return false;
if (!getFilter()
.equals(other.getFilter())) return false;
if (serviceType_ != other.serviceType_) 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();
}
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) + 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) + ALWAYS_NEXT_PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAlwaysNextPageToken());
hash = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
hash = (37 * hash) + SERVICE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + serviceType_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest 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.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest 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.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest 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.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest 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.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest 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.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest 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.opensearch.v1.ListClusterLogsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.ListClusterLogsRequest)
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterLogsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterLogsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest.class, yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest.Builder.class);
}
// Construct using yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest.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);
if (fromTimeBuilder_ == null) {
fromTime_ = null;
} else {
fromTime_ = null;
fromTimeBuilder_ = null;
}
if (toTimeBuilder_ == null) {
toTime_ = null;
} else {
toTime_ = null;
toTimeBuilder_ = null;
}
pageSize_ = 0L;
pageToken_ = "";
alwaysNextPageToken_ = false;
filter_ = "";
serviceType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterLogsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest getDefaultInstanceForType() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest build() {
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest buildPartial() {
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest result = new yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest(this);
int from_bitField0_ = bitField0_;
result.clusterId_ = clusterId_;
if (((bitField0_ & 0x00000001) != 0)) {
columnFilter_ = columnFilter_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.columnFilter_ = columnFilter_;
if (fromTimeBuilder_ == null) {
result.fromTime_ = fromTime_;
} else {
result.fromTime_ = fromTimeBuilder_.build();
}
if (toTimeBuilder_ == null) {
result.toTime_ = toTime_;
} else {
result.toTime_ = toTimeBuilder_.build();
}
result.pageSize_ = pageSize_;
result.pageToken_ = pageToken_;
result.alwaysNextPageToken_ = alwaysNextPageToken_;
result.filter_ = filter_;
result.serviceType_ = serviceType_;
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.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest) {
return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest other) {
if (other == yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest.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.hasFromTime()) {
mergeFromTime(other.getFromTime());
}
if (other.hasToTime()) {
mergeToTime(other.getToTime());
}
if (other.getPageSize() != 0L) {
setPageSize(other.getPageSize());
}
if (!other.getPageToken().isEmpty()) {
pageToken_ = other.pageToken_;
onChanged();
}
if (other.getAlwaysNextPageToken() != false) {
setAlwaysNextPageToken(other.getAlwaysNextPageToken());
}
if (!other.getFilter().isEmpty()) {
filter_ = other.filter_;
onChanged();
}
if (other.serviceType_ != 0) {
setServiceTypeValue(other.getServiceTypeValue());
}
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.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object clusterId_ = "";
/**
*
* ID of the OpenSearch cluster to request logs for.
* To get the OpenSearch cluster ID use a [ClusterService.List] request.
*
* ID of the OpenSearch cluster to request logs for.
* To get the OpenSearch 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.
*
* 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 = 5 [(.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 = 5 [(.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 = 6 [(.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 = 6 [(.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 = 6 [(.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 = 6 [(.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] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `^[a-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] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `^[a-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 = 8 [(.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] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `^[a-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 = 8 [(.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] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `^[a-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 = 8 [(.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] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `^[a-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 = 8 [(.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;
}
private int serviceType_ = 0;
/**
*
* Type of the service to request logs about.
*
*
* .yandex.cloud.mdb.opensearch.v1.ListClusterLogsRequest.ServiceType service_type = 9;
* @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.opensearch.v1.ListClusterLogsRequest.ServiceType service_type = 9;
* @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.opensearch.v1.ListClusterLogsRequest.ServiceType service_type = 9;
* @return The serviceType.
*/
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest.ServiceType getServiceType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest.ServiceType result = yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest.ServiceType.valueOf(serviceType_);
return result == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest.ServiceType.UNRECOGNIZED : result;
}
/**
*
* Type of the service to request logs about.
*
*
* .yandex.cloud.mdb.opensearch.v1.ListClusterLogsRequest.ServiceType service_type = 9;
* @param value The serviceType to set.
* @return This builder for chaining.
*/
public Builder setServiceType(yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest.ServiceType value) {
if (value == null) {
throw new NullPointerException();
}
serviceType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Type of the service to request logs about.
*
*
* .yandex.cloud.mdb.opensearch.v1.ListClusterLogsRequest.ServiceType service_type = 9;
* @return This builder for chaining.
*/
public Builder clearServiceType() {
serviceType_ = 0;
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.opensearch.v1.ListClusterLogsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.ListClusterLogsRequest)
private static final yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest();
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LogRecordOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.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();
/**
*
* 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.opensearch.v1.ListClusterLogsResponse}
*/
public static final class ListClusterLogsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.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.opensearch.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.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterLogsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterLogsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsResponse.class, yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsResponse.Builder.class);
}
public static final int LOGS_FIELD_NUMBER = 1;
private java.util.List logs_;
/**
*
*
* repeated .yandex.cloud.mdb.opensearch.v1.LogRecord logs = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsResponse other = (yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.v1.ListClusterLogsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.ListClusterLogsResponse)
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterLogsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterLogsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsResponse.class, yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsResponse.Builder.class);
}
// Construct using yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterLogsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsResponse getDefaultInstanceForType() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsResponse build() {
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsResponse buildPartial() {
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsResponse result = new yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsResponse) {
return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsResponse other) {
if (other == yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.LogRecord, yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.LogRecord.Builder, yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ListClusterLogsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.ListClusterLogsResponse)
private static final yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsResponse();
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterLogsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StreamLogRecordOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.v1.StreamLogRecord)
com.google.protobuf.MessageOrBuilder {
/**
*
* One of the requested log records.
*
*
* .yandex.cloud.mdb.opensearch.v1.LogRecord record = 1;
* @return Whether the record field is set.
*/
boolean hasRecord();
/**
*
* One of the requested log records.
*
*
* .yandex.cloud.mdb.opensearch.v1.LogRecord record = 1;
* @return The record.
*/
yandex.cloud.api.mdb.opensearch.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.opensearch.v1.StreamLogRecord}
*/
public static final class StreamLogRecord extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.LogRecord.Builder subBuilder = null;
if (record_ != null) {
subBuilder = record_.toBuilder();
}
record_ = input.readMessage(yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_StreamLogRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_StreamLogRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamLogRecord.class, yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamLogRecord.Builder.class);
}
public static final int RECORD_FIELD_NUMBER = 1;
private yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.LogRecord record_;
/**
*
* One of the requested log records.
*
*
* .yandex.cloud.mdb.opensearch.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.opensearch.v1.LogRecord record = 1;
* @return The record.
*/
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.LogRecord getRecord() {
return record_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.LogRecord.getDefaultInstance() : record_;
}
/**
*
* One of the requested log records.
*
*
* .yandex.cloud.mdb.opensearch.v1.LogRecord record = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.StreamLogRecord)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamLogRecord other = (yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.StreamLogRecord parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.StreamLogRecord parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.StreamLogRecord parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.v1.StreamLogRecord}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.StreamLogRecord)
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamLogRecordOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_StreamLogRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_StreamLogRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamLogRecord.class, yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamLogRecord.Builder.class);
}
// Construct using yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_StreamLogRecord_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamLogRecord getDefaultInstanceForType() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamLogRecord.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamLogRecord build() {
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamLogRecord result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamLogRecord buildPartial() {
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamLogRecord result = new yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.StreamLogRecord) {
return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamLogRecord)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamLogRecord other) {
if (other == yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.StreamLogRecord parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamLogRecord) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.LogRecord record_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.LogRecord, yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.LogRecord.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.LogRecordOrBuilder> recordBuilder_;
/**
*
* One of the requested log records.
*
*
* .yandex.cloud.mdb.opensearch.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.opensearch.v1.LogRecord record = 1;
* @return The record.
*/
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.LogRecord getRecord() {
if (recordBuilder_ == null) {
return record_ == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.LogRecord.getDefaultInstance() : record_;
} else {
return recordBuilder_.getMessage();
}
}
/**
*
* One of the requested log records.
*
*
* .yandex.cloud.mdb.opensearch.v1.LogRecord record = 1;
*/
public Builder setRecord(yandex.cloud.api.mdb.opensearch.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.opensearch.v1.StreamLogRecord)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.StreamLogRecord)
private static final yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamLogRecord DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamLogRecord();
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.StreamLogRecord getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StreamClusterLogsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.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);
/**
*
* Start timestamp for the logs request.
*
*
* .google.protobuf.Timestamp from_time = 3;
* @return Whether the fromTime field is set.
*/
boolean hasFromTime();
/**
*
* 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 = 4;
* @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 `next_record_token` returned by the previous [StreamLogs]
* request to start streaming from the next log record.
*
* Record token. Set `record_token` to the `next_record_token` returned by the previous [StreamLogs]
* request to start streaming from the next log record.
*
*
* string record_token = 5 [(.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] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `^[a-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] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `^[a-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 = 6 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
com.google.protobuf.ByteString
getFilterBytes();
/**
*
* Type of the service to request logs about.
*
*
* .yandex.cloud.mdb.opensearch.v1.StreamClusterLogsRequest.ServiceType service_type = 7;
* @return The enum numeric value on the wire for serviceType.
*/
int getServiceTypeValue();
/**
*
* Type of the service to request logs about.
*
*
* .yandex.cloud.mdb.opensearch.v1.StreamClusterLogsRequest.ServiceType service_type = 7;
* @return The serviceType.
*/
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.ServiceType getServiceType();
}
/**
* Protobuf type {@code yandex.cloud.mdb.opensearch.v1.StreamClusterLogsRequest}
*/
public static final class StreamClusterLogsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.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;
recordToken_ = "";
filter_ = "";
serviceType_ = 0;
}
@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 26: {
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 34: {
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 42: {
java.lang.String s = input.readStringRequireUtf8();
recordToken_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
filter_ = s;
break;
}
case 56: {
int rawValue = input.readEnum();
serviceType_ = rawValue;
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.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_StreamClusterLogsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_StreamClusterLogsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.class, yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.mdb.opensearch.v1.StreamClusterLogsRequest.ServiceType}
*/
public enum ServiceType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
* SERVICE_TYPE_UNSPECIFIED = 0;
*/
public static final int SERVICE_TYPE_UNSPECIFIED_VALUE = 0;
/**
*
* OpenSearch logs.
*
*
* OPENSEARCH = 1;
*/
public static final int OPENSEARCH_VALUE = 1;
/**
*
* Dashboards logs.
*
*
* DASHBOARDS = 2;
*/
public static final int DASHBOARDS_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ServiceType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ServiceType forNumber(int value) {
switch (value) {
case 0: return SERVICE_TYPE_UNSPECIFIED;
case 1: return OPENSEARCH;
case 2: return DASHBOARDS;
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.opensearch.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.opensearch.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 FROM_TIME_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp fromTime_;
/**
*
* Start timestamp for the logs request.
*
*
* .google.protobuf.Timestamp from_time = 3;
* @return Whether the fromTime field is set.
*/
@java.lang.Override
public boolean hasFromTime() {
return fromTime_ != null;
}
/**
*
*
* .google.protobuf.Timestamp from_time = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getFromTimeOrBuilder() {
return getFromTime();
}
public static final int TO_TIME_FIELD_NUMBER = 4;
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 = 4;
* @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 = 4;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getToTimeOrBuilder() {
return getToTime();
}
public static final int RECORD_TOKEN_FIELD_NUMBER = 5;
private volatile java.lang.Object recordToken_;
/**
*
* Record token. Set `record_token` to the `next_record_token` returned by the previous [StreamLogs]
* request to start streaming from the next log record.
*
* Record token. Set `record_token` to the `next_record_token` returned by the previous [StreamLogs]
* request to start streaming from the next log record.
*
*
* string record_token = 5 [(.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 = 6;
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] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `^[a-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] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `^[a-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 = 6 [(.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;
}
}
public static final int SERVICE_TYPE_FIELD_NUMBER = 7;
private int serviceType_;
/**
*
* Type of the service to request logs about.
*
*
* .yandex.cloud.mdb.opensearch.v1.StreamClusterLogsRequest.ServiceType service_type = 7;
* @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.opensearch.v1.StreamClusterLogsRequest.ServiceType service_type = 7;
* @return The serviceType.
*/
@java.lang.Override public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.ServiceType getServiceType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.ServiceType result = yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.ServiceType.valueOf(serviceType_);
return result == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.ServiceType.UNRECOGNIZED : result;
}
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 (fromTime_ != null) {
output.writeMessage(3, getFromTime());
}
if (toTime_ != null) {
output.writeMessage(4, getToTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recordToken_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, recordToken_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, filter_);
}
if (serviceType_ != yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.ServiceType.SERVICE_TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(7, serviceType_);
}
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 (fromTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getFromTime());
}
if (toTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getToTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recordToken_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, recordToken_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, filter_);
}
if (serviceType_ != yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.ServiceType.SERVICE_TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, serviceType_);
}
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.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest other = (yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest) obj;
if (!getClusterId()
.equals(other.getClusterId())) return false;
if (!getColumnFilterList()
.equals(other.getColumnFilterList())) 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 (serviceType_ != other.serviceType_) 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();
}
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 = (37 * hash) + SERVICE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + serviceType_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.v1.StreamClusterLogsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.StreamClusterLogsRequest)
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_StreamClusterLogsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_StreamClusterLogsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.class, yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.Builder.class);
}
// Construct using yandex.cloud.api.mdb.opensearch.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);
if (fromTimeBuilder_ == null) {
fromTime_ = null;
} else {
fromTime_ = null;
fromTimeBuilder_ = null;
}
if (toTimeBuilder_ == null) {
toTime_ = null;
} else {
toTime_ = null;
toTimeBuilder_ = null;
}
recordToken_ = "";
filter_ = "";
serviceType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_StreamClusterLogsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest getDefaultInstanceForType() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest build() {
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest buildPartial() {
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest result = new yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest(this);
int from_bitField0_ = bitField0_;
result.clusterId_ = clusterId_;
if (((bitField0_ & 0x00000001) != 0)) {
columnFilter_ = columnFilter_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.columnFilter_ = columnFilter_;
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_;
result.serviceType_ = serviceType_;
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.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest) {
return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest other) {
if (other == yandex.cloud.api.mdb.opensearch.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.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();
}
if (other.serviceType_ != 0) {
setServiceTypeValue(other.getServiceTypeValue());
}
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.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.opensearch.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.
*
* 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 = 4;
* @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 = 4;
*/
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 `next_record_token` returned by the previous [StreamLogs]
* request to start streaming from the next log record.
*
* Record token. Set `record_token` to the `next_record_token` returned by the previous [StreamLogs]
* request to start streaming from the next log record.
*
*
* string record_token = 5 [(.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 `next_record_token` returned by the previous [StreamLogs]
* request to start streaming from the next log record.
*
*
* string record_token = 5 [(.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 `next_record_token` returned by the previous [StreamLogs]
* request to start streaming from the next log record.
*
*
* string record_token = 5 [(.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 `next_record_token` returned by the previous [StreamLogs]
* request to start streaming from the next log record.
*
*
* string record_token = 5 [(.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] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `^[a-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] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `^[a-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 = 6 [(.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] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `^[a-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 = 6 [(.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] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `^[a-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 = 6 [(.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] field.
* 2. A conditional operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
* 3. A value. Must be 1-63 characters long and match the regular expression `^[a-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 = 6 [(.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;
}
private int serviceType_ = 0;
/**
*
* Type of the service to request logs about.
*
*
* .yandex.cloud.mdb.opensearch.v1.StreamClusterLogsRequest.ServiceType service_type = 7;
* @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.opensearch.v1.StreamClusterLogsRequest.ServiceType service_type = 7;
* @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.opensearch.v1.StreamClusterLogsRequest.ServiceType service_type = 7;
* @return The serviceType.
*/
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.ServiceType getServiceType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.ServiceType result = yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.ServiceType.valueOf(serviceType_);
return result == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.ServiceType.UNRECOGNIZED : result;
}
/**
*
* Type of the service to request logs about.
*
*
* .yandex.cloud.mdb.opensearch.v1.StreamClusterLogsRequest.ServiceType service_type = 7;
* @param value The serviceType to set.
* @return This builder for chaining.
*/
public Builder setServiceType(yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest.ServiceType value) {
if (value == null) {
throw new NullPointerException();
}
serviceType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Type of the service to request logs about.
*
*
* .yandex.cloud.mdb.opensearch.v1.StreamClusterLogsRequest.ServiceType service_type = 7;
* @return This builder for chaining.
*/
public Builder clearServiceType() {
serviceType_ = 0;
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.opensearch.v1.StreamClusterLogsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.StreamClusterLogsRequest)
private static final yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest();
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.StreamClusterLogsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListClusterOperationsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.v1.ListClusterOperationsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the OpenSearch cluster resource to list operations for.
*
* 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.opensearch.v1.ListClusterOperationsRequest}
*/
public static final class ListClusterOperationsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterOperationsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterOperationsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsRequest.class, yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsRequest.Builder.class);
}
public static final int CLUSTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clusterId_;
/**
*
* ID of the OpenSearch cluster resource to list operations for.
*
* ID of the OpenSearch 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.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsRequest other = (yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.v1.ListClusterOperationsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.ListClusterOperationsRequest)
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterOperationsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterOperationsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsRequest.class, yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsRequest.Builder.class);
}
// Construct using yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterOperationsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsRequest getDefaultInstanceForType() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsRequest build() {
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsRequest buildPartial() {
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsRequest result = new yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsRequest) {
return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsRequest other) {
if (other == yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object clusterId_ = "";
/**
*
* ID of the OpenSearch cluster resource to list operations for.
*
* ID of the OpenSearch 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.opensearch.v1.ListClusterOperationsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.ListClusterOperationsRequest)
private static final yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsRequest();
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListClusterOperationsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.v1.ListClusterOperationsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of Operation resources for the specified OpenSearch 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.opensearch.v1.ListClusterOperationsResponse}
*/
public static final class ListClusterOperationsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterOperationsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterOperationsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsResponse.class, yandex.cloud.api.mdb.opensearch.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 OpenSearch cluster.
*
* List of Operation resources for the specified OpenSearch 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.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsResponse other = (yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.v1.ListClusterOperationsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.ListClusterOperationsResponse)
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterOperationsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterOperationsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsResponse.class, yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsResponse.Builder.class);
}
// Construct using yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterOperationsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsResponse getDefaultInstanceForType() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsResponse build() {
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsResponse buildPartial() {
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsResponse result = new yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsResponse) {
return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsResponse other) {
if (other == yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.opensearch.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 OpenSearch 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.opensearch.v1.ListClusterOperationsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.ListClusterOperationsResponse)
private static final yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsResponse();
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterOperationsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListClusterHostsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.v1.ListClusterHostsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the OpenSearch cluster.
* To get the OpenSearch 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.opensearch.v1.ListClusterHostsRequest}
*/
public static final class ListClusterHostsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterHostsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterHostsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsRequest.class, yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsRequest.Builder.class);
}
public static final int CLUSTER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object clusterId_;
/**
*
* ID of the OpenSearch cluster.
* To get the OpenSearch cluster ID use a [ClusterService.List] request.
*
* ID of the OpenSearch cluster.
* To get the OpenSearch 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.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsRequest other = (yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.v1.ListClusterHostsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.ListClusterHostsRequest)
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterHostsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterHostsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsRequest.class, yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsRequest.Builder.class);
}
// Construct using yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterHostsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsRequest getDefaultInstanceForType() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsRequest build() {
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsRequest buildPartial() {
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsRequest result = new yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsRequest) {
return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsRequest other) {
if (other == yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object clusterId_ = "";
/**
*
* ID of the OpenSearch cluster.
* To get the OpenSearch cluster ID use a [ClusterService.List] request.
*
* ID of the OpenSearch cluster.
* To get the OpenSearch 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.opensearch.v1.ListClusterHostsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.ListClusterHostsRequest)
private static final yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsRequest();
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListClusterHostsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.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.opensearch.v1.ListClusterHostsResponse}
*/
public static final class ListClusterHostsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.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.opensearch.v1.ClusterOuterClass.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.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterHostsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterHostsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsResponse.class, yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsResponse.Builder.class);
}
public static final int HOSTS_FIELD_NUMBER = 1;
private java.util.List hosts_;
/**
*
*
* repeated .yandex.cloud.mdb.opensearch.v1.Host hosts = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.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.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsResponse other = (yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.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.opensearch.v1.ListClusterHostsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.ListClusterHostsResponse)
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterHostsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterHostsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsResponse.class, yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsResponse.Builder.class);
}
// Construct using yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ListClusterHostsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsResponse getDefaultInstanceForType() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsResponse build() {
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsResponse buildPartial() {
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsResponse result = new yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsResponse) {
return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsResponse other) {
if (other == yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterOuterClass.Host, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Host.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.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.opensearch.v1.ListClusterHostsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.ListClusterHostsResponse)
private static final yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsResponse();
}
public static yandex.cloud.api.mdb.opensearch.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.opensearch.v1.ClusterServiceOuterClass.ListClusterHostsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MoveClusterRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.v1.MoveClusterRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
*
* .yandex.cloud.mdb.opensearch.v1.Access access = 5;
*/
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.AccessOrBuilder getAccessOrBuilder() {
return getAccess();
}
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(version_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adminPassword_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, adminPassword_);
}
if (opensearchSpec_ != null) {
output.writeMessage(3, getOpensearchSpec());
}
if (dashboardsSpec_ != null) {
output.writeMessage(4, getDashboardsSpec());
}
if (access_ != null) {
output.writeMessage(5, getAccess());
}
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(version_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adminPassword_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, adminPassword_);
}
if (opensearchSpec_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getOpensearchSpec());
}
if (dashboardsSpec_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getDashboardsSpec());
}
if (access_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getAccess());
}
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.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec other = (yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec) obj;
if (!getVersion()
.equals(other.getVersion())) return false;
if (!getAdminPassword()
.equals(other.getAdminPassword())) return false;
if (hasOpensearchSpec() != other.hasOpensearchSpec()) return false;
if (hasOpensearchSpec()) {
if (!getOpensearchSpec()
.equals(other.getOpensearchSpec())) return false;
}
if (hasDashboardsSpec() != other.hasDashboardsSpec()) return false;
if (hasDashboardsSpec()) {
if (!getDashboardsSpec()
.equals(other.getDashboardsSpec())) return false;
}
if (hasAccess() != other.hasAccess()) return false;
if (hasAccess()) {
if (!getAccess()
.equals(other.getAccess())) 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) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
hash = (37 * hash) + ADMIN_PASSWORD_FIELD_NUMBER;
hash = (53 * hash) + getAdminPassword().hashCode();
if (hasOpensearchSpec()) {
hash = (37 * hash) + OPENSEARCH_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getOpensearchSpec().hashCode();
}
if (hasDashboardsSpec()) {
hash = (37 * hash) + DASHBOARDS_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getDashboardsSpec().hashCode();
}
if (hasAccess()) {
hash = (37 * hash) + ACCESS_FIELD_NUMBER;
hash = (53 * hash) + getAccess().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec 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.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec 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.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec 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.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec 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.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec 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.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec 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.opensearch.v1.ConfigCreateSpec}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.opensearch.v1.ConfigCreateSpec)
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ConfigCreateSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ConfigCreateSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec.class, yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec.Builder.class);
}
// Construct using yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec.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();
version_ = "";
adminPassword_ = "";
if (opensearchSpecBuilder_ == null) {
opensearchSpec_ = null;
} else {
opensearchSpec_ = null;
opensearchSpecBuilder_ = null;
}
if (dashboardsSpecBuilder_ == null) {
dashboardsSpec_ = null;
} else {
dashboardsSpec_ = null;
dashboardsSpecBuilder_ = null;
}
if (accessBuilder_ == null) {
access_ = null;
} else {
access_ = null;
accessBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_ConfigCreateSpec_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec getDefaultInstanceForType() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec build() {
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec buildPartial() {
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec result = new yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec(this);
result.version_ = version_;
result.adminPassword_ = adminPassword_;
if (opensearchSpecBuilder_ == null) {
result.opensearchSpec_ = opensearchSpec_;
} else {
result.opensearchSpec_ = opensearchSpecBuilder_.build();
}
if (dashboardsSpecBuilder_ == null) {
result.dashboardsSpec_ = dashboardsSpec_;
} else {
result.dashboardsSpec_ = dashboardsSpecBuilder_.build();
}
if (accessBuilder_ == null) {
result.access_ = access_;
} else {
result.access_ = accessBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec) {
return mergeFrom((yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec other) {
if (other == yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec.getDefaultInstance()) return this;
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
onChanged();
}
if (!other.getAdminPassword().isEmpty()) {
adminPassword_ = other.adminPassword_;
onChanged();
}
if (other.hasOpensearchSpec()) {
mergeOpensearchSpec(other.getOpensearchSpec());
}
if (other.hasDashboardsSpec()) {
mergeDashboardsSpec(other.getDashboardsSpec());
}
if (other.hasAccess()) {
mergeAccess(other.getAccess());
}
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.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object version_ = "";
/**
*
* OpenSearch version.
*
*
* string version = 1;
* @return The version.
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
version_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* OpenSearch version.
*
*
* string version = 1;
* @return The bytes for version.
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* OpenSearch version.
*
*
* string version = 1;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
onChanged();
return this;
}
/**
*
* OpenSearch version.
*
*
* string version = 1;
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
*
* OpenSearch version.
*
*
* string version = 1;
* @param value The bytes for version to set.
* @return This builder for chaining.
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
version_ = value;
onChanged();
return this;
}
private java.lang.Object adminPassword_ = "";
/**
*
*
* .yandex.cloud.mdb.opensearch.v1.Access access = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.AccessOrBuilder>
getAccessFieldBuilder() {
if (accessBuilder_ == null) {
accessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Access.Builder, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.AccessOrBuilder>(
getAccess(),
getParentForChildren(),
isClean());
access_ = null;
}
return accessBuilder_;
}
@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.opensearch.v1.ConfigCreateSpec)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.ConfigCreateSpec)
private static final yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec();
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConfigCreateSpec parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConfigCreateSpec(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.opensearch.v1.ClusterServiceOuterClass.ConfigCreateSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OpenSearchCreateSpecOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.opensearch.v1.OpenSearchCreateSpec)
com.google.protobuf.MessageOrBuilder {
/**
*
* Names of the cluster plugins.
*
*
* repeated string plugins = 1;
* @return A list containing the plugins.
*/
java.util.List
getPluginsList();
/**
*
* Names of the cluster plugins.
*
*
* repeated string plugins = 1;
* @return The count of plugins.
*/
int getPluginsCount();
/**
*
* Names of the cluster plugins.
*
*
* repeated string plugins = 1;
* @param index The index of the element to return.
* @return The plugins at the given index.
*/
java.lang.String getPlugins(int index);
/**
*
* Names of the cluster plugins.
*
*
* repeated string plugins = 1;
* @param index The index of the value to return.
* @return The bytes of the plugins at the given index.
*/
com.google.protobuf.ByteString
getPluginsBytes(int index);
/**
*
*
* int64 hosts_count = 3 [(.yandex.cloud.value) = ">=1"];
* @return The hostsCount.
*/
long getHostsCount();
/**
*
* IDs of the availability zones the hosts belong to.
*
*
* repeated string zone_ids = 4 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @return A list containing the zoneIds.
*/
java.util.List
getZoneIdsList();
/**
*
* IDs of the availability zones the hosts belong to.
*
*
* repeated string zone_ids = 4 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @return The count of zoneIds.
*/
int getZoneIdsCount();
/**
*
* IDs of the availability zones the hosts belong to.
*
*
* repeated string zone_ids = 4 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @param index The index of the element to return.
* @return The zoneIds at the given index.
*/
java.lang.String getZoneIds(int index);
/**
*
* IDs of the availability zones the hosts belong to.
*
*
* repeated string zone_ids = 4 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @param index The index of the value to return.
* @return The bytes of the zoneIds at the given index.
*/
com.google.protobuf.ByteString
getZoneIdsBytes(int index);
/**
*
* IDs of the subnets that the hosts belong to.
*
*
* repeated string subnet_ids = 5 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @return A list containing the subnetIds.
*/
java.util.List
getSubnetIdsList();
/**
*
* IDs of the subnets that the hosts belong to.
*
*
* repeated string subnet_ids = 5 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @return The count of subnetIds.
*/
int getSubnetIdsCount();
/**
*
* IDs of the subnets that the hosts belong to.
*
*
* repeated string subnet_ids = 5 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @param index The index of the element to return.
* @return The subnetIds at the given index.
*/
java.lang.String getSubnetIds(int index);
/**
*
* IDs of the subnets that the hosts belong to.
*
*
* repeated string subnet_ids = 5 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @param index The index of the value to return.
* @return The bytes of the subnetIds at the given index.
*/
com.google.protobuf.ByteString
getSubnetIdsBytes(int index);
/**
*
* Determines whether a public IP is assigned to the hosts in the group.
*
*
* repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7;
* @return A list containing the roles.
*/
java.util.List getRolesList();
/**
*
* Roles of the hosts in the group.
*
*
* repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7;
* @return The count of roles.
*/
int getRolesCount();
/**
*
* Roles of the hosts in the group.
*
*
* repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7;
* @param index The index of the element to return.
* @return The roles at the given index.
*/
yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole getRoles(int index);
/**
*
* Roles of the hosts in the group.
*
*
* repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7;
* @return A list containing the enum numeric values on the wire for roles.
*/
java.util.List
getRolesValueList();
/**
*
* Roles of the hosts in the group.
*
*
* repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of roles at the given index.
*/
int getRolesValue(int index);
}
/**
*
* Configuration of the host group.
*
*
* Protobuf type {@code yandex.cloud.mdb.opensearch.v1.OpenSearchCreateSpec.NodeGroup}
*/
public static final class NodeGroup extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.opensearch.v1.OpenSearchCreateSpec.NodeGroup)
NodeGroupOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeGroup.newBuilder() to construct.
private NodeGroup(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NodeGroup() {
name_ = "";
zoneIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
subnetIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
roles_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NodeGroup();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeGroup(
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();
name_ = s;
break;
}
case 18: {
yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.Builder subBuilder = null;
if (resources_ != null) {
subBuilder = resources_.toBuilder();
}
resources_ = input.readMessage(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Resources.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resources_);
resources_ = subBuilder.buildPartial();
}
break;
}
case 24: {
hostsCount_ = input.readInt64();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
zoneIds_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
zoneIds_.add(s);
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
subnetIds_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
subnetIds_.add(s);
break;
}
case 48: {
assignPublicIp_ = input.readBool();
break;
}
case 56: {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
roles_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
roles_.add(rawValue);
break;
}
case 58: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
roles_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
roles_.add(rawValue);
}
input.popLimit(oldLimit);
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)) {
zoneIds_ = zoneIds_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
subnetIds_ = subnetIds_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
roles_ = java.util.Collections.unmodifiableList(roles_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_OpenSearchCreateSpec_NodeGroup_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.internal_static_yandex_cloud_mdb_opensearch_v1_OpenSearchCreateSpec_NodeGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.OpenSearchCreateSpec.NodeGroup.class, yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.OpenSearchCreateSpec.NodeGroup.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
*
* .yandex.cloud.mdb.opensearch.v1.Resources resources = 2;
*/
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder() {
return getResources();
}
public static final int HOSTS_COUNT_FIELD_NUMBER = 3;
private long hostsCount_;
/**
*
* Number of hosts in the group.
*
*
* int64 hosts_count = 3 [(.yandex.cloud.value) = ">=1"];
* @return The hostsCount.
*/
@java.lang.Override
public long getHostsCount() {
return hostsCount_;
}
public static final int ZONE_IDS_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList zoneIds_;
/**
*
* IDs of the availability zones the hosts belong to.
*
*
* repeated string zone_ids = 4 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @return A list containing the zoneIds.
*/
public com.google.protobuf.ProtocolStringList
getZoneIdsList() {
return zoneIds_;
}
/**
*
* IDs of the availability zones the hosts belong to.
*
*
* repeated string zone_ids = 4 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @return The count of zoneIds.
*/
public int getZoneIdsCount() {
return zoneIds_.size();
}
/**
*
* IDs of the availability zones the hosts belong to.
*
*
* repeated string zone_ids = 4 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @param index The index of the element to return.
* @return The zoneIds at the given index.
*/
public java.lang.String getZoneIds(int index) {
return zoneIds_.get(index);
}
/**
*
* IDs of the availability zones the hosts belong to.
*
*
* repeated string zone_ids = 4 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @param index The index of the value to return.
* @return The bytes of the zoneIds at the given index.
*/
public com.google.protobuf.ByteString
getZoneIdsBytes(int index) {
return zoneIds_.getByteString(index);
}
public static final int SUBNET_IDS_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList subnetIds_;
/**
*
* IDs of the subnets that the hosts belong to.
*
*
* repeated string subnet_ids = 5 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @return A list containing the subnetIds.
*/
public com.google.protobuf.ProtocolStringList
getSubnetIdsList() {
return subnetIds_;
}
/**
*
* IDs of the subnets that the hosts belong to.
*
*
* repeated string subnet_ids = 5 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @return The count of subnetIds.
*/
public int getSubnetIdsCount() {
return subnetIds_.size();
}
/**
*
* IDs of the subnets that the hosts belong to.
*
*
* repeated string subnet_ids = 5 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @param index The index of the element to return.
* @return The subnetIds at the given index.
*/
public java.lang.String getSubnetIds(int index) {
return subnetIds_.get(index);
}
/**
*
* IDs of the subnets that the hosts belong to.
*
*
* repeated string subnet_ids = 5 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @param index The index of the value to return.
* @return The bytes of the subnetIds at the given index.
*/
public com.google.protobuf.ByteString
getSubnetIdsBytes(int index) {
return subnetIds_.getByteString(index);
}
public static final int ASSIGN_PUBLIC_IP_FIELD_NUMBER = 6;
private boolean assignPublicIp_;
/**
*
* Determines whether a public IP is assigned to the hosts in the group.
*
*
* bool assign_public_ip = 6;
* @return The assignPublicIp.
*/
@java.lang.Override
public boolean getAssignPublicIp() {
return assignPublicIp_;
}
public static final int ROLES_FIELD_NUMBER = 7;
private java.util.List roles_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole> roles_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole>() {
public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole convert(java.lang.Integer from) {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole result = yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole.valueOf(from);
return result == null ? yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole.UNRECOGNIZED : result;
}
};
/**
*
* Roles of the hosts in the group.
*
*
* repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7;
* @return A list containing the roles.
*/
@java.lang.Override
public java.util.List getRolesList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole>(roles_, roles_converter_);
}
/**
*
* Roles of the hosts in the group.
*
*
* repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7;
* @return The count of roles.
*/
@java.lang.Override
public int getRolesCount() {
return roles_.size();
}
/**
*
* Roles of the hosts in the group.
*
*
* repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7;
* @param index The index of the element to return.
* @return The roles at the given index.
*/
@java.lang.Override
public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole getRoles(int index) {
return roles_converter_.convert(roles_.get(index));
}
/**
*
* Roles of the hosts in the group.
*
*
* repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7;
* @return A list containing the enum numeric values on the wire for roles.
*/
@java.lang.Override
public java.util.List
getRolesValueList() {
return roles_;
}
/**
*
* Roles of the hosts in the group.
*
*
* repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of roles at the given index.
*/
@java.lang.Override
public int getRolesValue(int index) {
return roles_.get(index);
}
private int rolesMemoizedSerializedSize;
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 {
getSerializedSize();
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (resources_ != null) {
output.writeMessage(2, getResources());
}
if (hostsCount_ != 0L) {
output.writeInt64(3, hostsCount_);
}
for (int i = 0; i < zoneIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, zoneIds_.getRaw(i));
}
for (int i = 0; i < subnetIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, subnetIds_.getRaw(i));
}
if (assignPublicIp_ != false) {
output.writeBool(6, assignPublicIp_);
}
if (getRolesList().size() > 0) {
output.writeUInt32NoTag(58);
output.writeUInt32NoTag(rolesMemoizedSerializedSize);
}
for (int i = 0; i < roles_.size(); i++) {
output.writeEnumNoTag(roles_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (resources_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getResources());
}
if (hostsCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, hostsCount_);
}
{
int dataSize = 0;
for (int i = 0; i < zoneIds_.size(); i++) {
dataSize += computeStringSizeNoTag(zoneIds_.getRaw(i));
}
size += dataSize;
size += 1 * getZoneIdsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < subnetIds_.size(); i++) {
dataSize += computeStringSizeNoTag(subnetIds_.getRaw(i));
}
size += dataSize;
size += 1 * getSubnetIdsList().size();
}
if (assignPublicIp_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, assignPublicIp_);
}
{
int dataSize = 0;
for (int i = 0; i < roles_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(roles_.get(i));
}
size += dataSize;
if (!getRolesList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}rolesMemoizedSerializedSize = dataSize;
}
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.opensearch.v1.ClusterServiceOuterClass.OpenSearchCreateSpec.NodeGroup)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.OpenSearchCreateSpec.NodeGroup other = (yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.OpenSearchCreateSpec.NodeGroup) obj;
if (!getName()
.equals(other.getName())) return false;
if (hasResources() != other.hasResources()) return false;
if (hasResources()) {
if (!getResources()
.equals(other.getResources())) return false;
}
if (getHostsCount()
!= other.getHostsCount()) return false;
if (!getZoneIdsList()
.equals(other.getZoneIdsList())) return false;
if (!getSubnetIdsList()
.equals(other.getSubnetIdsList())) return false;
if (getAssignPublicIp()
!= other.getAssignPublicIp()) return false;
if (!roles_.equals(other.roles_)) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasResources()) {
hash = (37 * hash) + RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getResources().hashCode();
}
hash = (37 * hash) + HOSTS_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getHostsCount());
if (getZoneIdsCount() > 0) {
hash = (37 * hash) + ZONE_IDS_FIELD_NUMBER;
hash = (53 * hash) + getZoneIdsList().hashCode();
}
if (getSubnetIdsCount() > 0) {
hash = (37 * hash) + SUBNET_IDS_FIELD_NUMBER;
hash = (53 * hash) + getSubnetIdsList().hashCode();
}
hash = (37 * hash) + ASSIGN_PUBLIC_IP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAssignPublicIp());
if (getRolesCount() > 0) {
hash = (37 * hash) + ROLES_FIELD_NUMBER;
hash = (53 * hash) + roles_.hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.OpenSearchCreateSpec.NodeGroup parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.OpenSearchCreateSpec.NodeGroup 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.opensearch.v1.ClusterServiceOuterClass.OpenSearchCreateSpec.NodeGroup parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.OpenSearchCreateSpec.NodeGroup 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.opensearch.v1.ClusterServiceOuterClass.OpenSearchCreateSpec.NodeGroup parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.OpenSearchCreateSpec.NodeGroup parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.OpenSearchCreateSpec.NodeGroup parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.OpenSearchCreateSpec.NodeGroup 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.opensearch.v1.ClusterServiceOuterClass.OpenSearchCreateSpec.NodeGroup parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.OpenSearchCreateSpec.NodeGroup 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.opensearch.v1.ClusterServiceOuterClass.OpenSearchCreateSpec.NodeGroup parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.OpenSearchCreateSpec.NodeGroup 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.opensearch.v1.ClusterServiceOuterClass.OpenSearchCreateSpec.NodeGroup 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;
}
/**
*
* IDs of the availability zones the hosts belong to.
*
*
* repeated string zone_ids = 4 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @return A list containing the zoneIds.
*/
public com.google.protobuf.ProtocolStringList
getZoneIdsList() {
return zoneIds_.getUnmodifiableView();
}
/**
*
* IDs of the availability zones the hosts belong to.
*
*
* repeated string zone_ids = 4 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @return The count of zoneIds.
*/
public int getZoneIdsCount() {
return zoneIds_.size();
}
/**
*
* IDs of the availability zones the hosts belong to.
*
*
* repeated string zone_ids = 4 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @param index The index of the element to return.
* @return The zoneIds at the given index.
*/
public java.lang.String getZoneIds(int index) {
return zoneIds_.get(index);
}
/**
*
* IDs of the availability zones the hosts belong to.
*
*
* repeated string zone_ids = 4 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @param index The index of the value to return.
* @return The bytes of the zoneIds at the given index.
*/
public com.google.protobuf.ByteString
getZoneIdsBytes(int index) {
return zoneIds_.getByteString(index);
}
/**
*
* IDs of the availability zones the hosts belong to.
*
*
* repeated string zone_ids = 4 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @param index The index to set the value at.
* @param value The zoneIds to set.
* @return This builder for chaining.
*/
public Builder setZoneIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureZoneIdsIsMutable();
zoneIds_.set(index, value);
onChanged();
return this;
}
/**
*
* IDs of the availability zones the hosts belong to.
*
*
* repeated string zone_ids = 4 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @param value The zoneIds to add.
* @return This builder for chaining.
*/
public Builder addZoneIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureZoneIdsIsMutable();
zoneIds_.add(value);
onChanged();
return this;
}
/**
*
* IDs of the availability zones the hosts belong to.
*
*
* repeated string zone_ids = 4 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @param values The zoneIds to add.
* @return This builder for chaining.
*/
public Builder addAllZoneIds(
java.lang.Iterable values) {
ensureZoneIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, zoneIds_);
onChanged();
return this;
}
/**
*
* IDs of the availability zones the hosts belong to.
*
* IDs of the availability zones the hosts belong to.
*
*
* repeated string zone_ids = 4 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @param value The bytes of the zoneIds to add.
* @return This builder for chaining.
*/
public Builder addZoneIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureZoneIdsIsMutable();
zoneIds_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList subnetIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSubnetIdsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
subnetIds_ = new com.google.protobuf.LazyStringArrayList(subnetIds_);
bitField0_ |= 0x00000002;
}
}
/**
*
* IDs of the subnets that the hosts belong to.
*
*
* repeated string subnet_ids = 5 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @return A list containing the subnetIds.
*/
public com.google.protobuf.ProtocolStringList
getSubnetIdsList() {
return subnetIds_.getUnmodifiableView();
}
/**
*
* IDs of the subnets that the hosts belong to.
*
*
* repeated string subnet_ids = 5 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @return The count of subnetIds.
*/
public int getSubnetIdsCount() {
return subnetIds_.size();
}
/**
*
* IDs of the subnets that the hosts belong to.
*
*
* repeated string subnet_ids = 5 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @param index The index of the element to return.
* @return The subnetIds at the given index.
*/
public java.lang.String getSubnetIds(int index) {
return subnetIds_.get(index);
}
/**
*
* IDs of the subnets that the hosts belong to.
*
*
* repeated string subnet_ids = 5 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @param index The index of the value to return.
* @return The bytes of the subnetIds at the given index.
*/
public com.google.protobuf.ByteString
getSubnetIdsBytes(int index) {
return subnetIds_.getByteString(index);
}
/**
*
* IDs of the subnets that the hosts belong to.
*
*
* repeated string subnet_ids = 5 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @param index The index to set the value at.
* @param value The subnetIds to set.
* @return This builder for chaining.
*/
public Builder setSubnetIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSubnetIdsIsMutable();
subnetIds_.set(index, value);
onChanged();
return this;
}
/**
*
* IDs of the subnets that the hosts belong to.
*
*
* repeated string subnet_ids = 5 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @param value The subnetIds to add.
* @return This builder for chaining.
*/
public Builder addSubnetIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSubnetIdsIsMutable();
subnetIds_.add(value);
onChanged();
return this;
}
/**
*
* IDs of the subnets that the hosts belong to.
*
*
* repeated string subnet_ids = 5 [(.yandex.cloud.size) = "<=10", (.yandex.cloud.length) = "<=50"];
* @param values The subnetIds to add.
* @return This builder for chaining.
*/
public Builder addAllSubnetIds(
java.lang.Iterable values) {
ensureSubnetIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, subnetIds_);
onChanged();
return this;
}
/**
*
*
* repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7;
* @return A list containing the roles.
*/
public java.util.List getRolesList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole>(roles_, roles_converter_);
}
/**
*
* Roles of the hosts in the group.
*
*
* repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7;
* @return The count of roles.
*/
public int getRolesCount() {
return roles_.size();
}
/**
*
* Roles of the hosts in the group.
*
*
* repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7;
* @param index The index of the element to return.
* @return The roles at the given index.
*/
public yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole getRoles(int index) {
return roles_converter_.convert(roles_.get(index));
}
/**
*
* Roles of the hosts in the group.
*
*
* repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7;
* @param index The index to set the value at.
* @param value The roles to set.
* @return This builder for chaining.
*/
public Builder setRoles(
int index, yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole value) {
if (value == null) {
throw new NullPointerException();
}
ensureRolesIsMutable();
roles_.set(index, value.getNumber());
onChanged();
return this;
}
/**
*
* Roles of the hosts in the group.
*
*
* repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7;
* @param value The roles to add.
* @return This builder for chaining.
*/
public Builder addRoles(yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole value) {
if (value == null) {
throw new NullPointerException();
}
ensureRolesIsMutable();
roles_.add(value.getNumber());
onChanged();
return this;
}
/**
*
* Roles of the hosts in the group.
*
*
* repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7;
* @param values The roles to add.
* @return This builder for chaining.
*/
public Builder addAllRoles(
java.lang.Iterable extends yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole> values) {
ensureRolesIsMutable();
for (yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.OpenSearch.GroupRole value : values) {
roles_.add(value.getNumber());
}
onChanged();
return this;
}
/**
*
*
* repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7;
* @return A list containing the enum numeric values on the wire for roles.
*/
public java.util.List
getRolesValueList() {
return java.util.Collections.unmodifiableList(roles_);
}
/**
*
* Roles of the hosts in the group.
*
*
* repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of roles at the given index.
*/
public int getRolesValue(int index) {
return roles_.get(index);
}
/**
*
* Roles of the hosts in the group.
*
*
* repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of roles at the given index.
* @return This builder for chaining.
*/
public Builder setRolesValue(
int index, int value) {
ensureRolesIsMutable();
roles_.set(index, value);
onChanged();
return this;
}
/**
*
* Roles of the hosts in the group.
*
*
* repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7;
* @param value The enum numeric value on the wire for roles to add.
* @return This builder for chaining.
*/
public Builder addRolesValue(int value) {
ensureRolesIsMutable();
roles_.add(value);
onChanged();
return this;
}
/**
*
* Roles of the hosts in the group.
*
*
* repeated .yandex.cloud.mdb.opensearch.v1.OpenSearch.GroupRole roles = 7;
* @param values The enum numeric values on the wire for roles to add.
* @return This builder for chaining.
*/
public Builder addAllRolesValue(
java.lang.Iterable values) {
ensureRolesIsMutable();
for (int value : values) {
roles_.add(value);
}
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.opensearch.v1.OpenSearchCreateSpec.NodeGroup)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.opensearch.v1.OpenSearchCreateSpec.NodeGroup)
private static final yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.OpenSearchCreateSpec.NodeGroup DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.OpenSearchCreateSpec.NodeGroup();
}
public static yandex.cloud.api.mdb.opensearch.v1.ClusterServiceOuterClass.OpenSearchCreateSpec.NodeGroup getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NodeGroup parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NodeGroup(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.opensearch.v1.ClusterServiceOuterClass.OpenSearchCreateSpec.NodeGroup getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int configCase_ = 0;
private java.lang.Object config_;
public enum ConfigCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
OPENSEARCH_CONFIG_2(3),
CONFIG_NOT_SET(0);
private final int value;
private ConfigCase(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 ConfigCase valueOf(int value) {
return forNumber(value);
}
public static ConfigCase forNumber(int value) {
switch (value) {
case 3: return OPENSEARCH_CONFIG_2;
case 0: return CONFIG_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ConfigCase
getConfigCase() {
return ConfigCase.forNumber(
configCase_);
}
public static final int PLUGINS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList plugins_;
/**
*