yandex.cloud.api.compute.v1.HostGroupServiceOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/compute/v1/host_group_service.proto
package yandex.cloud.api.compute.v1;
public final class HostGroupServiceOuterClass {
private HostGroupServiceOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface GetHostGroupRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.GetHostGroupRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the host group to return.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The hostGroupId.
*/
java.lang.String getHostGroupId();
/**
*
* ID of the host group to return.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for hostGroupId.
*/
com.google.protobuf.ByteString
getHostGroupIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.GetHostGroupRequest}
*/
public static final class GetHostGroupRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.GetHostGroupRequest)
GetHostGroupRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetHostGroupRequest.newBuilder() to construct.
private GetHostGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetHostGroupRequest() {
hostGroupId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetHostGroupRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetHostGroupRequest(
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();
hostGroupId_ = 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.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetHostGroupRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetHostGroupRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest.Builder.class);
}
public static final int HOST_GROUP_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object hostGroupId_;
/**
*
* ID of the host group to return.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The hostGroupId.
*/
@java.lang.Override
public java.lang.String getHostGroupId() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostGroupId_ = s;
return s;
}
}
/**
*
* ID of the host group to return.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for hostGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostGroupIdBytes() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostGroupId_ = 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(hostGroupId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostGroupId_);
}
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(hostGroupId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostGroupId_);
}
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.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest other = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest) obj;
if (!getHostGroupId()
.equals(other.getHostGroupId())) 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) + HOST_GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getHostGroupId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest 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.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest 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.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest 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.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest 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.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest 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.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest 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.compute.v1.GetHostGroupRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.GetHostGroupRequest)
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetHostGroupRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetHostGroupRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest.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();
hostGroupId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_GetHostGroupRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest build() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest buildPartial() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest result = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest(this);
result.hostGroupId_ = hostGroupId_;
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.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest other) {
if (other == yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest.getDefaultInstance()) return this;
if (!other.getHostGroupId().isEmpty()) {
hostGroupId_ = other.hostGroupId_;
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.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object hostGroupId_ = "";
/**
*
* ID of the host group to return.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The hostGroupId.
*/
public java.lang.String getHostGroupId() {
java.lang.Object ref = hostGroupId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostGroupId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the host group to return.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for hostGroupId.
*/
public com.google.protobuf.ByteString
getHostGroupIdBytes() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the host group to return.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The hostGroupId to set.
* @return This builder for chaining.
*/
public Builder setHostGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
hostGroupId_ = value;
onChanged();
return this;
}
/**
*
* ID of the host group to return.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearHostGroupId() {
hostGroupId_ = getDefaultInstance().getHostGroupId();
onChanged();
return this;
}
/**
*
* ID of the host group to return.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for hostGroupId to set.
* @return This builder for chaining.
*/
public Builder setHostGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
hostGroupId_ = 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.compute.v1.GetHostGroupRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.GetHostGroupRequest)
private static final yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest();
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetHostGroupRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetHostGroupRequest(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.compute.v1.HostGroupServiceOuterClass.GetHostGroupRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListHostGroupsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ListHostGroupsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the folder to list host groups in.
* To get the folder ID, use [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The folderId.
*/
java.lang.String getFolderId();
/**
*
* ID of the folder to list host groups in.
* To get the folder ID, use [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for folderId.
*/
com.google.protobuf.ByteString
getFolderIdBytes();
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListHostGroupsResponse.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 [ListHostGroupsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
java.lang.String getPageToken();
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListHostGroupsResponse.next_page_token]
* returned by a 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 consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the limited number of fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* String values should be written in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The filter.
*/
java.lang.String getFilter();
/**
*
* A filter expression that filters resources listed in the response.
* The expression consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the limited number of fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* String values should be written in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
com.google.protobuf.ByteString
getFilterBytes();
/**
*
* By which column the listing should be ordered and in which direction,
* format is "createdAt desc". "id asc" if omitted.
* The default sorting order is ascending
*
*
* string order_by = 5 [(.yandex.cloud.length) = "<=100"];
* @return The orderBy.
*/
java.lang.String getOrderBy();
/**
*
* By which column the listing should be ordered and in which direction,
* format is "createdAt desc". "id asc" if omitted.
* The default sorting order is ascending
*
*
* string order_by = 5 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for orderBy.
*/
com.google.protobuf.ByteString
getOrderByBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.ListHostGroupsRequest}
*/
public static final class ListHostGroupsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ListHostGroupsRequest)
ListHostGroupsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListHostGroupsRequest.newBuilder() to construct.
private ListHostGroupsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListHostGroupsRequest() {
folderId_ = "";
pageToken_ = "";
filter_ = "";
orderBy_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListHostGroupsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListHostGroupsRequest(
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;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
orderBy_ = 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.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest.Builder.class);
}
public static final int FOLDER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder to list host groups in.
* To get the folder ID, use [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The folderId.
*/
@java.lang.Override
public java.lang.String getFolderId() {
java.lang.Object ref = folderId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
folderId_ = s;
return s;
}
}
/**
*
* ID of the folder to list host groups in.
* To get the folder ID, use [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 [ListHostGroupsResponse.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 [ListHostGroupsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
@java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
}
}
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListHostGroupsResponse.next_page_token]
* returned by a 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 consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the limited number of fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* String values should be written in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The filter.
*/
@java.lang.Override
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
filter_ = s;
return s;
}
}
/**
*
* A filter expression that filters resources listed in the response.
* The expression consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the limited number of fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* String values should be written in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
*
*
* 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;
}
}
public static final int ORDER_BY_FIELD_NUMBER = 5;
private volatile java.lang.Object orderBy_;
/**
*
* By which column the listing should be ordered and in which direction,
* format is "createdAt desc". "id asc" if omitted.
* The default sorting order is ascending
*
*
* string order_by = 5 [(.yandex.cloud.length) = "<=100"];
* @return The orderBy.
*/
@java.lang.Override
public java.lang.String getOrderBy() {
java.lang.Object ref = orderBy_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
orderBy_ = s;
return s;
}
}
/**
*
* By which column the listing should be ordered and in which direction,
* format is "createdAt desc". "id asc" if omitted.
* The default sorting order is ascending
*
*
* string order_by = 5 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for orderBy.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOrderByBytes() {
java.lang.Object ref = orderBy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
orderBy_ = 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_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_);
}
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_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_);
}
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.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest other = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest) 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 (!getOrderBy()
.equals(other.getOrderBy())) 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 = (37 * hash) + ORDER_BY_FIELD_NUMBER;
hash = (53 * hash) + getOrderBy().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest 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.compute.v1.ListHostGroupsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ListHostGroupsRequest)
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest.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_ = "";
orderBy_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest build() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest buildPartial() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest result = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest(this);
result.folderId_ = folderId_;
result.pageSize_ = pageSize_;
result.pageToken_ = pageToken_;
result.filter_ = filter_;
result.orderBy_ = orderBy_;
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.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest other) {
if (other == yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest.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();
}
if (!other.getOrderBy().isEmpty()) {
orderBy_ = other.orderBy_;
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.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object folderId_ = "";
/**
*
* ID of the folder to list host groups in.
* To get the folder ID, use [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The folderId.
*/
public java.lang.String getFolderId() {
java.lang.Object ref = folderId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
folderId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the folder to list host groups in.
* To get the folder ID, use [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for folderId.
*/
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = folderId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
folderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the folder to list host groups in.
* To get the folder ID, use [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
folderId_ = value;
onChanged();
return this;
}
/**
*
* ID of the folder to list host groups in.
* To get the folder ID, use [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearFolderId() {
folderId_ = getDefaultInstance().getFolderId();
onChanged();
return this;
}
/**
*
* ID of the folder to list host groups in.
* To get the folder ID, use [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 [ListHostGroupsResponse.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 [ListHostGroupsResponse.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 [ListHostGroupsResponse.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 This builder for chaining.
*/
public Builder clearPageSize() {
pageSize_ = 0L;
onChanged();
return this;
}
private java.lang.Object pageToken_ = "";
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListHostGroupsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListHostGroupsResponse.next_page_token]
* returned by a 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 [ListHostGroupsResponse.next_page_token]
* returned by a 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 [ListHostGroupsResponse.next_page_token]
* returned by a 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 [ListHostGroupsResponse.next_page_token]
* returned by a 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 consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the limited number of fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* String values should be written in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The filter.
*/
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
filter_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A filter expression that filters resources listed in the response.
* The expression consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the limited number of fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* String values should be written in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
*
*
* 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 consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the limited number of fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* String values should be written in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
*
*
* 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 consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the limited number of fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* String values should be written in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
*
*
* 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 consists of one or more conditions united by `AND` operator: `<condition1> [AND <condition2> [<...> AND <conditionN>]]`.
* Each condition has the form `<field> <operator> <value>`, where:
* 1. `<field>` is the field name. Currently you can use filtering only on the limited number of fields.
* 2. `<operator>` is a logical operator, one of `=`, `!=`, `IN`, `NOT IN`.
* 3. `<value>` represents a value.
* String values should be written in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
*
*
* 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;
}
private java.lang.Object orderBy_ = "";
/**
*
* By which column the listing should be ordered and in which direction,
* format is "createdAt desc". "id asc" if omitted.
* The default sorting order is ascending
*
*
* string order_by = 5 [(.yandex.cloud.length) = "<=100"];
* @return The orderBy.
*/
public java.lang.String getOrderBy() {
java.lang.Object ref = orderBy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
orderBy_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* By which column the listing should be ordered and in which direction,
* format is "createdAt desc". "id asc" if omitted.
* The default sorting order is ascending
*
*
* string order_by = 5 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for orderBy.
*/
public com.google.protobuf.ByteString
getOrderByBytes() {
java.lang.Object ref = orderBy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
orderBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* By which column the listing should be ordered and in which direction,
* format is "createdAt desc". "id asc" if omitted.
* The default sorting order is ascending
*
*
* string order_by = 5 [(.yandex.cloud.length) = "<=100"];
* @param value The orderBy to set.
* @return This builder for chaining.
*/
public Builder setOrderBy(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
orderBy_ = value;
onChanged();
return this;
}
/**
*
* By which column the listing should be ordered and in which direction,
* format is "createdAt desc". "id asc" if omitted.
* The default sorting order is ascending
*
*
* string order_by = 5 [(.yandex.cloud.length) = "<=100"];
* @return This builder for chaining.
*/
public Builder clearOrderBy() {
orderBy_ = getDefaultInstance().getOrderBy();
onChanged();
return this;
}
/**
*
* By which column the listing should be ordered and in which direction,
* format is "createdAt desc". "id asc" if omitted.
* The default sorting order is ascending
*
*
* string order_by = 5 [(.yandex.cloud.length) = "<=100"];
* @param value The bytes for orderBy to set.
* @return This builder for chaining.
*/
public Builder setOrderByBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
orderBy_ = 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.compute.v1.ListHostGroupsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListHostGroupsRequest)
private static final yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest();
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListHostGroupsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListHostGroupsRequest(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.compute.v1.HostGroupServiceOuterClass.ListHostGroupsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListHostGroupsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ListHostGroupsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
java.util.List
getHostGroupsList();
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroup getHostGroups(int index);
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
int getHostGroupsCount();
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
java.util.List extends yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroupOrBuilder>
getHostGroupsOrBuilderList();
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroupOrBuilder getHostGroupsOrBuilder(
int index);
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListHostGroupsRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
java.lang.String getNextPageToken();
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListHostGroupsRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have 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.compute.v1.ListHostGroupsResponse}
*/
public static final class ListHostGroupsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ListHostGroupsResponse)
ListHostGroupsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListHostGroupsResponse.newBuilder() to construct.
private ListHostGroupsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListHostGroupsResponse() {
hostGroups_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListHostGroupsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListHostGroupsResponse(
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)) {
hostGroups_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
hostGroups_.add(
input.readMessage(yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroup.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)) {
hostGroups_ = java.util.Collections.unmodifiableList(hostGroups_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse.Builder.class);
}
public static final int HOST_GROUPS_FIELD_NUMBER = 1;
private java.util.List hostGroups_;
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
@java.lang.Override
public java.util.List getHostGroupsList() {
return hostGroups_;
}
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroupOrBuilder>
getHostGroupsOrBuilderList() {
return hostGroups_;
}
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
@java.lang.Override
public int getHostGroupsCount() {
return hostGroups_.size();
}
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroup getHostGroups(int index) {
return hostGroups_.get(index);
}
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroupOrBuilder getHostGroupsOrBuilder(
int index) {
return hostGroups_.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 [ListHostGroupsRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
@java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
}
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListHostGroupsRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have 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 < hostGroups_.size(); i++) {
output.writeMessage(1, hostGroups_.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 < hostGroups_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, hostGroups_.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.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse other = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse) obj;
if (!getHostGroupsList()
.equals(other.getHostGroupsList())) 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 (getHostGroupsCount() > 0) {
hash = (37 * hash) + HOST_GROUPS_FIELD_NUMBER;
hash = (53 * hash) + getHostGroupsList().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.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse 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.compute.v1.ListHostGroupsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ListHostGroupsResponse)
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getHostGroupsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (hostGroupsBuilder_ == null) {
hostGroups_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
hostGroupsBuilder_.clear();
}
nextPageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse build() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse buildPartial() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse result = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse(this);
int from_bitField0_ = bitField0_;
if (hostGroupsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
hostGroups_ = java.util.Collections.unmodifiableList(hostGroups_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.hostGroups_ = hostGroups_;
} else {
result.hostGroups_ = hostGroupsBuilder_.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.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse) {
return mergeFrom((yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse other) {
if (other == yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse.getDefaultInstance()) return this;
if (hostGroupsBuilder_ == null) {
if (!other.hostGroups_.isEmpty()) {
if (hostGroups_.isEmpty()) {
hostGroups_ = other.hostGroups_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureHostGroupsIsMutable();
hostGroups_.addAll(other.hostGroups_);
}
onChanged();
}
} else {
if (!other.hostGroups_.isEmpty()) {
if (hostGroupsBuilder_.isEmpty()) {
hostGroupsBuilder_.dispose();
hostGroupsBuilder_ = null;
hostGroups_ = other.hostGroups_;
bitField0_ = (bitField0_ & ~0x00000001);
hostGroupsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getHostGroupsFieldBuilder() : null;
} else {
hostGroupsBuilder_.addAllMessages(other.hostGroups_);
}
}
}
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.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List hostGroups_ =
java.util.Collections.emptyList();
private void ensureHostGroupsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
hostGroups_ = new java.util.ArrayList(hostGroups_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroup, yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroup.Builder, yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroupOrBuilder> hostGroupsBuilder_;
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
public java.util.List getHostGroupsList() {
if (hostGroupsBuilder_ == null) {
return java.util.Collections.unmodifiableList(hostGroups_);
} else {
return hostGroupsBuilder_.getMessageList();
}
}
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
public int getHostGroupsCount() {
if (hostGroupsBuilder_ == null) {
return hostGroups_.size();
} else {
return hostGroupsBuilder_.getCount();
}
}
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
public yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroup getHostGroups(int index) {
if (hostGroupsBuilder_ == null) {
return hostGroups_.get(index);
} else {
return hostGroupsBuilder_.getMessage(index);
}
}
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
public Builder setHostGroups(
int index, yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroup value) {
if (hostGroupsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHostGroupsIsMutable();
hostGroups_.set(index, value);
onChanged();
} else {
hostGroupsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
public Builder setHostGroups(
int index, yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroup.Builder builderForValue) {
if (hostGroupsBuilder_ == null) {
ensureHostGroupsIsMutable();
hostGroups_.set(index, builderForValue.build());
onChanged();
} else {
hostGroupsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
public Builder addHostGroups(yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroup value) {
if (hostGroupsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHostGroupsIsMutable();
hostGroups_.add(value);
onChanged();
} else {
hostGroupsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
public Builder addHostGroups(
int index, yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroup value) {
if (hostGroupsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHostGroupsIsMutable();
hostGroups_.add(index, value);
onChanged();
} else {
hostGroupsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
public Builder addHostGroups(
yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroup.Builder builderForValue) {
if (hostGroupsBuilder_ == null) {
ensureHostGroupsIsMutable();
hostGroups_.add(builderForValue.build());
onChanged();
} else {
hostGroupsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
public Builder addHostGroups(
int index, yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroup.Builder builderForValue) {
if (hostGroupsBuilder_ == null) {
ensureHostGroupsIsMutable();
hostGroups_.add(index, builderForValue.build());
onChanged();
} else {
hostGroupsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
public Builder addAllHostGroups(
java.lang.Iterable extends yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroup> values) {
if (hostGroupsBuilder_ == null) {
ensureHostGroupsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, hostGroups_);
onChanged();
} else {
hostGroupsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
public Builder clearHostGroups() {
if (hostGroupsBuilder_ == null) {
hostGroups_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
hostGroupsBuilder_.clear();
}
return this;
}
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
public Builder removeHostGroups(int index) {
if (hostGroupsBuilder_ == null) {
ensureHostGroupsIsMutable();
hostGroups_.remove(index);
onChanged();
} else {
hostGroupsBuilder_.remove(index);
}
return this;
}
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
public yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroup.Builder getHostGroupsBuilder(
int index) {
return getHostGroupsFieldBuilder().getBuilder(index);
}
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
public yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroupOrBuilder getHostGroupsOrBuilder(
int index) {
if (hostGroupsBuilder_ == null) {
return hostGroups_.get(index); } else {
return hostGroupsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
public java.util.List extends yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroupOrBuilder>
getHostGroupsOrBuilderList() {
if (hostGroupsBuilder_ != null) {
return hostGroupsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(hostGroups_);
}
}
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
public yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroup.Builder addHostGroupsBuilder() {
return getHostGroupsFieldBuilder().addBuilder(
yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroup.getDefaultInstance());
}
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
public yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroup.Builder addHostGroupsBuilder(
int index) {
return getHostGroupsFieldBuilder().addBuilder(
index, yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroup.getDefaultInstance());
}
/**
*
* Lists host groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.HostGroup host_groups = 1;
*/
public java.util.List
getHostGroupsBuilderList() {
return getHostGroupsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroup, yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroup.Builder, yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroupOrBuilder>
getHostGroupsFieldBuilder() {
if (hostGroupsBuilder_ == null) {
hostGroupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroup, yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroup.Builder, yandex.cloud.api.compute.v1.HostGroupOuterClass.HostGroupOrBuilder>(
hostGroups_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
hostGroups_ = null;
}
return hostGroupsBuilder_;
}
private 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 [ListHostGroupsRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListHostGroupsRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have 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 [ListHostGroupsRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have 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 [ListHostGroupsRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have 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 [ListHostGroupsRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have 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.compute.v1.ListHostGroupsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListHostGroupsResponse)
private static final yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse();
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListHostGroupsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListHostGroupsResponse(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.compute.v1.HostGroupServiceOuterClass.ListHostGroupsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateHostGroupRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.CreateHostGroupRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the folder to create a host group 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 folderId.
*/
java.lang.String getFolderId();
/**
*
* ID of the folder to create a host group 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.
*/
com.google.protobuf.ByteString
getFolderIdBytes();
/**
*
* Name of the group.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the group.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Description of the group.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
java.lang.String getDescription();
/**
*
* Description of the group.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
int getLabelsCount();
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
boolean containsLabels(
java.lang.String key);
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getLabels();
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.util.Map
getLabelsMap();
/**
*
* Resource labels as `key:value` pairs.
*
*
* 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.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* Resource labels as `key:value` pairs.
*
*
* 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.String getLabelsOrThrow(
java.lang.String key);
/**
*
* Availability zone where all dedicated hosts will be allocated.
*
*
* string zone_id = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The zoneId.
*/
java.lang.String getZoneId();
/**
*
* Availability zone where all dedicated hosts will be allocated.
*
*
* string zone_id = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for zoneId.
*/
com.google.protobuf.ByteString
getZoneIdBytes();
/**
*
* ID of host type. Resources provided by each host of the group.
*
*
* string type_id = 6 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The typeId.
*/
java.lang.String getTypeId();
/**
*
* ID of host type. Resources provided by each host of the group.
*
*
* string type_id = 6 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for typeId.
*/
com.google.protobuf.ByteString
getTypeIdBytes();
/**
*
* Behaviour on maintenance events.
*
*
* .yandex.cloud.compute.v1.MaintenancePolicy maintenance_policy = 7;
* @return The enum numeric value on the wire for maintenancePolicy.
*/
int getMaintenancePolicyValue();
/**
*
* Behaviour on maintenance events.
*
*
* .yandex.cloud.compute.v1.MaintenancePolicy maintenance_policy = 7;
* @return The maintenancePolicy.
*/
yandex.cloud.api.compute.v1.HostGroupOuterClass.MaintenancePolicy getMaintenancePolicy();
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 8;
* @return Whether the scalePolicy field is set.
*/
boolean hasScalePolicy();
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 8;
* @return The scalePolicy.
*/
yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy getScalePolicy();
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 8;
*/
yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicyOrBuilder getScalePolicyOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.CreateHostGroupRequest}
*/
public static final class CreateHostGroupRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.CreateHostGroupRequest)
CreateHostGroupRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateHostGroupRequest.newBuilder() to construct.
private CreateHostGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateHostGroupRequest() {
folderId_ = "";
name_ = "";
description_ = "";
zoneId_ = "";
typeId_ = "";
maintenancePolicy_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateHostGroupRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateHostGroupRequest(
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();
folderId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
labels__ = input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
labels_.getMutableMap().put(
labels__.getKey(), labels__.getValue());
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
zoneId_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
typeId_ = s;
break;
}
case 56: {
int rawValue = input.readEnum();
maintenancePolicy_ = rawValue;
break;
}
case 66: {
yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy.Builder subBuilder = null;
if (scalePolicy_ != null) {
subBuilder = scalePolicy_.toBuilder();
}
scalePolicy_ = input.readMessage(yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(scalePolicy_);
scalePolicy_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateHostGroupRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
return internalGetLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateHostGroupRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest.Builder.class);
}
public static final int FOLDER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder to create a host group 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 folderId.
*/
@java.lang.Override
public java.lang.String getFolderId() {
java.lang.Object ref = folderId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
folderId_ = s;
return s;
}
}
/**
*
* ID of the folder to create a host group 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 NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
*
* Name of the group.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the group.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
private volatile java.lang.Object description_;
/**
*
* Description of the group.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
*
* Description of the group.
*
*
* 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.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateHostGroupRequest_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();
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* 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 boolean containsLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetLabels().getMap().containsKey(key);
}
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* 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.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* 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 getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* 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 ZONE_ID_FIELD_NUMBER = 5;
private volatile java.lang.Object zoneId_;
/**
*
* Availability zone where all dedicated hosts will be allocated.
*
*
* string zone_id = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The zoneId.
*/
@java.lang.Override
public java.lang.String getZoneId() {
java.lang.Object ref = zoneId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
zoneId_ = s;
return s;
}
}
/**
*
* Availability zone where all dedicated hosts will be allocated.
*
*
* string zone_id = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for zoneId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getZoneIdBytes() {
java.lang.Object ref = zoneId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
zoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_ID_FIELD_NUMBER = 6;
private volatile java.lang.Object typeId_;
/**
*
* ID of host type. Resources provided by each host of the group.
*
*
* string type_id = 6 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The typeId.
*/
@java.lang.Override
public java.lang.String getTypeId() {
java.lang.Object ref = typeId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
typeId_ = s;
return s;
}
}
/**
*
* ID of host type. Resources provided by each host of the group.
*
*
* string type_id = 6 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for typeId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeIdBytes() {
java.lang.Object ref = typeId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
typeId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 7;
private int maintenancePolicy_;
/**
*
* Behaviour on maintenance events.
*
*
* .yandex.cloud.compute.v1.MaintenancePolicy maintenance_policy = 7;
* @return The enum numeric value on the wire for maintenancePolicy.
*/
@java.lang.Override public int getMaintenancePolicyValue() {
return maintenancePolicy_;
}
/**
*
* Behaviour on maintenance events.
*
*
* .yandex.cloud.compute.v1.MaintenancePolicy maintenance_policy = 7;
* @return The maintenancePolicy.
*/
@java.lang.Override public yandex.cloud.api.compute.v1.HostGroupOuterClass.MaintenancePolicy getMaintenancePolicy() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.HostGroupOuterClass.MaintenancePolicy result = yandex.cloud.api.compute.v1.HostGroupOuterClass.MaintenancePolicy.valueOf(maintenancePolicy_);
return result == null ? yandex.cloud.api.compute.v1.HostGroupOuterClass.MaintenancePolicy.UNRECOGNIZED : result;
}
public static final int SCALE_POLICY_FIELD_NUMBER = 8;
private yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy scalePolicy_;
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 8;
* @return Whether the scalePolicy field is set.
*/
@java.lang.Override
public boolean hasScalePolicy() {
return scalePolicy_ != null;
}
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 8;
* @return The scalePolicy.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy getScalePolicy() {
return scalePolicy_ == null ? yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy.getDefaultInstance() : scalePolicy_;
}
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 8;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicyOrBuilder getScalePolicyOrBuilder() {
return getScalePolicy();
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetLabels(),
LabelsDefaultEntryHolder.defaultEntry,
4);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, zoneId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, typeId_);
}
if (maintenancePolicy_ != yandex.cloud.api.compute.v1.HostGroupOuterClass.MaintenancePolicy.MAINTENANCE_POLICY_UNSPECIFIED.getNumber()) {
output.writeEnum(7, maintenancePolicy_);
}
if (scalePolicy_ != null) {
output.writeMessage(8, getScalePolicy());
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
for (java.util.Map.Entry entry
: internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry
labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, labels__);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, zoneId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(typeId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, typeId_);
}
if (maintenancePolicy_ != yandex.cloud.api.compute.v1.HostGroupOuterClass.MaintenancePolicy.MAINTENANCE_POLICY_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, maintenancePolicy_);
}
if (scalePolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getScalePolicy());
}
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.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest other = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest) obj;
if (!getFolderId()
.equals(other.getFolderId())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!internalGetLabels().equals(
other.internalGetLabels())) return false;
if (!getZoneId()
.equals(other.getZoneId())) return false;
if (!getTypeId()
.equals(other.getTypeId())) return false;
if (maintenancePolicy_ != other.maintenancePolicy_) return false;
if (hasScalePolicy() != other.hasScalePolicy()) return false;
if (hasScalePolicy()) {
if (!getScalePolicy()
.equals(other.getScalePolicy())) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
hash = (37 * hash) + ZONE_ID_FIELD_NUMBER;
hash = (53 * hash) + getZoneId().hashCode();
hash = (37 * hash) + TYPE_ID_FIELD_NUMBER;
hash = (53 * hash) + getTypeId().hashCode();
hash = (37 * hash) + MAINTENANCE_POLICY_FIELD_NUMBER;
hash = (53 * hash) + maintenancePolicy_;
if (hasScalePolicy()) {
hash = (37 * hash) + SCALE_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getScalePolicy().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest 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.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest 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.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest 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.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest 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.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest 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.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest 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.compute.v1.CreateHostGroupRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.CreateHostGroupRequest)
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateHostGroupRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
return internalGetLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 4:
return internalGetMutableLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateHostGroupRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest.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_ = "";
name_ = "";
description_ = "";
internalGetMutableLabels().clear();
zoneId_ = "";
typeId_ = "";
maintenancePolicy_ = 0;
if (scalePolicyBuilder_ == null) {
scalePolicy_ = null;
} else {
scalePolicy_ = null;
scalePolicyBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateHostGroupRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest build() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest buildPartial() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest result = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest(this);
int from_bitField0_ = bitField0_;
result.folderId_ = folderId_;
result.name_ = name_;
result.description_ = description_;
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
result.zoneId_ = zoneId_;
result.typeId_ = typeId_;
result.maintenancePolicy_ = maintenancePolicy_;
if (scalePolicyBuilder_ == null) {
result.scalePolicy_ = scalePolicy_;
} else {
result.scalePolicy_ = scalePolicyBuilder_.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.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest other) {
if (other == yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest.getDefaultInstance()) return this;
if (!other.getFolderId().isEmpty()) {
folderId_ = other.folderId_;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
internalGetMutableLabels().mergeFrom(
other.internalGetLabels());
if (!other.getZoneId().isEmpty()) {
zoneId_ = other.zoneId_;
onChanged();
}
if (!other.getTypeId().isEmpty()) {
typeId_ = other.typeId_;
onChanged();
}
if (other.maintenancePolicy_ != 0) {
setMaintenancePolicyValue(other.getMaintenancePolicyValue());
}
if (other.hasScalePolicy()) {
mergeScalePolicy(other.getScalePolicy());
}
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.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object folderId_ = "";
/**
*
* ID of the folder to create a host group 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 folderId.
*/
public java.lang.String getFolderId() {
java.lang.Object ref = folderId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
folderId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the folder to create a host group 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.
*/
public com.google.protobuf.ByteString
getFolderIdBytes() {
java.lang.Object ref = folderId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
folderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the folder to create a host group 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 folderId to set.
* @return This builder for chaining.
*/
public Builder setFolderId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
folderId_ = value;
onChanged();
return this;
}
/**
*
* ID of the folder to create a host group 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 This builder for chaining.
*/
public Builder clearFolderId() {
folderId_ = getDefaultInstance().getFolderId();
onChanged();
return this;
}
/**
*
* ID of the folder to create a host group 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 java.lang.Object name_ = "";
/**
*
* Name of the group.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the group.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the group.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the group.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the group.
*
*
* string name = 2 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* Description of the group.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Description of the group.
*
*
* 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;
}
}
/**
*
* Description of the group.
*
*
* 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;
}
/**
*
* Description of the group.
*
*
* string description = 3 [(.yandex.cloud.length) = "<=256"];
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the group.
*
*
* 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();
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* 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 boolean containsLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetLabels().getMap().containsKey(key);
}
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* 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.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* 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 getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* 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 Builder clearLabels() {
internalGetMutableLabels().getMutableMap()
.clear();
return this;
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
public Builder removeLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableLabels().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableLabels() {
return internalGetMutableLabels().getMutableMap();
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
public Builder putLabels(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableLabels().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Resource labels as `key:value` pairs.
*
*
* map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
public Builder putAllLabels(
java.util.Map values) {
internalGetMutableLabels().getMutableMap()
.putAll(values);
return this;
}
private java.lang.Object zoneId_ = "";
/**
*
* Availability zone where all dedicated hosts will be allocated.
*
*
* string zone_id = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The zoneId.
*/
public java.lang.String getZoneId() {
java.lang.Object ref = zoneId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
zoneId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Availability zone where all dedicated hosts will be allocated.
*
*
* string zone_id = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for zoneId.
*/
public com.google.protobuf.ByteString
getZoneIdBytes() {
java.lang.Object ref = zoneId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
zoneId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Availability zone where all dedicated hosts will be allocated.
*
*
* string zone_id = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The zoneId to set.
* @return This builder for chaining.
*/
public Builder setZoneId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
zoneId_ = value;
onChanged();
return this;
}
/**
*
* Availability zone where all dedicated hosts will be allocated.
*
*
* string zone_id = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearZoneId() {
zoneId_ = getDefaultInstance().getZoneId();
onChanged();
return this;
}
/**
*
* Availability zone where all dedicated hosts will be allocated.
*
*
* string zone_id = 5 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for zoneId to set.
* @return This builder for chaining.
*/
public Builder setZoneIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
zoneId_ = value;
onChanged();
return this;
}
private java.lang.Object typeId_ = "";
/**
*
* ID of host type. Resources provided by each host of the group.
*
*
* string type_id = 6 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The typeId.
*/
public java.lang.String getTypeId() {
java.lang.Object ref = typeId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
typeId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of host type. Resources provided by each host of the group.
*
*
* string type_id = 6 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for typeId.
*/
public com.google.protobuf.ByteString
getTypeIdBytes() {
java.lang.Object ref = typeId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
typeId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of host type. Resources provided by each host of the group.
*
*
* string type_id = 6 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The typeId to set.
* @return This builder for chaining.
*/
public Builder setTypeId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
typeId_ = value;
onChanged();
return this;
}
/**
*
* ID of host type. Resources provided by each host of the group.
*
*
* string type_id = 6 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearTypeId() {
typeId_ = getDefaultInstance().getTypeId();
onChanged();
return this;
}
/**
*
* ID of host type. Resources provided by each host of the group.
*
*
* string type_id = 6 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for typeId to set.
* @return This builder for chaining.
*/
public Builder setTypeIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
typeId_ = value;
onChanged();
return this;
}
private int maintenancePolicy_ = 0;
/**
*
* Behaviour on maintenance events.
*
*
* .yandex.cloud.compute.v1.MaintenancePolicy maintenance_policy = 7;
* @return The enum numeric value on the wire for maintenancePolicy.
*/
@java.lang.Override public int getMaintenancePolicyValue() {
return maintenancePolicy_;
}
/**
*
* Behaviour on maintenance events.
*
*
* .yandex.cloud.compute.v1.MaintenancePolicy maintenance_policy = 7;
* @param value The enum numeric value on the wire for maintenancePolicy to set.
* @return This builder for chaining.
*/
public Builder setMaintenancePolicyValue(int value) {
maintenancePolicy_ = value;
onChanged();
return this;
}
/**
*
* Behaviour on maintenance events.
*
*
* .yandex.cloud.compute.v1.MaintenancePolicy maintenance_policy = 7;
* @return The maintenancePolicy.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupOuterClass.MaintenancePolicy getMaintenancePolicy() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.HostGroupOuterClass.MaintenancePolicy result = yandex.cloud.api.compute.v1.HostGroupOuterClass.MaintenancePolicy.valueOf(maintenancePolicy_);
return result == null ? yandex.cloud.api.compute.v1.HostGroupOuterClass.MaintenancePolicy.UNRECOGNIZED : result;
}
/**
*
* Behaviour on maintenance events.
*
*
* .yandex.cloud.compute.v1.MaintenancePolicy maintenance_policy = 7;
* @param value The maintenancePolicy to set.
* @return This builder for chaining.
*/
public Builder setMaintenancePolicy(yandex.cloud.api.compute.v1.HostGroupOuterClass.MaintenancePolicy value) {
if (value == null) {
throw new NullPointerException();
}
maintenancePolicy_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Behaviour on maintenance events.
*
*
* .yandex.cloud.compute.v1.MaintenancePolicy maintenance_policy = 7;
* @return This builder for chaining.
*/
public Builder clearMaintenancePolicy() {
maintenancePolicy_ = 0;
onChanged();
return this;
}
private yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy scalePolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy, yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy.Builder, yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicyOrBuilder> scalePolicyBuilder_;
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 8;
* @return Whether the scalePolicy field is set.
*/
public boolean hasScalePolicy() {
return scalePolicyBuilder_ != null || scalePolicy_ != null;
}
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 8;
* @return The scalePolicy.
*/
public yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy getScalePolicy() {
if (scalePolicyBuilder_ == null) {
return scalePolicy_ == null ? yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy.getDefaultInstance() : scalePolicy_;
} else {
return scalePolicyBuilder_.getMessage();
}
}
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 8;
*/
public Builder setScalePolicy(yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy value) {
if (scalePolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scalePolicy_ = value;
onChanged();
} else {
scalePolicyBuilder_.setMessage(value);
}
return this;
}
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 8;
*/
public Builder setScalePolicy(
yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy.Builder builderForValue) {
if (scalePolicyBuilder_ == null) {
scalePolicy_ = builderForValue.build();
onChanged();
} else {
scalePolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 8;
*/
public Builder mergeScalePolicy(yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy value) {
if (scalePolicyBuilder_ == null) {
if (scalePolicy_ != null) {
scalePolicy_ =
yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy.newBuilder(scalePolicy_).mergeFrom(value).buildPartial();
} else {
scalePolicy_ = value;
}
onChanged();
} else {
scalePolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 8;
*/
public Builder clearScalePolicy() {
if (scalePolicyBuilder_ == null) {
scalePolicy_ = null;
onChanged();
} else {
scalePolicy_ = null;
scalePolicyBuilder_ = null;
}
return this;
}
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 8;
*/
public yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy.Builder getScalePolicyBuilder() {
onChanged();
return getScalePolicyFieldBuilder().getBuilder();
}
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 8;
*/
public yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicyOrBuilder getScalePolicyOrBuilder() {
if (scalePolicyBuilder_ != null) {
return scalePolicyBuilder_.getMessageOrBuilder();
} else {
return scalePolicy_ == null ?
yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy.getDefaultInstance() : scalePolicy_;
}
}
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy, yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy.Builder, yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicyOrBuilder>
getScalePolicyFieldBuilder() {
if (scalePolicyBuilder_ == null) {
scalePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy, yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy.Builder, yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicyOrBuilder>(
getScalePolicy(),
getParentForChildren(),
isClean());
scalePolicy_ = null;
}
return scalePolicyBuilder_;
}
@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.compute.v1.CreateHostGroupRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.CreateHostGroupRequest)
private static final yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest();
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateHostGroupRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateHostGroupRequest(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.compute.v1.HostGroupServiceOuterClass.CreateHostGroupRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateHostGroupMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.CreateHostGroupMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the host group that is being created.
*
*
* string host_group_id = 1;
* @return The hostGroupId.
*/
java.lang.String getHostGroupId();
/**
*
* ID of the host group that is being created.
*
*
* string host_group_id = 1;
* @return The bytes for hostGroupId.
*/
com.google.protobuf.ByteString
getHostGroupIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.CreateHostGroupMetadata}
*/
public static final class CreateHostGroupMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.CreateHostGroupMetadata)
CreateHostGroupMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateHostGroupMetadata.newBuilder() to construct.
private CreateHostGroupMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateHostGroupMetadata() {
hostGroupId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateHostGroupMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateHostGroupMetadata(
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();
hostGroupId_ = 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.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateHostGroupMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateHostGroupMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata.Builder.class);
}
public static final int HOST_GROUP_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object hostGroupId_;
/**
*
* ID of the host group that is being created.
*
*
* string host_group_id = 1;
* @return The hostGroupId.
*/
@java.lang.Override
public java.lang.String getHostGroupId() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostGroupId_ = s;
return s;
}
}
/**
*
* ID of the host group that is being created.
*
*
* string host_group_id = 1;
* @return The bytes for hostGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostGroupIdBytes() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostGroupId_ = 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(hostGroupId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostGroupId_);
}
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(hostGroupId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostGroupId_);
}
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.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata other = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata) obj;
if (!getHostGroupId()
.equals(other.getHostGroupId())) 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) + HOST_GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getHostGroupId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata 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.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata 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.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata 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.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata 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.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata 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.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata 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.compute.v1.CreateHostGroupMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.CreateHostGroupMetadata)
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateHostGroupMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateHostGroupMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata.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();
hostGroupId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_CreateHostGroupMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata build() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata buildPartial() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata result = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata(this);
result.hostGroupId_ = hostGroupId_;
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.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata) {
return mergeFrom((yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata other) {
if (other == yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata.getDefaultInstance()) return this;
if (!other.getHostGroupId().isEmpty()) {
hostGroupId_ = other.hostGroupId_;
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.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object hostGroupId_ = "";
/**
*
* ID of the host group that is being created.
*
*
* string host_group_id = 1;
* @return The hostGroupId.
*/
public java.lang.String getHostGroupId() {
java.lang.Object ref = hostGroupId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostGroupId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the host group that is being created.
*
*
* string host_group_id = 1;
* @return The bytes for hostGroupId.
*/
public com.google.protobuf.ByteString
getHostGroupIdBytes() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the host group that is being created.
*
*
* string host_group_id = 1;
* @param value The hostGroupId to set.
* @return This builder for chaining.
*/
public Builder setHostGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
hostGroupId_ = value;
onChanged();
return this;
}
/**
*
* ID of the host group that is being created.
*
*
* string host_group_id = 1;
* @return This builder for chaining.
*/
public Builder clearHostGroupId() {
hostGroupId_ = getDefaultInstance().getHostGroupId();
onChanged();
return this;
}
/**
*
* ID of the host group that is being created.
*
*
* string host_group_id = 1;
* @param value The bytes for hostGroupId to set.
* @return This builder for chaining.
*/
public Builder setHostGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
hostGroupId_ = 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.compute.v1.CreateHostGroupMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.CreateHostGroupMetadata)
private static final yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata();
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateHostGroupMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateHostGroupMetadata(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.compute.v1.HostGroupServiceOuterClass.CreateHostGroupMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateHostGroupRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.UpdateHostGroupRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the host group to update.
* To get the host group ID, use an [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The hostGroupId.
*/
java.lang.String getHostGroupId();
/**
*
* ID of the host group to update.
* To get the host group ID, use an [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for hostGroupId.
*/
com.google.protobuf.ByteString
getHostGroupIdBytes();
/**
*
* Field mask that specifies which fields of the HostGroup resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return Whether the updateMask field is set.
*/
boolean hasUpdateMask();
/**
*
* Field mask that specifies which fields of the HostGroup resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return The updateMask.
*/
com.google.protobuf.FieldMask getUpdateMask();
/**
*
* Field mask that specifies which fields of the HostGroup resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
/**
*
* Name of the group.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The name.
*/
java.lang.String getName();
/**
*
* Name of the group.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Description of the group.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
java.lang.String getDescription();
/**
*
* Description of the group.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
*
* Resource labels as `key:value` pairs.
* The existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
int getLabelsCount();
/**
*
* Resource labels as `key:value` pairs.
* The existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
boolean containsLabels(
java.lang.String key);
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getLabels();
/**
*
* Resource labels as `key:value` pairs.
* The existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.util.Map
getLabelsMap();
/**
*
* Resource labels as `key:value` pairs.
* The existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.lang.String getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* Resource labels as `key:value` pairs.
* The existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
java.lang.String getLabelsOrThrow(
java.lang.String key);
/**
*
* Behaviour on maintenance events
*
*
* .yandex.cloud.compute.v1.MaintenancePolicy maintenance_policy = 6;
* @return The enum numeric value on the wire for maintenancePolicy.
*/
int getMaintenancePolicyValue();
/**
*
* Behaviour on maintenance events
*
*
* .yandex.cloud.compute.v1.MaintenancePolicy maintenance_policy = 6;
* @return The maintenancePolicy.
*/
yandex.cloud.api.compute.v1.HostGroupOuterClass.MaintenancePolicy getMaintenancePolicy();
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 7;
* @return Whether the scalePolicy field is set.
*/
boolean hasScalePolicy();
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 7;
* @return The scalePolicy.
*/
yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy getScalePolicy();
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 7;
*/
yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicyOrBuilder getScalePolicyOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.UpdateHostGroupRequest}
*/
public static final class UpdateHostGroupRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.UpdateHostGroupRequest)
UpdateHostGroupRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateHostGroupRequest.newBuilder() to construct.
private UpdateHostGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateHostGroupRequest() {
hostGroupId_ = "";
name_ = "";
description_ = "";
maintenancePolicy_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateHostGroupRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateHostGroupRequest(
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();
hostGroupId_ = s;
break;
}
case 18: {
com.google.protobuf.FieldMask.Builder subBuilder = null;
if (updateMask_ != null) {
subBuilder = updateMask_.toBuilder();
}
updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(updateMask_);
updateMask_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
description_ = s;
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
labels_ = com.google.protobuf.MapField.newMapField(
LabelsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
labels__ = input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
labels_.getMutableMap().put(
labels__.getKey(), labels__.getValue());
break;
}
case 48: {
int rawValue = input.readEnum();
maintenancePolicy_ = rawValue;
break;
}
case 58: {
yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy.Builder subBuilder = null;
if (scalePolicy_ != null) {
subBuilder = scalePolicy_.toBuilder();
}
scalePolicy_ = input.readMessage(yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(scalePolicy_);
scalePolicy_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateHostGroupRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateHostGroupRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest.Builder.class);
}
public static final int HOST_GROUP_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object hostGroupId_;
/**
*
* ID of the host group to update.
* To get the host group ID, use an [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The hostGroupId.
*/
@java.lang.Override
public java.lang.String getHostGroupId() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostGroupId_ = s;
return s;
}
}
/**
*
* ID of the host group to update.
* To get the host group ID, use an [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for hostGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostGroupIdBytes() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UPDATE_MASK_FIELD_NUMBER = 2;
private com.google.protobuf.FieldMask updateMask_;
/**
*
* Field mask that specifies which fields of the HostGroup resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return Whether the updateMask field is set.
*/
@java.lang.Override
public boolean hasUpdateMask() {
return updateMask_ != null;
}
/**
*
* Field mask that specifies which fields of the HostGroup resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return The updateMask.
*/
@java.lang.Override
public com.google.protobuf.FieldMask getUpdateMask() {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
/**
*
* Field mask that specifies which fields of the HostGroup resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
@java.lang.Override
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
return getUpdateMask();
}
public static final int NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object name_;
/**
*
* Name of the group.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Name of the group.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 4;
private volatile java.lang.Object description_;
/**
*
* Description of the group.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
*
* Description of the group.
*
*
* string description = 4 [(.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 = 5;
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.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateHostGroupRequest_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();
}
/**
*
* Resource labels as `key:value` pairs.
* The existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public boolean containsLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetLabels().getMap().containsKey(key);
}
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
* Resource labels as `key:value` pairs.
* The existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* Resource labels as `key:value` pairs.
* The existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.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 getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Resource labels as `key:value` pairs.
* The existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.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 MAINTENANCE_POLICY_FIELD_NUMBER = 6;
private int maintenancePolicy_;
/**
*
* Behaviour on maintenance events
*
*
* .yandex.cloud.compute.v1.MaintenancePolicy maintenance_policy = 6;
* @return The enum numeric value on the wire for maintenancePolicy.
*/
@java.lang.Override public int getMaintenancePolicyValue() {
return maintenancePolicy_;
}
/**
*
* Behaviour on maintenance events
*
*
* .yandex.cloud.compute.v1.MaintenancePolicy maintenance_policy = 6;
* @return The maintenancePolicy.
*/
@java.lang.Override public yandex.cloud.api.compute.v1.HostGroupOuterClass.MaintenancePolicy getMaintenancePolicy() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.HostGroupOuterClass.MaintenancePolicy result = yandex.cloud.api.compute.v1.HostGroupOuterClass.MaintenancePolicy.valueOf(maintenancePolicy_);
return result == null ? yandex.cloud.api.compute.v1.HostGroupOuterClass.MaintenancePolicy.UNRECOGNIZED : result;
}
public static final int SCALE_POLICY_FIELD_NUMBER = 7;
private yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy scalePolicy_;
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 7;
* @return Whether the scalePolicy field is set.
*/
@java.lang.Override
public boolean hasScalePolicy() {
return scalePolicy_ != null;
}
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 7;
* @return The scalePolicy.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy getScalePolicy() {
return scalePolicy_ == null ? yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy.getDefaultInstance() : scalePolicy_;
}
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 7;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicyOrBuilder getScalePolicyOrBuilder() {
return getScalePolicy();
}
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(hostGroupId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostGroupId_);
}
if (updateMask_ != null) {
output.writeMessage(2, getUpdateMask());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetLabels(),
LabelsDefaultEntryHolder.defaultEntry,
5);
if (maintenancePolicy_ != yandex.cloud.api.compute.v1.HostGroupOuterClass.MaintenancePolicy.MAINTENANCE_POLICY_UNSPECIFIED.getNumber()) {
output.writeEnum(6, maintenancePolicy_);
}
if (scalePolicy_ != null) {
output.writeMessage(7, getScalePolicy());
}
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(hostGroupId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostGroupId_);
}
if (updateMask_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getUpdateMask());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_);
}
for (java.util.Map.Entry entry
: internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry
labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, labels__);
}
if (maintenancePolicy_ != yandex.cloud.api.compute.v1.HostGroupOuterClass.MaintenancePolicy.MAINTENANCE_POLICY_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, maintenancePolicy_);
}
if (scalePolicy_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getScalePolicy());
}
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.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest other = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest) obj;
if (!getHostGroupId()
.equals(other.getHostGroupId())) return false;
if (hasUpdateMask() != other.hasUpdateMask()) return false;
if (hasUpdateMask()) {
if (!getUpdateMask()
.equals(other.getUpdateMask())) return false;
}
if (!getName()
.equals(other.getName())) return false;
if (!getDescription()
.equals(other.getDescription())) return false;
if (!internalGetLabels().equals(
other.internalGetLabels())) return false;
if (maintenancePolicy_ != other.maintenancePolicy_) return false;
if (hasScalePolicy() != other.hasScalePolicy()) return false;
if (hasScalePolicy()) {
if (!getScalePolicy()
.equals(other.getScalePolicy())) 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) + HOST_GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getHostGroupId().hashCode();
if (hasUpdateMask()) {
hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER;
hash = (53 * hash) + getUpdateMask().hashCode();
}
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
hash = (37 * hash) + MAINTENANCE_POLICY_FIELD_NUMBER;
hash = (53 * hash) + maintenancePolicy_;
if (hasScalePolicy()) {
hash = (37 * hash) + SCALE_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getScalePolicy().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest 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.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest 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.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest 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.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest 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.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest 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.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest 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.compute.v1.UpdateHostGroupRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.UpdateHostGroupRequest)
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateHostGroupRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 5:
return internalGetMutableLabels();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateHostGroupRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest.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();
hostGroupId_ = "";
if (updateMaskBuilder_ == null) {
updateMask_ = null;
} else {
updateMask_ = null;
updateMaskBuilder_ = null;
}
name_ = "";
description_ = "";
internalGetMutableLabels().clear();
maintenancePolicy_ = 0;
if (scalePolicyBuilder_ == null) {
scalePolicy_ = null;
} else {
scalePolicy_ = null;
scalePolicyBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateHostGroupRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest build() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest buildPartial() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest result = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest(this);
int from_bitField0_ = bitField0_;
result.hostGroupId_ = hostGroupId_;
if (updateMaskBuilder_ == null) {
result.updateMask_ = updateMask_;
} else {
result.updateMask_ = updateMaskBuilder_.build();
}
result.name_ = name_;
result.description_ = description_;
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
result.maintenancePolicy_ = maintenancePolicy_;
if (scalePolicyBuilder_ == null) {
result.scalePolicy_ = scalePolicy_;
} else {
result.scalePolicy_ = scalePolicyBuilder_.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.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest other) {
if (other == yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest.getDefaultInstance()) return this;
if (!other.getHostGroupId().isEmpty()) {
hostGroupId_ = other.hostGroupId_;
onChanged();
}
if (other.hasUpdateMask()) {
mergeUpdateMask(other.getUpdateMask());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
onChanged();
}
internalGetMutableLabels().mergeFrom(
other.internalGetLabels());
if (other.maintenancePolicy_ != 0) {
setMaintenancePolicyValue(other.getMaintenancePolicyValue());
}
if (other.hasScalePolicy()) {
mergeScalePolicy(other.getScalePolicy());
}
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.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object hostGroupId_ = "";
/**
*
* ID of the host group to update.
* To get the host group ID, use an [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The hostGroupId.
*/
public java.lang.String getHostGroupId() {
java.lang.Object ref = hostGroupId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostGroupId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the host group to update.
* To get the host group ID, use an [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for hostGroupId.
*/
public com.google.protobuf.ByteString
getHostGroupIdBytes() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the host group to update.
* To get the host group ID, use an [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The hostGroupId to set.
* @return This builder for chaining.
*/
public Builder setHostGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
hostGroupId_ = value;
onChanged();
return this;
}
/**
*
* ID of the host group to update.
* To get the host group ID, use an [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearHostGroupId() {
hostGroupId_ = getDefaultInstance().getHostGroupId();
onChanged();
return this;
}
/**
*
* ID of the host group to update.
* To get the host group ID, use an [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for hostGroupId to set.
* @return This builder for chaining.
*/
public Builder setHostGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
hostGroupId_ = value;
onChanged();
return this;
}
private com.google.protobuf.FieldMask updateMask_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_;
/**
*
* Field mask that specifies which fields of the HostGroup resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return Whether the updateMask field is set.
*/
public boolean hasUpdateMask() {
return updateMaskBuilder_ != null || updateMask_ != null;
}
/**
*
* Field mask that specifies which fields of the HostGroup resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
* @return The updateMask.
*/
public com.google.protobuf.FieldMask getUpdateMask() {
if (updateMaskBuilder_ == null) {
return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
} else {
return updateMaskBuilder_.getMessage();
}
}
/**
*
* Field mask that specifies which fields of the HostGroup resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
updateMask_ = value;
onChanged();
} else {
updateMaskBuilder_.setMessage(value);
}
return this;
}
/**
*
* Field mask that specifies which fields of the HostGroup resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public Builder setUpdateMask(
com.google.protobuf.FieldMask.Builder builderForValue) {
if (updateMaskBuilder_ == null) {
updateMask_ = builderForValue.build();
onChanged();
} else {
updateMaskBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Field mask that specifies which fields of the HostGroup resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
if (updateMaskBuilder_ == null) {
if (updateMask_ != null) {
updateMask_ =
com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
} else {
updateMask_ = value;
}
onChanged();
} else {
updateMaskBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Field mask that specifies which fields of the HostGroup resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public Builder clearUpdateMask() {
if (updateMaskBuilder_ == null) {
updateMask_ = null;
onChanged();
} else {
updateMask_ = null;
updateMaskBuilder_ = null;
}
return this;
}
/**
*
* Field mask that specifies which fields of the HostGroup resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
onChanged();
return getUpdateMaskFieldBuilder().getBuilder();
}
/**
*
* Field mask that specifies which fields of the HostGroup resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
if (updateMaskBuilder_ != null) {
return updateMaskBuilder_.getMessageOrBuilder();
} else {
return updateMask_ == null ?
com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
}
}
/**
*
* Field mask that specifies which fields of the HostGroup resource are going to be updated.
*
*
* .google.protobuf.FieldMask update_mask = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>
getUpdateMaskFieldBuilder() {
if (updateMaskBuilder_ == null) {
updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
getUpdateMask(),
getParentForChildren(),
isClean());
updateMask_ = null;
}
return updateMaskBuilder_;
}
private java.lang.Object name_ = "";
/**
*
* Name of the group.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Name of the group.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Name of the group.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Name of the group.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Name of the group.
*
*
* string name = 3 [(.yandex.cloud.pattern) = "|[a-z]([-a-z0-9]{0,61}[a-z0-9])?"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* Description of the group.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Description of the group.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Description of the group.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
onChanged();
return this;
}
/**
*
* Description of the group.
*
*
* string description = 4 [(.yandex.cloud.length) = "<=256"];
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Description of the group.
*
*
* string description = 4 [(.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();
}
/**
*
* Resource labels as `key:value` pairs.
* The existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public boolean containsLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetLabels().getMap().containsKey(key);
}
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
* Resource labels as `key:value` pairs.
* The existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
* Resource labels as `key:value` pairs.
* The existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.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 getLabelsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Resource labels as `key:value` pairs.
* The existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.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 Builder clearLabels() {
internalGetMutableLabels().getMutableMap()
.clear();
return this;
}
/**
*
* Resource labels as `key:value` pairs.
* The existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
public Builder removeLabels(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableLabels().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableLabels() {
return internalGetMutableLabels().getMutableMap();
}
/**
*
* Resource labels as `key:value` pairs.
* The existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
public Builder putLabels(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableLabels().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Resource labels as `key:value` pairs.
* The existing set of `labels` is completely replaced by the provided set.
*
*
* map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_./\\@0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... }
*/
public Builder putAllLabels(
java.util.Map values) {
internalGetMutableLabels().getMutableMap()
.putAll(values);
return this;
}
private int maintenancePolicy_ = 0;
/**
*
* Behaviour on maintenance events
*
*
* .yandex.cloud.compute.v1.MaintenancePolicy maintenance_policy = 6;
* @return The enum numeric value on the wire for maintenancePolicy.
*/
@java.lang.Override public int getMaintenancePolicyValue() {
return maintenancePolicy_;
}
/**
*
* Behaviour on maintenance events
*
*
* .yandex.cloud.compute.v1.MaintenancePolicy maintenance_policy = 6;
* @param value The enum numeric value on the wire for maintenancePolicy to set.
* @return This builder for chaining.
*/
public Builder setMaintenancePolicyValue(int value) {
maintenancePolicy_ = value;
onChanged();
return this;
}
/**
*
* Behaviour on maintenance events
*
*
* .yandex.cloud.compute.v1.MaintenancePolicy maintenance_policy = 6;
* @return The maintenancePolicy.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupOuterClass.MaintenancePolicy getMaintenancePolicy() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.HostGroupOuterClass.MaintenancePolicy result = yandex.cloud.api.compute.v1.HostGroupOuterClass.MaintenancePolicy.valueOf(maintenancePolicy_);
return result == null ? yandex.cloud.api.compute.v1.HostGroupOuterClass.MaintenancePolicy.UNRECOGNIZED : result;
}
/**
*
* Behaviour on maintenance events
*
*
* .yandex.cloud.compute.v1.MaintenancePolicy maintenance_policy = 6;
* @param value The maintenancePolicy to set.
* @return This builder for chaining.
*/
public Builder setMaintenancePolicy(yandex.cloud.api.compute.v1.HostGroupOuterClass.MaintenancePolicy value) {
if (value == null) {
throw new NullPointerException();
}
maintenancePolicy_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Behaviour on maintenance events
*
*
* .yandex.cloud.compute.v1.MaintenancePolicy maintenance_policy = 6;
* @return This builder for chaining.
*/
public Builder clearMaintenancePolicy() {
maintenancePolicy_ = 0;
onChanged();
return this;
}
private yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy scalePolicy_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy, yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy.Builder, yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicyOrBuilder> scalePolicyBuilder_;
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 7;
* @return Whether the scalePolicy field is set.
*/
public boolean hasScalePolicy() {
return scalePolicyBuilder_ != null || scalePolicy_ != null;
}
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 7;
* @return The scalePolicy.
*/
public yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy getScalePolicy() {
if (scalePolicyBuilder_ == null) {
return scalePolicy_ == null ? yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy.getDefaultInstance() : scalePolicy_;
} else {
return scalePolicyBuilder_.getMessage();
}
}
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 7;
*/
public Builder setScalePolicy(yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy value) {
if (scalePolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scalePolicy_ = value;
onChanged();
} else {
scalePolicyBuilder_.setMessage(value);
}
return this;
}
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 7;
*/
public Builder setScalePolicy(
yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy.Builder builderForValue) {
if (scalePolicyBuilder_ == null) {
scalePolicy_ = builderForValue.build();
onChanged();
} else {
scalePolicyBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 7;
*/
public Builder mergeScalePolicy(yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy value) {
if (scalePolicyBuilder_ == null) {
if (scalePolicy_ != null) {
scalePolicy_ =
yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy.newBuilder(scalePolicy_).mergeFrom(value).buildPartial();
} else {
scalePolicy_ = value;
}
onChanged();
} else {
scalePolicyBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 7;
*/
public Builder clearScalePolicy() {
if (scalePolicyBuilder_ == null) {
scalePolicy_ = null;
onChanged();
} else {
scalePolicy_ = null;
scalePolicyBuilder_ = null;
}
return this;
}
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 7;
*/
public yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy.Builder getScalePolicyBuilder() {
onChanged();
return getScalePolicyFieldBuilder().getBuilder();
}
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 7;
*/
public yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicyOrBuilder getScalePolicyOrBuilder() {
if (scalePolicyBuilder_ != null) {
return scalePolicyBuilder_.getMessageOrBuilder();
} else {
return scalePolicy_ == null ?
yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy.getDefaultInstance() : scalePolicy_;
}
}
/**
*
* Scale policy. Only fixed number of hosts are supported at this moment.
*
*
* .yandex.cloud.compute.v1.ScalePolicy scale_policy = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy, yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy.Builder, yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicyOrBuilder>
getScalePolicyFieldBuilder() {
if (scalePolicyBuilder_ == null) {
scalePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy, yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicy.Builder, yandex.cloud.api.compute.v1.HostGroupOuterClass.ScalePolicyOrBuilder>(
getScalePolicy(),
getParentForChildren(),
isClean());
scalePolicy_ = null;
}
return scalePolicyBuilder_;
}
@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.compute.v1.UpdateHostGroupRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.UpdateHostGroupRequest)
private static final yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest();
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateHostGroupRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateHostGroupRequest(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.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateHostGroupMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.UpdateHostGroupMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the host group that is being updated.
*
*
* string host_group_id = 1;
* @return The hostGroupId.
*/
java.lang.String getHostGroupId();
/**
*
* ID of the host group that is being updated.
*
*
* string host_group_id = 1;
* @return The bytes for hostGroupId.
*/
com.google.protobuf.ByteString
getHostGroupIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.UpdateHostGroupMetadata}
*/
public static final class UpdateHostGroupMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.UpdateHostGroupMetadata)
UpdateHostGroupMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateHostGroupMetadata.newBuilder() to construct.
private UpdateHostGroupMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateHostGroupMetadata() {
hostGroupId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateHostGroupMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateHostGroupMetadata(
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();
hostGroupId_ = 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.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateHostGroupMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateHostGroupMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata.Builder.class);
}
public static final int HOST_GROUP_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object hostGroupId_;
/**
*
* ID of the host group that is being updated.
*
*
* string host_group_id = 1;
* @return The hostGroupId.
*/
@java.lang.Override
public java.lang.String getHostGroupId() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostGroupId_ = s;
return s;
}
}
/**
*
* ID of the host group that is being updated.
*
*
* string host_group_id = 1;
* @return The bytes for hostGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostGroupIdBytes() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostGroupId_ = 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(hostGroupId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostGroupId_);
}
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(hostGroupId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostGroupId_);
}
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.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata other = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata) obj;
if (!getHostGroupId()
.equals(other.getHostGroupId())) 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) + HOST_GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getHostGroupId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata 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.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata 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.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata 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.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata 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.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata 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.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata 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.compute.v1.UpdateHostGroupMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.UpdateHostGroupMetadata)
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateHostGroupMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateHostGroupMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata.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();
hostGroupId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_UpdateHostGroupMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata build() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata buildPartial() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata result = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata(this);
result.hostGroupId_ = hostGroupId_;
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.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata) {
return mergeFrom((yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata other) {
if (other == yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata.getDefaultInstance()) return this;
if (!other.getHostGroupId().isEmpty()) {
hostGroupId_ = other.hostGroupId_;
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.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object hostGroupId_ = "";
/**
*
* ID of the host group that is being updated.
*
*
* string host_group_id = 1;
* @return The hostGroupId.
*/
public java.lang.String getHostGroupId() {
java.lang.Object ref = hostGroupId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostGroupId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the host group that is being updated.
*
*
* string host_group_id = 1;
* @return The bytes for hostGroupId.
*/
public com.google.protobuf.ByteString
getHostGroupIdBytes() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the host group that is being updated.
*
*
* string host_group_id = 1;
* @param value The hostGroupId to set.
* @return This builder for chaining.
*/
public Builder setHostGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
hostGroupId_ = value;
onChanged();
return this;
}
/**
*
* ID of the host group that is being updated.
*
*
* string host_group_id = 1;
* @return This builder for chaining.
*/
public Builder clearHostGroupId() {
hostGroupId_ = getDefaultInstance().getHostGroupId();
onChanged();
return this;
}
/**
*
* ID of the host group that is being updated.
*
*
* string host_group_id = 1;
* @param value The bytes for hostGroupId to set.
* @return This builder for chaining.
*/
public Builder setHostGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
hostGroupId_ = 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.compute.v1.UpdateHostGroupMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.UpdateHostGroupMetadata)
private static final yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata();
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateHostGroupMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateHostGroupMetadata(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.compute.v1.HostGroupServiceOuterClass.UpdateHostGroupMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteHostGroupRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.DeleteHostGroupRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the host group to delete.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The hostGroupId.
*/
java.lang.String getHostGroupId();
/**
*
* ID of the host group to delete.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for hostGroupId.
*/
com.google.protobuf.ByteString
getHostGroupIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.DeleteHostGroupRequest}
*/
public static final class DeleteHostGroupRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.DeleteHostGroupRequest)
DeleteHostGroupRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteHostGroupRequest.newBuilder() to construct.
private DeleteHostGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteHostGroupRequest() {
hostGroupId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteHostGroupRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteHostGroupRequest(
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();
hostGroupId_ = 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.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteHostGroupRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteHostGroupRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest.Builder.class);
}
public static final int HOST_GROUP_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object hostGroupId_;
/**
*
* ID of the host group to delete.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The hostGroupId.
*/
@java.lang.Override
public java.lang.String getHostGroupId() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostGroupId_ = s;
return s;
}
}
/**
*
* ID of the host group to delete.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for hostGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostGroupIdBytes() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostGroupId_ = 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(hostGroupId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostGroupId_);
}
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(hostGroupId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostGroupId_);
}
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.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest other = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest) obj;
if (!getHostGroupId()
.equals(other.getHostGroupId())) 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) + HOST_GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getHostGroupId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest 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.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest 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.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest 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.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest 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.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest 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.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest 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.compute.v1.DeleteHostGroupRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.DeleteHostGroupRequest)
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteHostGroupRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteHostGroupRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest.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();
hostGroupId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteHostGroupRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest build() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest buildPartial() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest result = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest(this);
result.hostGroupId_ = hostGroupId_;
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.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest other) {
if (other == yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest.getDefaultInstance()) return this;
if (!other.getHostGroupId().isEmpty()) {
hostGroupId_ = other.hostGroupId_;
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.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object hostGroupId_ = "";
/**
*
* ID of the host group to delete.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The hostGroupId.
*/
public java.lang.String getHostGroupId() {
java.lang.Object ref = hostGroupId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostGroupId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the host group to delete.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for hostGroupId.
*/
public com.google.protobuf.ByteString
getHostGroupIdBytes() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the host group to delete.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The hostGroupId to set.
* @return This builder for chaining.
*/
public Builder setHostGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
hostGroupId_ = value;
onChanged();
return this;
}
/**
*
* ID of the host group to delete.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearHostGroupId() {
hostGroupId_ = getDefaultInstance().getHostGroupId();
onChanged();
return this;
}
/**
*
* ID of the host group to delete.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for hostGroupId to set.
* @return This builder for chaining.
*/
public Builder setHostGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
hostGroupId_ = 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.compute.v1.DeleteHostGroupRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.DeleteHostGroupRequest)
private static final yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest();
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteHostGroupRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteHostGroupRequest(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.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteHostGroupMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.DeleteHostGroupMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the host group that is being deleted.
*
*
* string host_group_id = 1;
* @return The hostGroupId.
*/
java.lang.String getHostGroupId();
/**
*
* ID of the host group that is being deleted.
*
*
* string host_group_id = 1;
* @return The bytes for hostGroupId.
*/
com.google.protobuf.ByteString
getHostGroupIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.DeleteHostGroupMetadata}
*/
public static final class DeleteHostGroupMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.DeleteHostGroupMetadata)
DeleteHostGroupMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteHostGroupMetadata.newBuilder() to construct.
private DeleteHostGroupMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteHostGroupMetadata() {
hostGroupId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteHostGroupMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteHostGroupMetadata(
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();
hostGroupId_ = 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.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteHostGroupMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteHostGroupMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata.Builder.class);
}
public static final int HOST_GROUP_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object hostGroupId_;
/**
*
* ID of the host group that is being deleted.
*
*
* string host_group_id = 1;
* @return The hostGroupId.
*/
@java.lang.Override
public java.lang.String getHostGroupId() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostGroupId_ = s;
return s;
}
}
/**
*
* ID of the host group that is being deleted.
*
*
* string host_group_id = 1;
* @return The bytes for hostGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostGroupIdBytes() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostGroupId_ = 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(hostGroupId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostGroupId_);
}
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(hostGroupId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostGroupId_);
}
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.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata other = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata) obj;
if (!getHostGroupId()
.equals(other.getHostGroupId())) 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) + HOST_GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getHostGroupId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata 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.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata 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.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata 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.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata 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.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata 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.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata 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.compute.v1.DeleteHostGroupMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.DeleteHostGroupMetadata)
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteHostGroupMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteHostGroupMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata.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();
hostGroupId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_DeleteHostGroupMetadata_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata build() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata buildPartial() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata result = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata(this);
result.hostGroupId_ = hostGroupId_;
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.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata) {
return mergeFrom((yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata other) {
if (other == yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata.getDefaultInstance()) return this;
if (!other.getHostGroupId().isEmpty()) {
hostGroupId_ = other.hostGroupId_;
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.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object hostGroupId_ = "";
/**
*
* ID of the host group that is being deleted.
*
*
* string host_group_id = 1;
* @return The hostGroupId.
*/
public java.lang.String getHostGroupId() {
java.lang.Object ref = hostGroupId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostGroupId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the host group that is being deleted.
*
*
* string host_group_id = 1;
* @return The bytes for hostGroupId.
*/
public com.google.protobuf.ByteString
getHostGroupIdBytes() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the host group that is being deleted.
*
*
* string host_group_id = 1;
* @param value The hostGroupId to set.
* @return This builder for chaining.
*/
public Builder setHostGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
hostGroupId_ = value;
onChanged();
return this;
}
/**
*
* ID of the host group that is being deleted.
*
*
* string host_group_id = 1;
* @return This builder for chaining.
*/
public Builder clearHostGroupId() {
hostGroupId_ = getDefaultInstance().getHostGroupId();
onChanged();
return this;
}
/**
*
* ID of the host group that is being deleted.
*
*
* string host_group_id = 1;
* @param value The bytes for hostGroupId to set.
* @return This builder for chaining.
*/
public Builder setHostGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
hostGroupId_ = 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.compute.v1.DeleteHostGroupMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.DeleteHostGroupMetadata)
private static final yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata();
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteHostGroupMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteHostGroupMetadata(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.compute.v1.HostGroupServiceOuterClass.DeleteHostGroupMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListHostGroupInstancesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ListHostGroupInstancesRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the host group to list instances for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The hostGroupId.
*/
java.lang.String getHostGroupId();
/**
*
* ID of the host group to list instances for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for hostGroupId.
*/
com.google.protobuf.ByteString
getHostGroupIdBytes();
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListHostGroupInstancesResponse.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 [ListHostGroupInstancesResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
java.lang.String getPageToken();
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListHostGroupInstancesResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
/**
*
* Filter support is not currently implemented. Any filters are ignored.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The filter.
*/
java.lang.String getFilter();
/**
*
* Filter support is not currently implemented. Any filters are ignored.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
com.google.protobuf.ByteString
getFilterBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.ListHostGroupInstancesRequest}
*/
public static final class ListHostGroupInstancesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ListHostGroupInstancesRequest)
ListHostGroupInstancesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListHostGroupInstancesRequest.newBuilder() to construct.
private ListHostGroupInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListHostGroupInstancesRequest() {
hostGroupId_ = "";
pageToken_ = "";
filter_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListHostGroupInstancesRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListHostGroupInstancesRequest(
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();
hostGroupId_ = 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.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupInstancesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupInstancesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest.Builder.class);
}
public static final int HOST_GROUP_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object hostGroupId_;
/**
*
* ID of the host group to list instances for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The hostGroupId.
*/
@java.lang.Override
public java.lang.String getHostGroupId() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostGroupId_ = s;
return s;
}
}
/**
*
* ID of the host group to list instances for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for hostGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostGroupIdBytes() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostGroupId_ = 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 [ListHostGroupInstancesResponse.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 [ListHostGroupInstancesResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
@java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
}
}
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListHostGroupInstancesResponse.next_page_token]
* returned by a 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_;
/**
*
* Filter support is not currently implemented. Any filters are ignored.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The filter.
*/
@java.lang.Override
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
filter_ = s;
return s;
}
}
/**
*
* Filter support is not currently implemented. Any filters are ignored.
*
*
* 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(hostGroupId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostGroupId_);
}
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(hostGroupId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostGroupId_);
}
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.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest other = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest) obj;
if (!getHostGroupId()
.equals(other.getHostGroupId())) 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) + HOST_GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getHostGroupId().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.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest 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.compute.v1.ListHostGroupInstancesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ListHostGroupInstancesRequest)
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupInstancesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupInstancesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest.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();
hostGroupId_ = "";
pageSize_ = 0L;
pageToken_ = "";
filter_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupInstancesRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest build() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest buildPartial() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest result = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest(this);
result.hostGroupId_ = hostGroupId_;
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.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest other) {
if (other == yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest.getDefaultInstance()) return this;
if (!other.getHostGroupId().isEmpty()) {
hostGroupId_ = other.hostGroupId_;
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.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object hostGroupId_ = "";
/**
*
* ID of the host group to list instances for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The hostGroupId.
*/
public java.lang.String getHostGroupId() {
java.lang.Object ref = hostGroupId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostGroupId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the host group to list instances for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for hostGroupId.
*/
public com.google.protobuf.ByteString
getHostGroupIdBytes() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the host group to list instances for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The hostGroupId to set.
* @return This builder for chaining.
*/
public Builder setHostGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
hostGroupId_ = value;
onChanged();
return this;
}
/**
*
* ID of the host group to list instances for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearHostGroupId() {
hostGroupId_ = getDefaultInstance().getHostGroupId();
onChanged();
return this;
}
/**
*
* ID of the host group to list instances for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for hostGroupId to set.
* @return This builder for chaining.
*/
public Builder setHostGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
hostGroupId_ = 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 [ListHostGroupInstancesResponse.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 [ListHostGroupInstancesResponse.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 [ListHostGroupInstancesResponse.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 This builder for chaining.
*/
public Builder clearPageSize() {
pageSize_ = 0L;
onChanged();
return this;
}
private java.lang.Object pageToken_ = "";
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListHostGroupInstancesResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListHostGroupInstancesResponse.next_page_token]
* returned by a 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 [ListHostGroupInstancesResponse.next_page_token]
* returned by a 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 [ListHostGroupInstancesResponse.next_page_token]
* returned by a 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 [ListHostGroupInstancesResponse.next_page_token]
* returned by a 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_ = "";
/**
*
* Filter support is not currently implemented. Any filters are ignored.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The filter.
*/
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
filter_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Filter support is not currently implemented. Any filters are ignored.
*
*
* 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;
}
}
/**
*
* Filter support is not currently implemented. Any filters are ignored.
*
*
* 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;
}
/**
*
* Filter support is not currently implemented. Any filters are ignored.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return This builder for chaining.
*/
public Builder clearFilter() {
filter_ = getDefaultInstance().getFilter();
onChanged();
return this;
}
/**
*
* Filter support is not currently implemented. Any filters are ignored.
*
*
* 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.compute.v1.ListHostGroupInstancesRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListHostGroupInstancesRequest)
private static final yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest();
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListHostGroupInstancesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListHostGroupInstancesRequest(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.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListHostGroupInstancesResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ListHostGroupInstancesResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
java.util.List
getInstancesList();
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.Instance getInstances(int index);
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
int getInstancesCount();
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.InstanceOrBuilder>
getInstancesOrBuilderList();
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
yandex.cloud.api.compute.v1.InstanceOuterClass.InstanceOrBuilder getInstancesOrBuilder(
int index);
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is more than [ListHostGroupInstancesRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupInstancesRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
java.lang.String getNextPageToken();
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is more than [ListHostGroupInstancesRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupInstancesRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have 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.compute.v1.ListHostGroupInstancesResponse}
*/
public static final class ListHostGroupInstancesResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ListHostGroupInstancesResponse)
ListHostGroupInstancesResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListHostGroupInstancesResponse.newBuilder() to construct.
private ListHostGroupInstancesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListHostGroupInstancesResponse() {
instances_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListHostGroupInstancesResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListHostGroupInstancesResponse(
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)) {
instances_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
instances_.add(
input.readMessage(yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.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)) {
instances_ = java.util.Collections.unmodifiableList(instances_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupInstancesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupInstancesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse.Builder.class);
}
public static final int INSTANCES_FIELD_NUMBER = 1;
private java.util.List instances_;
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
@java.lang.Override
public java.util.List getInstancesList() {
return instances_;
}
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.InstanceOrBuilder>
getInstancesOrBuilderList() {
return instances_;
}
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
@java.lang.Override
public int getInstancesCount() {
return instances_.size();
}
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.Instance getInstances(int index) {
return instances_.get(index);
}
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.InstanceOuterClass.InstanceOrBuilder getInstancesOrBuilder(
int index) {
return instances_.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 more than [ListHostGroupInstancesRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupInstancesRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
@java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
}
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is more than [ListHostGroupInstancesRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupInstancesRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have 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 < instances_.size(); i++) {
output.writeMessage(1, instances_.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 < instances_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, instances_.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.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse other = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse) obj;
if (!getInstancesList()
.equals(other.getInstancesList())) 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 (getInstancesCount() > 0) {
hash = (37 * hash) + INSTANCES_FIELD_NUMBER;
hash = (53 * hash) + getInstancesList().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.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse 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.compute.v1.ListHostGroupInstancesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ListHostGroupInstancesResponse)
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupInstancesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupInstancesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getInstancesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (instancesBuilder_ == null) {
instances_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
instancesBuilder_.clear();
}
nextPageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupInstancesResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse build() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse buildPartial() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse result = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse(this);
int from_bitField0_ = bitField0_;
if (instancesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
instances_ = java.util.Collections.unmodifiableList(instances_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.instances_ = instances_;
} else {
result.instances_ = instancesBuilder_.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.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse) {
return mergeFrom((yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse other) {
if (other == yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse.getDefaultInstance()) return this;
if (instancesBuilder_ == null) {
if (!other.instances_.isEmpty()) {
if (instances_.isEmpty()) {
instances_ = other.instances_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureInstancesIsMutable();
instances_.addAll(other.instances_);
}
onChanged();
}
} else {
if (!other.instances_.isEmpty()) {
if (instancesBuilder_.isEmpty()) {
instancesBuilder_.dispose();
instancesBuilder_ = null;
instances_ = other.instances_;
bitField0_ = (bitField0_ & ~0x00000001);
instancesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getInstancesFieldBuilder() : null;
} else {
instancesBuilder_.addAllMessages(other.instances_);
}
}
}
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.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List instances_ =
java.util.Collections.emptyList();
private void ensureInstancesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
instances_ = new java.util.ArrayList(instances_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.Instance, yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.InstanceOrBuilder> instancesBuilder_;
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public java.util.List getInstancesList() {
if (instancesBuilder_ == null) {
return java.util.Collections.unmodifiableList(instances_);
} else {
return instancesBuilder_.getMessageList();
}
}
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public int getInstancesCount() {
if (instancesBuilder_ == null) {
return instances_.size();
} else {
return instancesBuilder_.getCount();
}
}
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.Instance getInstances(int index) {
if (instancesBuilder_ == null) {
return instances_.get(index);
} else {
return instancesBuilder_.getMessage(index);
}
}
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public Builder setInstances(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.Instance value) {
if (instancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInstancesIsMutable();
instances_.set(index, value);
onChanged();
} else {
instancesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public Builder setInstances(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Builder builderForValue) {
if (instancesBuilder_ == null) {
ensureInstancesIsMutable();
instances_.set(index, builderForValue.build());
onChanged();
} else {
instancesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public Builder addInstances(yandex.cloud.api.compute.v1.InstanceOuterClass.Instance value) {
if (instancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInstancesIsMutable();
instances_.add(value);
onChanged();
} else {
instancesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public Builder addInstances(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.Instance value) {
if (instancesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInstancesIsMutable();
instances_.add(index, value);
onChanged();
} else {
instancesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public Builder addInstances(
yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Builder builderForValue) {
if (instancesBuilder_ == null) {
ensureInstancesIsMutable();
instances_.add(builderForValue.build());
onChanged();
} else {
instancesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public Builder addInstances(
int index, yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Builder builderForValue) {
if (instancesBuilder_ == null) {
ensureInstancesIsMutable();
instances_.add(index, builderForValue.build());
onChanged();
} else {
instancesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public Builder addAllInstances(
java.lang.Iterable extends yandex.cloud.api.compute.v1.InstanceOuterClass.Instance> values) {
if (instancesBuilder_ == null) {
ensureInstancesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, instances_);
onChanged();
} else {
instancesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public Builder clearInstances() {
if (instancesBuilder_ == null) {
instances_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
instancesBuilder_.clear();
}
return this;
}
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public Builder removeInstances(int index) {
if (instancesBuilder_ == null) {
ensureInstancesIsMutable();
instances_.remove(index);
onChanged();
} else {
instancesBuilder_.remove(index);
}
return this;
}
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Builder getInstancesBuilder(
int index) {
return getInstancesFieldBuilder().getBuilder(index);
}
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.InstanceOrBuilder getInstancesOrBuilder(
int index) {
if (instancesBuilder_ == null) {
return instances_.get(index); } else {
return instancesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public java.util.List extends yandex.cloud.api.compute.v1.InstanceOuterClass.InstanceOrBuilder>
getInstancesOrBuilderList() {
if (instancesBuilder_ != null) {
return instancesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(instances_);
}
}
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Builder addInstancesBuilder() {
return getInstancesFieldBuilder().addBuilder(
yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.getDefaultInstance());
}
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Builder addInstancesBuilder(
int index) {
return getInstancesFieldBuilder().addBuilder(
index, yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.getDefaultInstance());
}
/**
*
* Lists instances for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Instance instances = 1;
*/
public java.util.List
getInstancesBuilderList() {
return getInstancesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.Instance, yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.InstanceOrBuilder>
getInstancesFieldBuilder() {
if (instancesBuilder_ == null) {
instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.InstanceOuterClass.Instance, yandex.cloud.api.compute.v1.InstanceOuterClass.Instance.Builder, yandex.cloud.api.compute.v1.InstanceOuterClass.InstanceOrBuilder>(
instances_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
instances_ = null;
}
return instancesBuilder_;
}
private java.lang.Object nextPageToken_ = "";
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is more than [ListHostGroupInstancesRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupInstancesRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is more than [ListHostGroupInstancesRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupInstancesRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have 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 more than [ListHostGroupInstancesRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupInstancesRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have 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 more than [ListHostGroupInstancesRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupInstancesRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have 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 more than [ListHostGroupInstancesRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupInstancesRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have 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.compute.v1.ListHostGroupInstancesResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListHostGroupInstancesResponse)
private static final yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse();
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListHostGroupInstancesResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListHostGroupInstancesResponse(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.compute.v1.HostGroupServiceOuterClass.ListHostGroupInstancesResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListHostGroupHostsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ListHostGroupHostsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the host group to list hosts for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The hostGroupId.
*/
java.lang.String getHostGroupId();
/**
*
* ID of the host group to list hosts for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for hostGroupId.
*/
com.google.protobuf.ByteString
getHostGroupIdBytes();
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListHostGroupHostsResponse.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 [ListHostGroupHostsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
java.lang.String getPageToken();
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListHostGroupHostsResponse.next_page_token]
* returned by a 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.compute.v1.ListHostGroupHostsRequest}
*/
public static final class ListHostGroupHostsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ListHostGroupHostsRequest)
ListHostGroupHostsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListHostGroupHostsRequest.newBuilder() to construct.
private ListHostGroupHostsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListHostGroupHostsRequest() {
hostGroupId_ = "";
pageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListHostGroupHostsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListHostGroupHostsRequest(
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();
hostGroupId_ = 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.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupHostsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupHostsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest.Builder.class);
}
public static final int HOST_GROUP_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object hostGroupId_;
/**
*
* ID of the host group to list hosts for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The hostGroupId.
*/
@java.lang.Override
public java.lang.String getHostGroupId() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostGroupId_ = s;
return s;
}
}
/**
*
* ID of the host group to list hosts for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for hostGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostGroupIdBytes() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostGroupId_ = 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 [ListHostGroupHostsResponse.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 [ListHostGroupHostsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
@java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
}
}
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListHostGroupHostsResponse.next_page_token]
* returned by a 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(hostGroupId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostGroupId_);
}
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(hostGroupId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostGroupId_);
}
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.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest other = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest) obj;
if (!getHostGroupId()
.equals(other.getHostGroupId())) 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) + HOST_GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getHostGroupId().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.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest 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.compute.v1.ListHostGroupHostsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ListHostGroupHostsRequest)
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupHostsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupHostsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest.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();
hostGroupId_ = "";
pageSize_ = 0L;
pageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupHostsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest build() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest buildPartial() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest result = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest(this);
result.hostGroupId_ = hostGroupId_;
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.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest other) {
if (other == yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest.getDefaultInstance()) return this;
if (!other.getHostGroupId().isEmpty()) {
hostGroupId_ = other.hostGroupId_;
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.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object hostGroupId_ = "";
/**
*
* ID of the host group to list hosts for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The hostGroupId.
*/
public java.lang.String getHostGroupId() {
java.lang.Object ref = hostGroupId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostGroupId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the host group to list hosts for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for hostGroupId.
*/
public com.google.protobuf.ByteString
getHostGroupIdBytes() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the host group to list hosts for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The hostGroupId to set.
* @return This builder for chaining.
*/
public Builder setHostGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
hostGroupId_ = value;
onChanged();
return this;
}
/**
*
* ID of the host group to list hosts for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearHostGroupId() {
hostGroupId_ = getDefaultInstance().getHostGroupId();
onChanged();
return this;
}
/**
*
* ID of the host group to list hosts for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for hostGroupId to set.
* @return This builder for chaining.
*/
public Builder setHostGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
hostGroupId_ = 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 [ListHostGroupHostsResponse.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 [ListHostGroupHostsResponse.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 [ListHostGroupHostsResponse.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 This builder for chaining.
*/
public Builder clearPageSize() {
pageSize_ = 0L;
onChanged();
return this;
}
private java.lang.Object pageToken_ = "";
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListHostGroupHostsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListHostGroupHostsResponse.next_page_token]
* returned by a 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 [ListHostGroupHostsResponse.next_page_token]
* returned by a 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 [ListHostGroupHostsResponse.next_page_token]
* returned by a 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 [ListHostGroupHostsResponse.next_page_token]
* returned by a 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.compute.v1.ListHostGroupHostsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListHostGroupHostsRequest)
private static final yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest();
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListHostGroupHostsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListHostGroupHostsRequest(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.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListHostGroupHostsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ListHostGroupHostsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
java.util.List
getHostsList();
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
yandex.cloud.api.compute.v1.HostGroupOuterClass.Host getHosts(int index);
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
int getHostsCount();
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
java.util.List extends yandex.cloud.api.compute.v1.HostGroupOuterClass.HostOrBuilder>
getHostsOrBuilderList();
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
yandex.cloud.api.compute.v1.HostGroupOuterClass.HostOrBuilder getHostsOrBuilder(
int index);
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is more than [ListHostGroupHostsRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupHostsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
java.lang.String getNextPageToken();
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is more than [ListHostGroupHostsRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupHostsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have 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.compute.v1.ListHostGroupHostsResponse}
*/
public static final class ListHostGroupHostsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ListHostGroupHostsResponse)
ListHostGroupHostsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListHostGroupHostsResponse.newBuilder() to construct.
private ListHostGroupHostsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListHostGroupHostsResponse() {
hosts_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListHostGroupHostsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListHostGroupHostsResponse(
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.compute.v1.HostGroupOuterClass.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.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupHostsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupHostsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse.Builder.class);
}
public static final int HOSTS_FIELD_NUMBER = 1;
private java.util.List hosts_;
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
@java.lang.Override
public java.util.List getHostsList() {
return hosts_;
}
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.compute.v1.HostGroupOuterClass.HostOrBuilder>
getHostsOrBuilderList() {
return hosts_;
}
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
@java.lang.Override
public int getHostsCount() {
return hosts_.size();
}
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupOuterClass.Host getHosts(int index) {
return hosts_.get(index);
}
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupOuterClass.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 more than [ListHostGroupHostsRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupHostsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
@java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
}
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is more than [ListHostGroupHostsRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupHostsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse other = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse) 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse 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.compute.v1.ListHostGroupHostsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ListHostGroupHostsResponse)
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupHostsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupHostsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse.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.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupHostsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse build() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse buildPartial() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse result = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse(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.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse) {
return mergeFrom((yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse other) {
if (other == yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse.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.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse) 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.compute.v1.HostGroupOuterClass.Host, yandex.cloud.api.compute.v1.HostGroupOuterClass.Host.Builder, yandex.cloud.api.compute.v1.HostGroupOuterClass.HostOrBuilder> hostsBuilder_;
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
public java.util.List getHostsList() {
if (hostsBuilder_ == null) {
return java.util.Collections.unmodifiableList(hosts_);
} else {
return hostsBuilder_.getMessageList();
}
}
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
public int getHostsCount() {
if (hostsBuilder_ == null) {
return hosts_.size();
} else {
return hostsBuilder_.getCount();
}
}
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
public yandex.cloud.api.compute.v1.HostGroupOuterClass.Host getHosts(int index) {
if (hostsBuilder_ == null) {
return hosts_.get(index);
} else {
return hostsBuilder_.getMessage(index);
}
}
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
public Builder setHosts(
int index, yandex.cloud.api.compute.v1.HostGroupOuterClass.Host value) {
if (hostsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHostsIsMutable();
hosts_.set(index, value);
onChanged();
} else {
hostsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
public Builder setHosts(
int index, yandex.cloud.api.compute.v1.HostGroupOuterClass.Host.Builder builderForValue) {
if (hostsBuilder_ == null) {
ensureHostsIsMutable();
hosts_.set(index, builderForValue.build());
onChanged();
} else {
hostsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
public Builder addHosts(yandex.cloud.api.compute.v1.HostGroupOuterClass.Host value) {
if (hostsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHostsIsMutable();
hosts_.add(value);
onChanged();
} else {
hostsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
public Builder addHosts(
int index, yandex.cloud.api.compute.v1.HostGroupOuterClass.Host value) {
if (hostsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHostsIsMutable();
hosts_.add(index, value);
onChanged();
} else {
hostsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
public Builder addHosts(
yandex.cloud.api.compute.v1.HostGroupOuterClass.Host.Builder builderForValue) {
if (hostsBuilder_ == null) {
ensureHostsIsMutable();
hosts_.add(builderForValue.build());
onChanged();
} else {
hostsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
public Builder addHosts(
int index, yandex.cloud.api.compute.v1.HostGroupOuterClass.Host.Builder builderForValue) {
if (hostsBuilder_ == null) {
ensureHostsIsMutable();
hosts_.add(index, builderForValue.build());
onChanged();
} else {
hostsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
public Builder addAllHosts(
java.lang.Iterable extends yandex.cloud.api.compute.v1.HostGroupOuterClass.Host> values) {
if (hostsBuilder_ == null) {
ensureHostsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, hosts_);
onChanged();
} else {
hostsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
public Builder clearHosts() {
if (hostsBuilder_ == null) {
hosts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
hostsBuilder_.clear();
}
return this;
}
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
public Builder removeHosts(int index) {
if (hostsBuilder_ == null) {
ensureHostsIsMutable();
hosts_.remove(index);
onChanged();
} else {
hostsBuilder_.remove(index);
}
return this;
}
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
public yandex.cloud.api.compute.v1.HostGroupOuterClass.Host.Builder getHostsBuilder(
int index) {
return getHostsFieldBuilder().getBuilder(index);
}
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
public yandex.cloud.api.compute.v1.HostGroupOuterClass.HostOrBuilder getHostsOrBuilder(
int index) {
if (hostsBuilder_ == null) {
return hosts_.get(index); } else {
return hostsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
public java.util.List extends yandex.cloud.api.compute.v1.HostGroupOuterClass.HostOrBuilder>
getHostsOrBuilderList() {
if (hostsBuilder_ != null) {
return hostsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(hosts_);
}
}
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
public yandex.cloud.api.compute.v1.HostGroupOuterClass.Host.Builder addHostsBuilder() {
return getHostsFieldBuilder().addBuilder(
yandex.cloud.api.compute.v1.HostGroupOuterClass.Host.getDefaultInstance());
}
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
public yandex.cloud.api.compute.v1.HostGroupOuterClass.Host.Builder addHostsBuilder(
int index) {
return getHostsFieldBuilder().addBuilder(
index, yandex.cloud.api.compute.v1.HostGroupOuterClass.Host.getDefaultInstance());
}
/**
*
* Lists hosts for the specified host group.
*
*
* repeated .yandex.cloud.compute.v1.Host hosts = 1;
*/
public java.util.List
getHostsBuilderList() {
return getHostsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.HostGroupOuterClass.Host, yandex.cloud.api.compute.v1.HostGroupOuterClass.Host.Builder, yandex.cloud.api.compute.v1.HostGroupOuterClass.HostOrBuilder>
getHostsFieldBuilder() {
if (hostsBuilder_ == null) {
hostsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.HostGroupOuterClass.Host, yandex.cloud.api.compute.v1.HostGroupOuterClass.Host.Builder, yandex.cloud.api.compute.v1.HostGroupOuterClass.HostOrBuilder>(
hosts_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
hosts_ = null;
}
return hostsBuilder_;
}
private java.lang.Object nextPageToken_ = "";
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is more than [ListHostGroupHostsRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupHostsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have its own
* [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is more than [ListHostGroupHostsRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupHostsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have 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 more than [ListHostGroupHostsRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupHostsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have 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 more than [ListHostGroupHostsRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupHostsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have 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 more than [ListHostGroupHostsRequest.page_size], use
* [next_page_token] as the value
* for the [ListHostGroupHostsRequest.page_token] query parameter
* in the next list request. Each subsequent list request will have 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.compute.v1.ListHostGroupHostsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListHostGroupHostsResponse)
private static final yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse();
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListHostGroupHostsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListHostGroupHostsResponse(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.compute.v1.HostGroupServiceOuterClass.ListHostGroupHostsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListHostGroupOperationsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ListHostGroupOperationsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the host group to list operations for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The hostGroupId.
*/
java.lang.String getHostGroupId();
/**
*
* ID of the host group to list operations for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for hostGroupId.
*/
com.google.protobuf.ByteString
getHostGroupIdBytes();
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size], the service returns a [ListHostGroupOperationsResponse.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
* [ListHostGroupOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
java.lang.String getPageToken();
/**
*
* Page token. To get the next page of results, set [page_token] to the
* [ListHostGroupOperationsResponse.next_page_token] returned by a 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.compute.v1.ListHostGroupOperationsRequest}
*/
public static final class ListHostGroupOperationsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ListHostGroupOperationsRequest)
ListHostGroupOperationsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListHostGroupOperationsRequest.newBuilder() to construct.
private ListHostGroupOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListHostGroupOperationsRequest() {
hostGroupId_ = "";
pageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListHostGroupOperationsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListHostGroupOperationsRequest(
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();
hostGroupId_ = 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.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupOperationsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupOperationsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest.Builder.class);
}
public static final int HOST_GROUP_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object hostGroupId_;
/**
*
* ID of the host group to list operations for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The hostGroupId.
*/
@java.lang.Override
public java.lang.String getHostGroupId() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostGroupId_ = s;
return s;
}
}
/**
*
* ID of the host group to list operations for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for hostGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHostGroupIdBytes() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostGroupId_ = 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 [ListHostGroupOperationsResponse.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
* [ListHostGroupOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
@java.lang.Override
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
}
}
/**
*
* Page token. To get the next page of results, set [page_token] to the
* [ListHostGroupOperationsResponse.next_page_token] returned by a 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(hostGroupId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostGroupId_);
}
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(hostGroupId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostGroupId_);
}
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.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest other = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest) obj;
if (!getHostGroupId()
.equals(other.getHostGroupId())) 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) + HOST_GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getHostGroupId().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.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest 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.compute.v1.ListHostGroupOperationsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ListHostGroupOperationsRequest)
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupOperationsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupOperationsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest.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();
hostGroupId_ = "";
pageSize_ = 0L;
pageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupOperationsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest build() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest buildPartial() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest result = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest(this);
result.hostGroupId_ = hostGroupId_;
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.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest other) {
if (other == yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest.getDefaultInstance()) return this;
if (!other.getHostGroupId().isEmpty()) {
hostGroupId_ = other.hostGroupId_;
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.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object hostGroupId_ = "";
/**
*
* ID of the host group to list operations for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The hostGroupId.
*/
public java.lang.String getHostGroupId() {
java.lang.Object ref = hostGroupId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hostGroupId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* ID of the host group to list operations for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for hostGroupId.
*/
public com.google.protobuf.ByteString
getHostGroupIdBytes() {
java.lang.Object ref = hostGroupId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hostGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the host group to list operations for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The hostGroupId to set.
* @return This builder for chaining.
*/
public Builder setHostGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
hostGroupId_ = value;
onChanged();
return this;
}
/**
*
* ID of the host group to list operations for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearHostGroupId() {
hostGroupId_ = getDefaultInstance().getHostGroupId();
onChanged();
return this;
}
/**
*
* ID of the host group to list operations for.
* To get the host group ID, use [HostGroupService.List] request.
*
*
* string host_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for hostGroupId to set.
* @return This builder for chaining.
*/
public Builder setHostGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
hostGroupId_ = 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 [ListHostGroupOperationsResponse.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 [ListHostGroupOperationsResponse.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 [ListHostGroupOperationsResponse.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 This builder for chaining.
*/
public Builder clearPageSize() {
pageSize_ = 0L;
onChanged();
return this;
}
private java.lang.Object pageToken_ = "";
/**
*
* Page token. To get the next page of results, set [page_token] to the
* [ListHostGroupOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=100"];
* @return The pageToken.
*/
public java.lang.String getPageToken() {
java.lang.Object ref = pageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Page token. To get the next page of results, set [page_token] to the
* [ListHostGroupOperationsResponse.next_page_token] returned by a 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
* [ListHostGroupOperationsResponse.next_page_token] returned by a 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
* [ListHostGroupOperationsResponse.next_page_token] returned by a 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
* [ListHostGroupOperationsResponse.next_page_token] returned by a 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.compute.v1.ListHostGroupOperationsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListHostGroupOperationsRequest)
private static final yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest();
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListHostGroupOperationsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListHostGroupOperationsRequest(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.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListHostGroupOperationsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.ListHostGroupOperationsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
java.util.List
getOperationsList();
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index);
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
int getOperationsCount();
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
java.util.List extends yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>
getOperationsOrBuilderList();
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder(
int index);
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListHostGroupOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListHostGroupOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request will have its own [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
java.lang.String getNextPageToken();
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListHostGroupOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListHostGroupOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request will have 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.compute.v1.ListHostGroupOperationsResponse}
*/
public static final class ListHostGroupOperationsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.ListHostGroupOperationsResponse)
ListHostGroupOperationsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListHostGroupOperationsResponse.newBuilder() to construct.
private ListHostGroupOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListHostGroupOperationsResponse() {
operations_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListHostGroupOperationsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListHostGroupOperationsResponse(
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.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupOperationsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupOperationsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse.Builder.class);
}
public static final int OPERATIONS_FIELD_NUMBER = 1;
private java.util.List operations_;
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public java.util.List getOperationsList() {
return operations_;
}
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>
getOperationsOrBuilderList() {
return operations_;
}
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public int getOperationsCount() {
return operations_.size();
}
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
@java.lang.Override
public yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index) {
return operations_.get(index);
}
/**
*
* List of operations for the specified host group.
*
*
* 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 [ListHostGroupOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListHostGroupOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request will have its own [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
@java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
}
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListHostGroupOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListHostGroupOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request will have 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse other = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse) 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse 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.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse 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.compute.v1.ListHostGroupOperationsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.ListHostGroupOperationsResponse)
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupOperationsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupOperationsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse.class, yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse.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.compute.v1.HostGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_ListHostGroupOperationsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse build() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse buildPartial() {
yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse result = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse(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.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse) {
return mergeFrom((yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse other) {
if (other == yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse.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.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List operations_ =
java.util.Collections.emptyList();
private void ensureOperationsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
operations_ = new java.util.ArrayList(operations_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder> operationsBuilder_;
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public java.util.List getOperationsList() {
if (operationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(operations_);
} else {
return operationsBuilder_.getMessageList();
}
}
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public int getOperationsCount() {
if (operationsBuilder_ == null) {
return operations_.size();
} else {
return operationsBuilder_.getCount();
}
}
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index) {
if (operationsBuilder_ == null) {
return operations_.get(index);
} else {
return operationsBuilder_.getMessage(index);
}
}
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder setOperations(
int index, yandex.cloud.api.operation.OperationOuterClass.Operation value) {
if (operationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOperationsIsMutable();
operations_.set(index, value);
onChanged();
} else {
operationsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder setOperations(
int index, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder builderForValue) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.set(index, builderForValue.build());
onChanged();
} else {
operationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder addOperations(yandex.cloud.api.operation.OperationOuterClass.Operation value) {
if (operationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOperationsIsMutable();
operations_.add(value);
onChanged();
} else {
operationsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder addOperations(
int index, yandex.cloud.api.operation.OperationOuterClass.Operation value) {
if (operationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOperationsIsMutable();
operations_.add(index, value);
onChanged();
} else {
operationsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder addOperations(
yandex.cloud.api.operation.OperationOuterClass.Operation.Builder builderForValue) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.add(builderForValue.build());
onChanged();
} else {
operationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder addOperations(
int index, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder builderForValue) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.add(index, builderForValue.build());
onChanged();
} else {
operationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder addAllOperations(
java.lang.Iterable extends yandex.cloud.api.operation.OperationOuterClass.Operation> values) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, operations_);
onChanged();
} else {
operationsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder clearOperations() {
if (operationsBuilder_ == null) {
operations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
operationsBuilder_.clear();
}
return this;
}
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public Builder removeOperations(int index) {
if (operationsBuilder_ == null) {
ensureOperationsIsMutable();
operations_.remove(index);
onChanged();
} else {
operationsBuilder_.remove(index);
}
return this;
}
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder getOperationsBuilder(
int index) {
return getOperationsFieldBuilder().getBuilder(index);
}
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder(
int index) {
if (operationsBuilder_ == null) {
return operations_.get(index); } else {
return operationsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public java.util.List extends yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>
getOperationsOrBuilderList() {
if (operationsBuilder_ != null) {
return operationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(operations_);
}
}
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder addOperationsBuilder() {
return getOperationsFieldBuilder().addBuilder(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance());
}
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder addOperationsBuilder(
int index) {
return getOperationsFieldBuilder().addBuilder(
index, yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance());
}
/**
*
* List of operations for the specified host group.
*
*
* repeated .yandex.cloud.operation.Operation operations = 1;
*/
public java.util.List
getOperationsBuilderList() {
return getOperationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>
getOperationsFieldBuilder() {
if (operationsBuilder_ == null) {
operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>(
operations_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
operations_ = null;
}
return operationsBuilder_;
}
private 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 [ListHostGroupOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListHostGroupOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request will have its own [next_page_token] to continue paging through the results.
*
*
* string next_page_token = 2;
* @return The nextPageToken.
*/
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListHostGroupOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListHostGroupOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request will have 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 [ListHostGroupOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListHostGroupOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request will have 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 [ListHostGroupOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListHostGroupOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request will have 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 [ListHostGroupOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListHostGroupOperationsRequest.page_token] query parameter in the next list request.
* Each subsequent list request will have 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.compute.v1.ListHostGroupOperationsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.ListHostGroupOperationsResponse)
private static final yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse();
}
public static yandex.cloud.api.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListHostGroupOperationsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListHostGroupOperationsResponse(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.compute.v1.HostGroupServiceOuterClass.ListHostGroupOperationsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_GetHostGroupRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_GetHostGroupRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_ListHostGroupsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_ListHostGroupsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_ListHostGroupsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_ListHostGroupsResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_CreateHostGroupRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_CreateHostGroupRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_CreateHostGroupRequest_LabelsEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_CreateHostGroupRequest_LabelsEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_CreateHostGroupMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_CreateHostGroupMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_UpdateHostGroupRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_UpdateHostGroupRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_UpdateHostGroupRequest_LabelsEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_UpdateHostGroupRequest_LabelsEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_UpdateHostGroupMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_UpdateHostGroupMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_DeleteHostGroupRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_DeleteHostGroupRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_DeleteHostGroupMetadata_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_DeleteHostGroupMetadata_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_ListHostGroupInstancesRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_ListHostGroupInstancesRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_ListHostGroupInstancesResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_ListHostGroupInstancesResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_ListHostGroupHostsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_ListHostGroupHostsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_ListHostGroupHostsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_ListHostGroupHostsResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_ListHostGroupOperationsRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_ListHostGroupOperationsRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_compute_v1_ListHostGroupOperationsResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_compute_v1_ListHostGroupOperationsResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n0yandex/cloud/compute/v1/host_group_ser" +
"vice.proto\022\027yandex.cloud.compute.v1\032\034goo" +
"gle/api/annotations.proto\032 google/protob" +
"uf/field_mask.proto\032 yandex/cloud/api/op" +
"eration.proto\032&yandex/cloud/compute/v1/i" +
"nstance.proto\032(yandex/cloud/compute/v1/h" +
"ost_group.proto\032&yandex/cloud/operation/" +
"operation.proto\032\035yandex/cloud/validation" +
".proto\":\n\023GetHostGroupRequest\022#\n\rhost_gr" +
"oup_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\"\257\001\n\025ListHostG" +
"roupsRequest\022\037\n\tfolder_id\030\001 \001(\tB\014\350\3071\001\212\3101" +
"\004<=50\022\035\n\tpage_size\030\002 \001(\003B\n\372\3071\006<=1000\022\035\n\n" +
"page_token\030\003 \001(\tB\t\212\3101\005<=100\022\032\n\006filter\030\004 " +
"\001(\tB\n\212\3101\006<=1000\022\033\n\010order_by\030\005 \001(\tB\t\212\3101\005<" +
"=100\"j\n\026ListHostGroupsResponse\0227\n\013host_g" +
"roups\030\001 \003(\0132\".yandex.cloud.compute.v1.Ho" +
"stGroup\022\027\n\017next_page_token\030\002 \001(\t\"\225\004\n\026Cre" +
"ateHostGroupRequest\022\037\n\tfolder_id\030\001 \001(\tB\014" +
"\350\3071\001\212\3101\004<=50\0222\n\004name\030\002 \001(\tB$\362\3071 |[a-z]([" +
"-a-z0-9]{0,61}[a-z0-9])?\022\036\n\013description\030" +
"\003 \001(\tB\t\212\3101\005<=256\022\224\001\n\006labels\030\004 \003(\0132;.yand" +
"ex.cloud.compute.v1.CreateHostGroupReque" +
"st.LabelsEntryBG\202\3101\004<=64\212\3101\004<=63\362\3071\017[-_." +
"/\\@0-9a-z]*\262\3101\006\032\0041-63\262\3101\026\022\024[a-z][-_./\\@0" +
"-9a-z]*\022\035\n\007zone_id\030\005 \001(\tB\014\350\3071\001\212\3101\004<=50\022\035" +
"\n\007type_id\030\006 \001(\tB\014\350\3071\001\212\3101\004<=50\022F\n\022mainten" +
"ance_policy\030\007 \001(\0162*.yandex.cloud.compute" +
".v1.MaintenancePolicy\022:\n\014scale_policy\030\010 " +
"\001(\0132$.yandex.cloud.compute.v1.ScalePolic" +
"y\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" +
" \001(\t:\0028\001\"0\n\027CreateHostGroupMetadata\022\025\n\rh" +
"ost_group_id\030\001 \001(\t\"\214\004\n\026UpdateHostGroupRe" +
"quest\022#\n\rhost_group_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=" +
"50\022/\n\013update_mask\030\002 \001(\0132\032.google.protobu" +
"f.FieldMask\0222\n\004name\030\003 \001(\tB$\362\3071 |[a-z]([-" +
"a-z0-9]{0,61}[a-z0-9])?\022\036\n\013description\030\004" +
" \001(\tB\t\212\3101\005<=256\022\224\001\n\006labels\030\005 \003(\0132;.yande" +
"x.cloud.compute.v1.UpdateHostGroupReques" +
"t.LabelsEntryBG\202\3101\004<=64\212\3101\004<=63\362\3071\017[-_./" +
"\\@0-9a-z]*\262\3101\006\032\0041-63\262\3101\026\022\024[a-z][-_./\\@0-" +
"9a-z]*\022F\n\022maintenance_policy\030\006 \001(\0162*.yan" +
"dex.cloud.compute.v1.MaintenancePolicy\022:" +
"\n\014scale_policy\030\007 \001(\0132$.yandex.cloud.comp" +
"ute.v1.ScalePolicy\032-\n\013LabelsEntry\022\013\n\003key" +
"\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"0\n\027UpdateHostG" +
"roupMetadata\022\025\n\rhost_group_id\030\001 \001(\t\"=\n\026D" +
"eleteHostGroupRequest\022#\n\rhost_group_id\030\001" +
" \001(\tB\014\350\3071\001\212\3101\004<=50\"0\n\027DeleteHostGroupMet" +
"adata\022\025\n\rhost_group_id\030\001 \001(\t\"\236\001\n\035ListHos" +
"tGroupInstancesRequest\022#\n\rhost_group_id\030" +
"\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022\035\n\tpage_size\030\002 \001(\003B\n" +
"\372\3071\006<=1000\022\035\n\npage_token\030\003 \001(\tB\t\212\3101\005<=10" +
"0\022\032\n\006filter\030\004 \001(\tB\n\212\3101\006<=1000\"o\n\036ListHos" +
"tGroupInstancesResponse\0224\n\tinstances\030\001 \003" +
"(\0132!.yandex.cloud.compute.v1.Instance\022\027\n" +
"\017next_page_token\030\002 \001(\t\"~\n\031ListHostGroupH" +
"ostsRequest\022#\n\rhost_group_id\030\001 \001(\tB\014\350\3071\001" +
"\212\3101\004<=50\022\035\n\tpage_size\030\002 \001(\003B\n\372\3071\006<=1000\022" +
"\035\n\npage_token\030\003 \001(\tB\t\212\3101\005<=100\"c\n\032ListHo" +
"stGroupHostsResponse\022,\n\005hosts\030\001 \003(\0132\035.ya" +
"ndex.cloud.compute.v1.Host\022\027\n\017next_page_" +
"token\030\002 \001(\t\"\203\001\n\036ListHostGroupOperationsR" +
"equest\022#\n\rhost_group_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<" +
"=50\022\035\n\tpage_size\030\002 \001(\003B\n\372\3071\006<=1000\022\035\n\npa" +
"ge_token\030\003 \001(\tB\t\212\3101\005<=100\"q\n\037ListHostGro" +
"upOperationsResponse\0225\n\noperations\030\001 \003(\013" +
"2!.yandex.cloud.operation.Operation\022\027\n\017n" +
"ext_page_token\030\002 \001(\t2\370\n\n\020HostGroupServic" +
"e\022\207\001\n\003Get\022,.yandex.cloud.compute.v1.GetH" +
"ostGroupRequest\032\".yandex.cloud.compute.v" +
"1.HostGroup\".\202\323\344\223\002(\022&/compute/v1/hostGro" +
"ups/{host_group_id}\022\207\001\n\004List\022..yandex.cl" +
"oud.compute.v1.ListHostGroupsRequest\032/.y" +
"andex.cloud.compute.v1.ListHostGroupsRes" +
"ponse\"\036\202\323\344\223\002\030\022\026/compute/v1/hostGroups\022\247\001" +
"\n\006Create\022/.yandex.cloud.compute.v1.Creat" +
"eHostGroupRequest\032!.yandex.cloud.operati" +
"on.Operation\"I\202\323\344\223\002\033\"\026/compute/v1/hostGr" +
"oups:\001*\262\322*$\n\027CreateHostGroupMetadata\022\tHo" +
"stGroup\022\267\001\n\006Update\022/.yandex.cloud.comput" +
"e.v1.UpdateHostGroupRequest\032!.yandex.clo" +
"ud.operation.Operation\"Y\202\323\344\223\002+2&/compute" +
"/v1/hostGroups/{host_group_id}:\001*\262\322*$\n\027U" +
"pdateHostGroupMetadata\022\tHostGroup\022\300\001\n\006De" +
"lete\022/.yandex.cloud.compute.v1.DeleteHos" +
"tGroupRequest\032!.yandex.cloud.operation.O" +
"peration\"b\202\323\344\223\002(*&/compute/v1/hostGroups" +
"/{host_group_id}\262\322*0\n\027DeleteHostGroupMet" +
"adata\022\025google.protobuf.Empty\022\276\001\n\016ListOpe" +
"rations\0227.yandex.cloud.compute.v1.ListHo" +
"stGroupOperationsRequest\0328.yandex.cloud." +
"compute.v1.ListHostGroupOperationsRespon" +
"se\"9\202\323\344\223\0023\0221/compute/v1/hostGroups/{host" +
"_group_id}/operations\022\272\001\n\rListInstances\022" +
"6.yandex.cloud.compute.v1.ListHostGroupI" +
"nstancesRequest\0327.yandex.cloud.compute.v" +
"1.ListHostGroupInstancesResponse\"8\202\323\344\223\0022" +
"\0220/compute/v1/hostGroups/{host_group_id}" +
"/instances\022\252\001\n\tListHosts\0222.yandex.cloud." +
"compute.v1.ListHostGroupHostsRequest\0323.y" +
"andex.cloud.compute.v1.ListHostGroupHost" +
"sResponse\"4\202\323\344\223\002.\022,/compute/v1/hostGroup" +
"s/{host_group_id}/hostsBb\n\033yandex.cloud." +
"api.compute.v1ZCgithub.com/yandex-cloud/" +
"go-genproto/yandex/cloud/compute/v1;comp" +
"uteb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.api.AnnotationsProto.getDescriptor(),
com.google.protobuf.FieldMaskProto.getDescriptor(),
yandex.cloud.api.OperationOuterClass.getDescriptor(),
yandex.cloud.api.compute.v1.InstanceOuterClass.getDescriptor(),
yandex.cloud.api.compute.v1.HostGroupOuterClass.getDescriptor(),
yandex.cloud.api.operation.OperationOuterClass.getDescriptor(),
yandex.cloud.api.Validation.getDescriptor(),
});
internal_static_yandex_cloud_compute_v1_GetHostGroupRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_compute_v1_GetHostGroupRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_GetHostGroupRequest_descriptor,
new java.lang.String[] { "HostGroupId", });
internal_static_yandex_cloud_compute_v1_ListHostGroupsRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yandex_cloud_compute_v1_ListHostGroupsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_ListHostGroupsRequest_descriptor,
new java.lang.String[] { "FolderId", "PageSize", "PageToken", "Filter", "OrderBy", });
internal_static_yandex_cloud_compute_v1_ListHostGroupsResponse_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_yandex_cloud_compute_v1_ListHostGroupsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_ListHostGroupsResponse_descriptor,
new java.lang.String[] { "HostGroups", "NextPageToken", });
internal_static_yandex_cloud_compute_v1_CreateHostGroupRequest_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_yandex_cloud_compute_v1_CreateHostGroupRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_CreateHostGroupRequest_descriptor,
new java.lang.String[] { "FolderId", "Name", "Description", "Labels", "ZoneId", "TypeId", "MaintenancePolicy", "ScalePolicy", });
internal_static_yandex_cloud_compute_v1_CreateHostGroupRequest_LabelsEntry_descriptor =
internal_static_yandex_cloud_compute_v1_CreateHostGroupRequest_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_compute_v1_CreateHostGroupRequest_LabelsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_CreateHostGroupRequest_LabelsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_yandex_cloud_compute_v1_CreateHostGroupMetadata_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_yandex_cloud_compute_v1_CreateHostGroupMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_CreateHostGroupMetadata_descriptor,
new java.lang.String[] { "HostGroupId", });
internal_static_yandex_cloud_compute_v1_UpdateHostGroupRequest_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_yandex_cloud_compute_v1_UpdateHostGroupRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_UpdateHostGroupRequest_descriptor,
new java.lang.String[] { "HostGroupId", "UpdateMask", "Name", "Description", "Labels", "MaintenancePolicy", "ScalePolicy", });
internal_static_yandex_cloud_compute_v1_UpdateHostGroupRequest_LabelsEntry_descriptor =
internal_static_yandex_cloud_compute_v1_UpdateHostGroupRequest_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_compute_v1_UpdateHostGroupRequest_LabelsEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_UpdateHostGroupRequest_LabelsEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_yandex_cloud_compute_v1_UpdateHostGroupMetadata_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_yandex_cloud_compute_v1_UpdateHostGroupMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_UpdateHostGroupMetadata_descriptor,
new java.lang.String[] { "HostGroupId", });
internal_static_yandex_cloud_compute_v1_DeleteHostGroupRequest_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_yandex_cloud_compute_v1_DeleteHostGroupRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_DeleteHostGroupRequest_descriptor,
new java.lang.String[] { "HostGroupId", });
internal_static_yandex_cloud_compute_v1_DeleteHostGroupMetadata_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_yandex_cloud_compute_v1_DeleteHostGroupMetadata_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_DeleteHostGroupMetadata_descriptor,
new java.lang.String[] { "HostGroupId", });
internal_static_yandex_cloud_compute_v1_ListHostGroupInstancesRequest_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_yandex_cloud_compute_v1_ListHostGroupInstancesRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_ListHostGroupInstancesRequest_descriptor,
new java.lang.String[] { "HostGroupId", "PageSize", "PageToken", "Filter", });
internal_static_yandex_cloud_compute_v1_ListHostGroupInstancesResponse_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_yandex_cloud_compute_v1_ListHostGroupInstancesResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_ListHostGroupInstancesResponse_descriptor,
new java.lang.String[] { "Instances", "NextPageToken", });
internal_static_yandex_cloud_compute_v1_ListHostGroupHostsRequest_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_yandex_cloud_compute_v1_ListHostGroupHostsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_ListHostGroupHostsRequest_descriptor,
new java.lang.String[] { "HostGroupId", "PageSize", "PageToken", });
internal_static_yandex_cloud_compute_v1_ListHostGroupHostsResponse_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_yandex_cloud_compute_v1_ListHostGroupHostsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_ListHostGroupHostsResponse_descriptor,
new java.lang.String[] { "Hosts", "NextPageToken", });
internal_static_yandex_cloud_compute_v1_ListHostGroupOperationsRequest_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_yandex_cloud_compute_v1_ListHostGroupOperationsRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_ListHostGroupOperationsRequest_descriptor,
new java.lang.String[] { "HostGroupId", "PageSize", "PageToken", });
internal_static_yandex_cloud_compute_v1_ListHostGroupOperationsResponse_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_yandex_cloud_compute_v1_ListHostGroupOperationsResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_compute_v1_ListHostGroupOperationsResponse_descriptor,
new java.lang.String[] { "Operations", "NextPageToken", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.AnnotationsProto.http);
registry.add(yandex.cloud.api.OperationOuterClass.operation);
registry.add(yandex.cloud.api.Validation.length);
registry.add(yandex.cloud.api.Validation.mapKey);
registry.add(yandex.cloud.api.Validation.pattern);
registry.add(yandex.cloud.api.Validation.required);
registry.add(yandex.cloud.api.Validation.size);
registry.add(yandex.cloud.api.Validation.value);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.api.AnnotationsProto.getDescriptor();
com.google.protobuf.FieldMaskProto.getDescriptor();
yandex.cloud.api.OperationOuterClass.getDescriptor();
yandex.cloud.api.compute.v1.InstanceOuterClass.getDescriptor();
yandex.cloud.api.compute.v1.HostGroupOuterClass.getDescriptor();
yandex.cloud.api.operation.OperationOuterClass.getDescriptor();
yandex.cloud.api.Validation.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy