Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* Doesn't include the metadata of the instance template in the server response.
*
*
* BASIC = 0;
*/
public static final int BASIC_VALUE = 0;
/**
*
* Returns the metadata of the instance template in the server response.
*
*
* FULL = 1;
*/
public static final int FULL_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static InstanceGroupView valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static InstanceGroupView forNumber(int value) {
switch (value) {
case 0: return BASIC;
case 1: return FULL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
InstanceGroupView> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public InstanceGroupView findValueByNumber(int number) {
return InstanceGroupView.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final InstanceGroupView[] VALUES = values();
public static InstanceGroupView valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private InstanceGroupView(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.compute.v1.instancegroup.InstanceGroupView)
}
public interface ResumeInstanceGroupProcessesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ResumeInstanceGroupProcessesRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the instance group to resume processes in.
* The instance group must have a `PAUSED` status ([InstanceGroup.status]).
* To get the instance group ID, make a [InstanceGroupService.List] request.
*
* ID of the instance group to resume processes in.
* The instance group must have a `PAUSED` status ([InstanceGroup.status]).
* To get the instance group ID, make a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceGroupId.
*/
com.google.protobuf.ByteString
getInstanceGroupIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.instancegroup.ResumeInstanceGroupProcessesRequest}
*/
public static final class ResumeInstanceGroupProcessesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ResumeInstanceGroupProcessesRequest)
ResumeInstanceGroupProcessesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ResumeInstanceGroupProcessesRequest.newBuilder() to construct.
private ResumeInstanceGroupProcessesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ResumeInstanceGroupProcessesRequest() {
instanceGroupId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ResumeInstanceGroupProcessesRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResumeInstanceGroupProcessesRequest(
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();
instanceGroupId_ = 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest.Builder.class);
}
public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceGroupId_;
/**
*
* ID of the instance group to resume processes in.
* The instance group must have a `PAUSED` status ([InstanceGroup.status]).
* To get the instance group ID, make a [InstanceGroupService.List] request.
*
* ID of the instance group to resume processes in.
* The instance group must have a `PAUSED` status ([InstanceGroup.status]).
* To get the instance group ID, make a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceGroupIdBytes() {
java.lang.Object ref = instanceGroupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceGroupId_ = 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(instanceGroupId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_);
}
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(instanceGroupId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_);
}
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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest) obj;
if (!getInstanceGroupId()
.equals(other.getInstanceGroupId())) 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) + INSTANCE_GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceGroupId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest 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.instancegroup.ResumeInstanceGroupProcessesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ResumeInstanceGroupProcessesRequest)
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest.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();
instanceGroupId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ResumeInstanceGroupProcessesRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest build() {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest buildPartial() {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest(this);
result.instanceGroupId_ = instanceGroupId_;
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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest other) {
if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest.getDefaultInstance()) return this;
if (!other.getInstanceGroupId().isEmpty()) {
instanceGroupId_ = other.instanceGroupId_;
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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object instanceGroupId_ = "";
/**
*
* ID of the instance group to resume processes in.
* The instance group must have a `PAUSED` status ([InstanceGroup.status]).
* To get the instance group ID, make a [InstanceGroupService.List] request.
*
* ID of the instance group to resume processes in.
* The instance group must have a `PAUSED` status ([InstanceGroup.status]).
* To get the instance group ID, make a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceGroupId.
*/
public com.google.protobuf.ByteString
getInstanceGroupIdBytes() {
java.lang.Object ref = instanceGroupId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the instance group to resume processes in.
* The instance group must have a `PAUSED` status ([InstanceGroup.status]).
* To get the instance group ID, make a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"];
* @param value The instanceGroupId to set.
* @return This builder for chaining.
*/
public Builder setInstanceGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceGroupId_ = value;
onChanged();
return this;
}
/**
*
* ID of the instance group to resume processes in.
* The instance group must have a `PAUSED` status ([InstanceGroup.status]).
* To get the instance group ID, make a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearInstanceGroupId() {
instanceGroupId_ = getDefaultInstance().getInstanceGroupId();
onChanged();
return this;
}
/**
*
* ID of the instance group to resume processes in.
* The instance group must have a `PAUSED` status ([InstanceGroup.status]).
* To get the instance group ID, make a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"];
* @param value The bytes for instanceGroupId to set.
* @return This builder for chaining.
*/
public Builder setInstanceGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceGroupId_ = 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.instancegroup.ResumeInstanceGroupProcessesRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ResumeInstanceGroupProcessesRequest)
private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest();
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResumeInstanceGroupProcessesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResumeInstanceGroupProcessesRequest(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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResumeInstanceGroupProcessMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ResumeInstanceGroupProcessMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the instance group that processes are being resumed in.
*
* ID of the instance group that processes are being resumed in.
*
*
* string instance_group_id = 1;
* @return The bytes for instanceGroupId.
*/
public com.google.protobuf.ByteString
getInstanceGroupIdBytes() {
java.lang.Object ref = instanceGroupId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the instance group that processes are being resumed in.
*
*
* string instance_group_id = 1;
* @param value The instanceGroupId to set.
* @return This builder for chaining.
*/
public Builder setInstanceGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceGroupId_ = value;
onChanged();
return this;
}
/**
*
* ID of the instance group that processes are being resumed in.
*
*
* string instance_group_id = 1;
* @return This builder for chaining.
*/
public Builder clearInstanceGroupId() {
instanceGroupId_ = getDefaultInstance().getInstanceGroupId();
onChanged();
return this;
}
/**
*
* ID of the instance group that processes are being resumed in.
*
*
* string instance_group_id = 1;
* @param value The bytes for instanceGroupId to set.
* @return This builder for chaining.
*/
public Builder setInstanceGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceGroupId_ = 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.instancegroup.ResumeInstanceGroupProcessMetadata)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ResumeInstanceGroupProcessMetadata)
private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata();
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResumeInstanceGroupProcessMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResumeInstanceGroupProcessMetadata(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.instancegroup.InstanceGroupServiceOuterClass.ResumeInstanceGroupProcessMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PauseInstanceGroupProcessesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.PauseInstanceGroupProcessesRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the instance group to pause processes in.
* The instance group must have an `ACTIVE` status ([InstanceGroup.status]).
* To get the instance group ID, make a [InstanceGroupService.List] request.
*
* ID of the instance group to pause processes in.
* The instance group must have an `ACTIVE` status ([InstanceGroup.status]).
* To get the instance group ID, make a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceGroupId.
*/
com.google.protobuf.ByteString
getInstanceGroupIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.instancegroup.PauseInstanceGroupProcessesRequest}
*/
public static final class PauseInstanceGroupProcessesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.PauseInstanceGroupProcessesRequest)
PauseInstanceGroupProcessesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use PauseInstanceGroupProcessesRequest.newBuilder() to construct.
private PauseInstanceGroupProcessesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PauseInstanceGroupProcessesRequest() {
instanceGroupId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PauseInstanceGroupProcessesRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PauseInstanceGroupProcessesRequest(
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();
instanceGroupId_ = 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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest.Builder.class);
}
public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceGroupId_;
/**
*
* ID of the instance group to pause processes in.
* The instance group must have an `ACTIVE` status ([InstanceGroup.status]).
* To get the instance group ID, make a [InstanceGroupService.List] request.
*
* ID of the instance group to pause processes in.
* The instance group must have an `ACTIVE` status ([InstanceGroup.status]).
* To get the instance group ID, make a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceGroupIdBytes() {
java.lang.Object ref = instanceGroupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceGroupId_ = 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(instanceGroupId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_);
}
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(instanceGroupId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_);
}
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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest) obj;
if (!getInstanceGroupId()
.equals(other.getInstanceGroupId())) 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) + INSTANCE_GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceGroupId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest 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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest 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.instancegroup.PauseInstanceGroupProcessesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.PauseInstanceGroupProcessesRequest)
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest.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();
instanceGroupId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_PauseInstanceGroupProcessesRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest build() {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest buildPartial() {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest(this);
result.instanceGroupId_ = instanceGroupId_;
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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest other) {
if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest.getDefaultInstance()) return this;
if (!other.getInstanceGroupId().isEmpty()) {
instanceGroupId_ = other.instanceGroupId_;
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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object instanceGroupId_ = "";
/**
*
* ID of the instance group to pause processes in.
* The instance group must have an `ACTIVE` status ([InstanceGroup.status]).
* To get the instance group ID, make a [InstanceGroupService.List] request.
*
* ID of the instance group to pause processes in.
* The instance group must have an `ACTIVE` status ([InstanceGroup.status]).
* To get the instance group ID, make a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceGroupId.
*/
public com.google.protobuf.ByteString
getInstanceGroupIdBytes() {
java.lang.Object ref = instanceGroupId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the instance group to pause processes in.
* The instance group must have an `ACTIVE` status ([InstanceGroup.status]).
* To get the instance group ID, make a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"];
* @param value The instanceGroupId to set.
* @return This builder for chaining.
*/
public Builder setInstanceGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceGroupId_ = value;
onChanged();
return this;
}
/**
*
* ID of the instance group to pause processes in.
* The instance group must have an `ACTIVE` status ([InstanceGroup.status]).
* To get the instance group ID, make a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"];
* @return This builder for chaining.
*/
public Builder clearInstanceGroupId() {
instanceGroupId_ = getDefaultInstance().getInstanceGroupId();
onChanged();
return this;
}
/**
*
* ID of the instance group to pause processes in.
* The instance group must have an `ACTIVE` status ([InstanceGroup.status]).
* To get the instance group ID, make a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.length) = "<=50"];
* @param value The bytes for instanceGroupId to set.
* @return This builder for chaining.
*/
public Builder setInstanceGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceGroupId_ = 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.instancegroup.PauseInstanceGroupProcessesRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.PauseInstanceGroupProcessesRequest)
private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest();
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PauseInstanceGroupProcessesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PauseInstanceGroupProcessesRequest(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.instancegroup.InstanceGroupServiceOuterClass.PauseInstanceGroupProcessesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PauseInstanceGroupProcessMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.PauseInstanceGroupProcessMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the instance group that processes are being paused in.
*
* Defines which information about the Instance template should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 2;
* @return The enum numeric value on the wire for view.
*/
int getViewValue();
/**
*
* Defines which information about the Instance template should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 2;
* @return The view.
*/
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView getView();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.instancegroup.GetInstanceGroupRequest}
*/
public static final class GetInstanceGroupRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.GetInstanceGroupRequest)
GetInstanceGroupRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetInstanceGroupRequest.newBuilder() to construct.
private GetInstanceGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetInstanceGroupRequest() {
instanceGroupId_ = "";
view_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetInstanceGroupRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetInstanceGroupRequest(
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();
instanceGroupId_ = s;
break;
}
case 16: {
int rawValue = input.readEnum();
view_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_GetInstanceGroupRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_GetInstanceGroupRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest.Builder.class);
}
public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceGroupId_;
/**
*
* ID of the InstanceGroup resource to return.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
* ID of the InstanceGroup resource to return.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceGroupIdBytes() {
java.lang.Object ref = instanceGroupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VIEW_FIELD_NUMBER = 2;
private int view_;
/**
*
* Defines which information about the Instance template should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 2;
* @return The enum numeric value on the wire for view.
*/
@java.lang.Override public int getViewValue() {
return view_;
}
/**
*
* Defines which information about the Instance template should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 2;
* @return The view.
*/
@java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView getView() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView.valueOf(view_);
return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_);
}
if (view_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView.BASIC.getNumber()) {
output.writeEnum(2, view_);
}
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(instanceGroupId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_);
}
if (view_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView.BASIC.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, view_);
}
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.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest) obj;
if (!getInstanceGroupId()
.equals(other.getInstanceGroupId())) return false;
if (view_ != other.view_) 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) + INSTANCE_GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceGroupId().hashCode();
hash = (37 * hash) + VIEW_FIELD_NUMBER;
hash = (53 * hash) + view_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest 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.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest 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.instancegroup.GetInstanceGroupRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.GetInstanceGroupRequest)
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_GetInstanceGroupRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_GetInstanceGroupRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest.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();
instanceGroupId_ = "";
view_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_GetInstanceGroupRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest build() {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest buildPartial() {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest(this);
result.instanceGroupId_ = instanceGroupId_;
result.view_ = view_;
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.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest other) {
if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest.getDefaultInstance()) return this;
if (!other.getInstanceGroupId().isEmpty()) {
instanceGroupId_ = other.instanceGroupId_;
onChanged();
}
if (other.view_ != 0) {
setViewValue(other.getViewValue());
}
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.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object instanceGroupId_ = "";
/**
*
* ID of the InstanceGroup resource to return.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
* ID of the InstanceGroup resource to return.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for instanceGroupId to set.
* @return This builder for chaining.
*/
public Builder setInstanceGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceGroupId_ = value;
onChanged();
return this;
}
private int view_ = 0;
/**
*
* Defines which information about the Instance template should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 2;
* @return The enum numeric value on the wire for view.
*/
@java.lang.Override public int getViewValue() {
return view_;
}
/**
*
* Defines which information about the Instance template should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 2;
* @param value The enum numeric value on the wire for view to set.
* @return This builder for chaining.
*/
public Builder setViewValue(int value) {
view_ = value;
onChanged();
return this;
}
/**
*
* Defines which information about the Instance template should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 2;
* @return The view.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView getView() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView.valueOf(view_);
return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView.UNRECOGNIZED : result;
}
/**
*
* Defines which information about the Instance template should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 2;
* @param value The view to set.
* @return This builder for chaining.
*/
public Builder setView(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView value) {
if (value == null) {
throw new NullPointerException();
}
view_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Defines which information about the Instance template should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 2;
* @return This builder for chaining.
*/
public Builder clearView() {
view_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.instancegroup.GetInstanceGroupRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.GetInstanceGroupRequest)
private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest();
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetInstanceGroupRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetInstanceGroupRequest(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.instancegroup.InstanceGroupServiceOuterClass.GetInstanceGroupRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateInstanceGroupRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.CreateInstanceGroupRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the folder to create an instance group in.
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
* Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
* (OSI model layer 3).
* If specified, a Network Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
*
* .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 10;
* @return Whether the loadBalancerSpec field is set.
*/
boolean hasLoadBalancerSpec();
/**
*
* Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
* (OSI model layer 3).
* If specified, a Network Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
* Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
* (OSI model layer 3).
* If specified, a Network Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
* ID of the service account. The service account will be used for all API calls
* made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
* ID of the service account. The service account will be used for all API calls
* made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
* Flag prohibiting deletion of the instance group.
* Allowed values:</br>- `false`: The instance group can be deleted.</br>- `true`: The instance group cannot be deleted.
* The default is `false`.
*
* Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
* (OSI model layer 7).
* If specified, an Application Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
*
* .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 15;
* @return Whether the applicationLoadBalancerSpec field is set.
*/
boolean hasApplicationLoadBalancerSpec();
/**
*
* Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
* (OSI model layer 7).
* If specified, an Application Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
* Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
* (OSI model layer 7).
* If specified, an Application Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
*
* .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 15;
*/
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpecOrBuilder getApplicationLoadBalancerSpecOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.instancegroup.CreateInstanceGroupRequest}
*/
public static final class CreateInstanceGroupRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.CreateInstanceGroupRequest)
CreateInstanceGroupRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateInstanceGroupRequest.newBuilder() to construct.
private CreateInstanceGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateInstanceGroupRequest() {
folderId_ = "";
name_ = "";
description_ = "";
serviceAccountId_ = "";
variables_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateInstanceGroupRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateInstanceGroupRequest(
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 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 50: {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.Builder subBuilder = null;
if (instanceTemplate_ != null) {
subBuilder = instanceTemplate_.toBuilder();
}
instanceTemplate_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceTemplate.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(instanceTemplate_);
instanceTemplate_ = subBuilder.buildPartial();
}
break;
}
case 58: {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.Builder subBuilder = null;
if (scalePolicy_ != null) {
subBuilder = scalePolicy_.toBuilder();
}
scalePolicy_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ScalePolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(scalePolicy_);
scalePolicy_ = subBuilder.buildPartial();
}
break;
}
case 66: {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.Builder subBuilder = null;
if (deployPolicy_ != null) {
subBuilder = deployPolicy_.toBuilder();
}
deployPolicy_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.DeployPolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(deployPolicy_);
deployPolicy_ = subBuilder.buildPartial();
}
break;
}
case 74: {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.Builder subBuilder = null;
if (allocationPolicy_ != null) {
subBuilder = allocationPolicy_.toBuilder();
}
allocationPolicy_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(allocationPolicy_);
allocationPolicy_ = subBuilder.buildPartial();
}
break;
}
case 82: {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.Builder subBuilder = null;
if (loadBalancerSpec_ != null) {
subBuilder = loadBalancerSpec_.toBuilder();
}
loadBalancerSpec_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(loadBalancerSpec_);
loadBalancerSpec_ = subBuilder.buildPartial();
}
break;
}
case 90: {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.Builder subBuilder = null;
if (healthChecksSpec_ != null) {
subBuilder = healthChecksSpec_.toBuilder();
}
healthChecksSpec_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(healthChecksSpec_);
healthChecksSpec_ = subBuilder.buildPartial();
}
break;
}
case 98: {
java.lang.String s = input.readStringRequireUtf8();
serviceAccountId_ = s;
break;
}
case 106: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
variables_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
variables_.add(
input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable.parser(), extensionRegistry));
break;
}
case 112: {
deletionProtection_ = input.readBool();
break;
}
case 122: {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.Builder subBuilder = null;
if (applicationLoadBalancerSpec_ != null) {
subBuilder = applicationLoadBalancerSpec_.toBuilder();
}
applicationLoadBalancerSpec_ = input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(applicationLoadBalancerSpec_);
applicationLoadBalancerSpec_ = 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 {
if (((mutable_bitField0_ & 0x00000002) != 0)) {
variables_ = java.util.Collections.unmodifiableList(variables_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupRequest_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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_CreateInstanceGroupRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest.Builder.class);
}
public static final int FOLDER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder to create an instance group in.
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
* Allocation policy of the instance group by zones and regions.
*
*
* .yandex.cloud.compute.v1.instancegroup.AllocationPolicy allocation_policy = 9 [(.yandex.cloud.required) = true];
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.AllocationPolicyOrBuilder getAllocationPolicyOrBuilder() {
return getAllocationPolicy();
}
public static final int LOAD_BALANCER_SPEC_FIELD_NUMBER = 10;
private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec loadBalancerSpec_;
/**
*
* Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
* (OSI model layer 3).
* If specified, a Network Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
*
* .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 10;
* @return Whether the loadBalancerSpec field is set.
*/
@java.lang.Override
public boolean hasLoadBalancerSpec() {
return loadBalancerSpec_ != null;
}
/**
*
* Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
* (OSI model layer 3).
* If specified, a Network Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
* Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
* (OSI model layer 3).
* If specified, a Network Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
*
* .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 10;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpecOrBuilder getLoadBalancerSpecOrBuilder() {
return getLoadBalancerSpec();
}
public static final int HEALTH_CHECKS_SPEC_FIELD_NUMBER = 11;
private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpec healthChecksSpec_;
/**
*
* Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
*
*
* .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11;
* @return Whether the healthChecksSpec field is set.
*/
@java.lang.Override
public boolean hasHealthChecksSpec() {
return healthChecksSpec_ != null;
}
/**
*
* Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
*
* Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
*
*
* .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpecOrBuilder getHealthChecksSpecOrBuilder() {
return getHealthChecksSpec();
}
public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 12;
private volatile java.lang.Object serviceAccountId_;
/**
*
* ID of the service account. The service account will be used for all API calls
* made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
* ID of the service account. The service account will be used for all API calls
* made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 12;
* @return The bytes for serviceAccountId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VARIABLES_FIELD_NUMBER = 13;
private java.util.List variables_;
/**
* repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13;
*/
@java.lang.Override
public java.util.List getVariablesList() {
return variables_;
}
/**
* repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13;
*/
@java.lang.Override
public java.util.List extends yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.VariableOrBuilder>
getVariablesOrBuilderList() {
return variables_;
}
/**
* repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13;
*/
@java.lang.Override
public int getVariablesCount() {
return variables_.size();
}
/**
* repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.Variable getVariables(int index) {
return variables_.get(index);
}
/**
* repeated .yandex.cloud.compute.v1.instancegroup.Variable variables = 13;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.VariableOrBuilder getVariablesOrBuilder(
int index) {
return variables_.get(index);
}
public static final int DELETION_PROTECTION_FIELD_NUMBER = 14;
private boolean deletionProtection_;
/**
*
* Flag prohibiting deletion of the instance group.
* Allowed values:</br>- `false`: The instance group can be deleted.</br>- `true`: The instance group cannot be deleted.
* The default is `false`.
*
*
* bool deletion_protection = 14;
* @return The deletionProtection.
*/
@java.lang.Override
public boolean getDeletionProtection() {
return deletionProtection_;
}
public static final int APPLICATION_LOAD_BALANCER_SPEC_FIELD_NUMBER = 15;
private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec applicationLoadBalancerSpec_;
/**
*
* Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
* (OSI model layer 7).
* If specified, an Application Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
*
* .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 15;
* @return Whether the applicationLoadBalancerSpec field is set.
*/
@java.lang.Override
public boolean hasApplicationLoadBalancerSpec() {
return applicationLoadBalancerSpec_ != null;
}
/**
*
* Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
* (OSI model layer 7).
* If specified, an Application Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
* Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
* (OSI model layer 7).
* If specified, an Application Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance 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 instance 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 instance 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 instance 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_ = "";
/**
*
* Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
* (OSI model layer 3).
* If specified, a Network Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
*
* .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 10;
* @return Whether the loadBalancerSpec field is set.
*/
public boolean hasLoadBalancerSpec() {
return loadBalancerSpecBuilder_ != null || loadBalancerSpec_ != null;
}
/**
*
* Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
* (OSI model layer 3).
* If specified, a Network Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
* Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
* (OSI model layer 3).
* If specified, a Network Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
*
* .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 10;
*/
public Builder setLoadBalancerSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec value) {
if (loadBalancerSpecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
loadBalancerSpec_ = value;
onChanged();
} else {
loadBalancerSpecBuilder_.setMessage(value);
}
return this;
}
/**
*
* Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
* (OSI model layer 3).
* If specified, a Network Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
* Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
* (OSI model layer 3).
* If specified, a Network Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
* Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
* (OSI model layer 3).
* If specified, a Network Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
* Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
* (OSI model layer 3).
* If specified, a Network Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
* Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
* (OSI model layer 3).
* If specified, a Network Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
* Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
* (OSI model layer 3).
* If specified, a Network Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
* ID of the service account. The service account will be used for all API calls
* made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
* ID of the service account. The service account will be used for all API calls
* made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 12;
* @return The bytes for serviceAccountId.
*/
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the service account. The service account will be used for all API calls
* made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 12;
* @param value The serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceAccountId_ = value;
onChanged();
return this;
}
/**
*
* ID of the service account. The service account will be used for all API calls
* made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 12;
* @return This builder for chaining.
*/
public Builder clearServiceAccountId() {
serviceAccountId_ = getDefaultInstance().getServiceAccountId();
onChanged();
return this;
}
/**
*
* ID of the service account. The service account will be used for all API calls
* made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
* Flag prohibiting deletion of the instance group.
* Allowed values:</br>- `false`: The instance group can be deleted.</br>- `true`: The instance group cannot be deleted.
* The default is `false`.
*
* Flag prohibiting deletion of the instance group.
* Allowed values:</br>- `false`: The instance group can be deleted.</br>- `true`: The instance group cannot be deleted.
* The default is `false`.
*
*
* bool deletion_protection = 14;
* @param value The deletionProtection to set.
* @return This builder for chaining.
*/
public Builder setDeletionProtection(boolean value) {
deletionProtection_ = value;
onChanged();
return this;
}
/**
*
* Flag prohibiting deletion of the instance group.
* Allowed values:</br>- `false`: The instance group can be deleted.</br>- `true`: The instance group cannot be deleted.
* The default is `false`.
*
* Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
* (OSI model layer 7).
* If specified, an Application Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
*
* .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 15;
* @return Whether the applicationLoadBalancerSpec field is set.
*/
public boolean hasApplicationLoadBalancerSpec() {
return applicationLoadBalancerSpecBuilder_ != null || applicationLoadBalancerSpec_ != null;
}
/**
*
* Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
* (OSI model layer 7).
* If specified, an Application Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
* Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
* (OSI model layer 7).
* If specified, an Application Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
*
* .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 15;
*/
public Builder setApplicationLoadBalancerSpec(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec value) {
if (applicationLoadBalancerSpecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applicationLoadBalancerSpec_ = value;
onChanged();
} else {
applicationLoadBalancerSpecBuilder_.setMessage(value);
}
return this;
}
/**
*
* Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
* (OSI model layer 7).
* If specified, an Application Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
* Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
* (OSI model layer 7).
* If specified, an Application Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
* Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
* (OSI model layer 7).
* If specified, an Application Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
* Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
* (OSI model layer 7).
* If specified, an Application Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
* Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
* (OSI model layer 7).
* If specified, an Application Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
* Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
* (OSI model layer 7).
* If specified, an Application Load Balancer target group containing all instances from the instance group will be created
* and attributed to the instance group.
*
*
* .yandex.cloud.compute.v1.instancegroup.ApplicationLoadBalancerSpec application_load_balancer_spec = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpecOrBuilder>
getApplicationLoadBalancerSpecFieldBuilder() {
if (applicationLoadBalancerSpecBuilder_ == null) {
applicationLoadBalancerSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ApplicationLoadBalancerSpecOrBuilder>(
getApplicationLoadBalancerSpec(),
getParentForChildren(),
isClean());
applicationLoadBalancerSpec_ = null;
}
return applicationLoadBalancerSpecBuilder_;
}
@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.instancegroup.CreateInstanceGroupRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.CreateInstanceGroupRequest)
private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest();
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateInstanceGroupRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateInstanceGroupRequest(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.instancegroup.InstanceGroupServiceOuterClass.CreateInstanceGroupRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateInstanceGroupFromYamlRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.CreateInstanceGroupFromYamlRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the folder to create an instance group in.
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
* ID of the service account. The service account will be used for all API calls
* made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
* ID of the service account. The service account will be used for all API calls
* made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 12;
* @return The bytes for serviceAccountId.
*/
com.google.protobuf.ByteString
getServiceAccountIdBytes();
/**
*
* Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
* (OSI model layer 3).
*
*
* .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 14;
* @return Whether the loadBalancerSpec field is set.
*/
boolean hasLoadBalancerSpec();
/**
*
* Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
* (OSI model layer 3).
*
* Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
*
*
* .yandex.cloud.compute.v1.instancegroup.HealthChecksSpec health_checks_spec = 11;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.HealthChecksSpecOrBuilder getHealthChecksSpecOrBuilder() {
return getHealthChecksSpec();
}
public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 12;
private volatile java.lang.Object serviceAccountId_;
/**
*
* ID of the service account. The service account will be used for all API calls
* made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
* ID of the service account. The service account will be used for all API calls
* made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 12;
* @return The bytes for serviceAccountId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOAD_BALANCER_SPEC_FIELD_NUMBER = 14;
private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec loadBalancerSpec_;
/**
*
* Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
* (OSI model layer 3).
*
*
* .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 14;
* @return Whether the loadBalancerSpec field is set.
*/
@java.lang.Override
public boolean hasLoadBalancerSpec() {
return loadBalancerSpec_ != null;
}
/**
*
* Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
* (OSI model layer 3).
*
*
* 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 instance 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 instance 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 instance 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_ = "";
/**
*
* ID of the service account. The service account will be used for all API calls
* made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
* ID of the service account. The service account will be used for all API calls
* made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 12;
* @return The bytes for serviceAccountId.
*/
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the service account. The service account will be used for all API calls
* made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 12;
* @param value The serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceAccountId_ = value;
onChanged();
return this;
}
/**
*
* ID of the service account. The service account will be used for all API calls
* made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 12;
* @return This builder for chaining.
*/
public Builder clearServiceAccountId() {
serviceAccountId_ = getDefaultInstance().getServiceAccountId();
onChanged();
return this;
}
/**
*
* ID of the service account. The service account will be used for all API calls
* made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
* To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
*
*
* string service_account_id = 12;
* @param value The bytes for serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceAccountId_ = value;
onChanged();
return this;
}
private yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec loadBalancerSpec_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpec.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LoadBalancerSpecOrBuilder> loadBalancerSpecBuilder_;
/**
*
* Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
* (OSI model layer 3).
*
*
* .yandex.cloud.compute.v1.instancegroup.LoadBalancerSpec load_balancer_spec = 14;
* @return Whether the loadBalancerSpec field is set.
*/
public boolean hasLoadBalancerSpec() {
return loadBalancerSpecBuilder_ != null || loadBalancerSpec_ != null;
}
/**
*
* Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
* (OSI model layer 3).
*
* IDs of managed instances in the group to restart
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @return A list containing the managedInstanceIds.
*/
java.util.List
getManagedInstanceIdsList();
/**
*
* IDs of managed instances in the group to restart
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @return The count of managedInstanceIds.
*/
int getManagedInstanceIdsCount();
/**
*
* IDs of managed instances in the group to restart
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @param index The index of the element to return.
* @return The managedInstanceIds at the given index.
*/
java.lang.String getManagedInstanceIds(int index);
/**
*
* IDs of managed instances in the group to restart
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @param index The index of the value to return.
* @return The bytes of the managedInstanceIds at the given index.
*/
com.google.protobuf.ByteString
getManagedInstanceIdsBytes(int index);
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.instancegroup.RollingRestartRequest}
*/
public static final class RollingRestartRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.RollingRestartRequest)
RollingRestartRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use RollingRestartRequest.newBuilder() to construct.
private RollingRestartRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RollingRestartRequest() {
instanceGroupId_ = "";
managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RollingRestartRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RollingRestartRequest(
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();
instanceGroupId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
managedInstanceIds_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
managedInstanceIds_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
managedInstanceIds_ = managedInstanceIds_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest.Builder.class);
}
public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceGroupId_;
/**
*
* ID of the instance group to restart instances in.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
* ID of the instance group to restart instances in.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceGroupIdBytes() {
java.lang.Object ref = instanceGroupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MANAGED_INSTANCE_IDS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList managedInstanceIds_;
/**
*
* IDs of managed instances in the group to restart
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @return A list containing the managedInstanceIds.
*/
public com.google.protobuf.ProtocolStringList
getManagedInstanceIdsList() {
return managedInstanceIds_;
}
/**
*
* IDs of managed instances in the group to restart
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @return The count of managedInstanceIds.
*/
public int getManagedInstanceIdsCount() {
return managedInstanceIds_.size();
}
/**
*
* IDs of managed instances in the group to restart
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @param index The index of the element to return.
* @return The managedInstanceIds at the given index.
*/
public java.lang.String getManagedInstanceIds(int index) {
return managedInstanceIds_.get(index);
}
/**
*
* IDs of managed instances in the group to restart
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @param index The index of the value to return.
* @return The bytes of the managedInstanceIds at the given index.
*/
public com.google.protobuf.ByteString
getManagedInstanceIdsBytes(int index) {
return managedInstanceIds_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_);
}
for (int i = 0; i < managedInstanceIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, managedInstanceIds_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_);
}
{
int dataSize = 0;
for (int i = 0; i < managedInstanceIds_.size(); i++) {
dataSize += computeStringSizeNoTag(managedInstanceIds_.getRaw(i));
}
size += dataSize;
size += 1 * getManagedInstanceIdsList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest) obj;
if (!getInstanceGroupId()
.equals(other.getInstanceGroupId())) return false;
if (!getManagedInstanceIdsList()
.equals(other.getManagedInstanceIdsList())) 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) + INSTANCE_GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceGroupId().hashCode();
if (getManagedInstanceIdsCount() > 0) {
hash = (37 * hash) + MANAGED_INSTANCE_IDS_FIELD_NUMBER;
hash = (53 * hash) + getManagedInstanceIdsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest 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.instancegroup.RollingRestartRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.RollingRestartRequest)
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest.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();
instanceGroupId_ = "";
managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRestartRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest build() {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest buildPartial() {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest(this);
int from_bitField0_ = bitField0_;
result.instanceGroupId_ = instanceGroupId_;
if (((bitField0_ & 0x00000001) != 0)) {
managedInstanceIds_ = managedInstanceIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.managedInstanceIds_ = managedInstanceIds_;
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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest other) {
if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest.getDefaultInstance()) return this;
if (!other.getInstanceGroupId().isEmpty()) {
instanceGroupId_ = other.instanceGroupId_;
onChanged();
}
if (!other.managedInstanceIds_.isEmpty()) {
if (managedInstanceIds_.isEmpty()) {
managedInstanceIds_ = other.managedInstanceIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureManagedInstanceIdsIsMutable();
managedInstanceIds_.addAll(other.managedInstanceIds_);
}
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.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRestartRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object instanceGroupId_ = "";
/**
*
* ID of the instance group to restart instances in.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
* ID of the instance group to restart instances in.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for instanceGroupId to set.
* @return This builder for chaining.
*/
public Builder setInstanceGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceGroupId_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureManagedInstanceIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
managedInstanceIds_ = new com.google.protobuf.LazyStringArrayList(managedInstanceIds_);
bitField0_ |= 0x00000001;
}
}
/**
*
* IDs of managed instances in the group to restart
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @return A list containing the managedInstanceIds.
*/
public com.google.protobuf.ProtocolStringList
getManagedInstanceIdsList() {
return managedInstanceIds_.getUnmodifiableView();
}
/**
*
* IDs of managed instances in the group to restart
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @return The count of managedInstanceIds.
*/
public int getManagedInstanceIdsCount() {
return managedInstanceIds_.size();
}
/**
*
* IDs of managed instances in the group to restart
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @param index The index of the element to return.
* @return The managedInstanceIds at the given index.
*/
public java.lang.String getManagedInstanceIds(int index) {
return managedInstanceIds_.get(index);
}
/**
*
* IDs of managed instances in the group to restart
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @param index The index of the value to return.
* @return The bytes of the managedInstanceIds at the given index.
*/
public com.google.protobuf.ByteString
getManagedInstanceIdsBytes(int index) {
return managedInstanceIds_.getByteString(index);
}
/**
*
* IDs of managed instances in the group to restart
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @param index The index to set the value at.
* @param value The managedInstanceIds to set.
* @return This builder for chaining.
*/
public Builder setManagedInstanceIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureManagedInstanceIdsIsMutable();
managedInstanceIds_.set(index, value);
onChanged();
return this;
}
/**
*
* IDs of managed instances in the group to restart
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @param value The managedInstanceIds to add.
* @return This builder for chaining.
*/
public Builder addManagedInstanceIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureManagedInstanceIdsIsMutable();
managedInstanceIds_.add(value);
onChanged();
return this;
}
/**
*
* IDs of managed instances in the group to restart
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @param values The managedInstanceIds to add.
* @return This builder for chaining.
*/
public Builder addAllManagedInstanceIds(
java.lang.Iterable values) {
ensureManagedInstanceIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, managedInstanceIds_);
onChanged();
return this;
}
/**
*
* IDs of managed instances in the group to restart
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
* IDs of managed instances in the group to recreate
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @return A list containing the managedInstanceIds.
*/
java.util.List
getManagedInstanceIdsList();
/**
*
* IDs of managed instances in the group to recreate
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @return The count of managedInstanceIds.
*/
int getManagedInstanceIdsCount();
/**
*
* IDs of managed instances in the group to recreate
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @param index The index of the element to return.
* @return The managedInstanceIds at the given index.
*/
java.lang.String getManagedInstanceIds(int index);
/**
*
* IDs of managed instances in the group to recreate
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @param index The index of the value to return.
* @return The bytes of the managedInstanceIds at the given index.
*/
com.google.protobuf.ByteString
getManagedInstanceIdsBytes(int index);
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.instancegroup.RollingRecreateRequest}
*/
public static final class RollingRecreateRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.RollingRecreateRequest)
RollingRecreateRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use RollingRecreateRequest.newBuilder() to construct.
private RollingRecreateRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RollingRecreateRequest() {
instanceGroupId_ = "";
managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RollingRecreateRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RollingRecreateRequest(
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();
instanceGroupId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
managedInstanceIds_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
managedInstanceIds_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
managedInstanceIds_ = managedInstanceIds_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest.Builder.class);
}
public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceGroupId_;
/**
*
* ID of the instance group to recreate instances in.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
* ID of the instance group to recreate instances in.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceGroupIdBytes() {
java.lang.Object ref = instanceGroupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MANAGED_INSTANCE_IDS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList managedInstanceIds_;
/**
*
* IDs of managed instances in the group to recreate
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @return A list containing the managedInstanceIds.
*/
public com.google.protobuf.ProtocolStringList
getManagedInstanceIdsList() {
return managedInstanceIds_;
}
/**
*
* IDs of managed instances in the group to recreate
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @return The count of managedInstanceIds.
*/
public int getManagedInstanceIdsCount() {
return managedInstanceIds_.size();
}
/**
*
* IDs of managed instances in the group to recreate
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @param index The index of the element to return.
* @return The managedInstanceIds at the given index.
*/
public java.lang.String getManagedInstanceIds(int index) {
return managedInstanceIds_.get(index);
}
/**
*
* IDs of managed instances in the group to recreate
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @param index The index of the value to return.
* @return The bytes of the managedInstanceIds at the given index.
*/
public com.google.protobuf.ByteString
getManagedInstanceIdsBytes(int index) {
return managedInstanceIds_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_);
}
for (int i = 0; i < managedInstanceIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, managedInstanceIds_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_);
}
{
int dataSize = 0;
for (int i = 0; i < managedInstanceIds_.size(); i++) {
dataSize += computeStringSizeNoTag(managedInstanceIds_.getRaw(i));
}
size += dataSize;
size += 1 * getManagedInstanceIdsList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest) obj;
if (!getInstanceGroupId()
.equals(other.getInstanceGroupId())) return false;
if (!getManagedInstanceIdsList()
.equals(other.getManagedInstanceIdsList())) 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) + INSTANCE_GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceGroupId().hashCode();
if (getManagedInstanceIdsCount() > 0) {
hash = (37 * hash) + MANAGED_INSTANCE_IDS_FIELD_NUMBER;
hash = (53 * hash) + getManagedInstanceIdsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest 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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest 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.instancegroup.RollingRecreateRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.RollingRecreateRequest)
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest.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();
instanceGroupId_ = "";
managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_RollingRecreateRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest build() {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest buildPartial() {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest(this);
int from_bitField0_ = bitField0_;
result.instanceGroupId_ = instanceGroupId_;
if (((bitField0_ & 0x00000001) != 0)) {
managedInstanceIds_ = managedInstanceIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.managedInstanceIds_ = managedInstanceIds_;
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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest other) {
if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest.getDefaultInstance()) return this;
if (!other.getInstanceGroupId().isEmpty()) {
instanceGroupId_ = other.instanceGroupId_;
onChanged();
}
if (!other.managedInstanceIds_.isEmpty()) {
if (managedInstanceIds_.isEmpty()) {
managedInstanceIds_ = other.managedInstanceIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureManagedInstanceIdsIsMutable();
managedInstanceIds_.addAll(other.managedInstanceIds_);
}
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.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.RollingRecreateRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object instanceGroupId_ = "";
/**
*
* ID of the instance group to recreate instances in.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
* ID of the instance group to recreate instances in.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for instanceGroupId to set.
* @return This builder for chaining.
*/
public Builder setInstanceGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceGroupId_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureManagedInstanceIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
managedInstanceIds_ = new com.google.protobuf.LazyStringArrayList(managedInstanceIds_);
bitField0_ |= 0x00000001;
}
}
/**
*
* IDs of managed instances in the group to recreate
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @return A list containing the managedInstanceIds.
*/
public com.google.protobuf.ProtocolStringList
getManagedInstanceIdsList() {
return managedInstanceIds_.getUnmodifiableView();
}
/**
*
* IDs of managed instances in the group to recreate
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @return The count of managedInstanceIds.
*/
public int getManagedInstanceIdsCount() {
return managedInstanceIds_.size();
}
/**
*
* IDs of managed instances in the group to recreate
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @param index The index of the element to return.
* @return The managedInstanceIds at the given index.
*/
public java.lang.String getManagedInstanceIds(int index) {
return managedInstanceIds_.get(index);
}
/**
*
* IDs of managed instances in the group to recreate
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @param index The index of the value to return.
* @return The bytes of the managedInstanceIds at the given index.
*/
public com.google.protobuf.ByteString
getManagedInstanceIdsBytes(int index) {
return managedInstanceIds_.getByteString(index);
}
/**
*
* IDs of managed instances in the group to recreate
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @param index The index to set the value at.
* @param value The managedInstanceIds to set.
* @return This builder for chaining.
*/
public Builder setManagedInstanceIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureManagedInstanceIdsIsMutable();
managedInstanceIds_.set(index, value);
onChanged();
return this;
}
/**
*
* IDs of managed instances in the group to recreate
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @param value The managedInstanceIds to add.
* @return This builder for chaining.
*/
public Builder addManagedInstanceIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureManagedInstanceIdsIsMutable();
managedInstanceIds_.add(value);
onChanged();
return this;
}
/**
*
* IDs of managed instances in the group to recreate
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
*
* repeated string managed_instance_ids = 2;
* @param values The managedInstanceIds to add.
* @return This builder for chaining.
*/
public Builder addAllManagedInstanceIds(
java.lang.Iterable values) {
ensureManagedInstanceIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, managedInstanceIds_);
onChanged();
return this;
}
/**
*
* IDs of managed instances in the group to recreate
* To get instance IDs, use a [InstanceGroupService.ListInstances] request.
*
* ID of the folder to list instance groups in.
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @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 [ListInstanceGroupsResponse.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 [ListInstanceGroupsResponse.next_page_token]
* returned by a previous list request.
*
* Page token. To get the next page of results,
* set [page_token] to the [ListInstanceGroupsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
/**
*
* A filter expression that filters resources listed in the response.
* Currently you can use filtering only on the [InstanceGroup.name] field.
*
* A filter expression that filters resources listed in the response.
* Currently you can use filtering only on the [InstanceGroup.name] field.
*
*
* string filter = 4 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for filter.
*/
com.google.protobuf.ByteString
getFilterBytes();
/**
*
* Defines which information about the Instance template should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 5;
* @return The enum numeric value on the wire for view.
*/
int getViewValue();
/**
*
* Defines which information about the Instance template should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 5;
* @return The view.
*/
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView getView();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.instancegroup.ListInstanceGroupsRequest}
*/
public static final class ListInstanceGroupsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupsRequest)
ListInstanceGroupsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListInstanceGroupsRequest.newBuilder() to construct.
private ListInstanceGroupsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListInstanceGroupsRequest() {
folderId_ = "";
pageToken_ = "";
filter_ = "";
view_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListInstanceGroupsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListInstanceGroupsRequest(
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 40: {
int rawValue = input.readEnum();
view_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest.Builder.class);
}
public static final int FOLDER_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object folderId_;
/**
*
* ID of the folder to list instance groups in.
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
* ID of the folder to list instance groups in.
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @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 [ListInstanceGroupsResponse.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 [ListInstanceGroupsResponse.next_page_token]
* returned by a previous list request.
*
* Page token. To get the next page of results,
* set [page_token] to the [ListInstanceGroupsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @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.
* Currently you can use filtering only on the [InstanceGroup.name] field.
*
* A filter expression that filters resources listed in the response.
* Currently you can use filtering only on the [InstanceGroup.name] field.
*
*
* 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 VIEW_FIELD_NUMBER = 5;
private int view_;
/**
*
* Defines which information about the Instance template should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 5;
* @return The enum numeric value on the wire for view.
*/
@java.lang.Override public int getViewValue() {
return view_;
}
/**
*
* Defines which information about the Instance template should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 5;
* @return The view.
*/
@java.lang.Override public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView getView() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView.valueOf(view_);
return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(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 (view_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView.BASIC.getNumber()) {
output.writeEnum(5, view_);
}
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 (view_ != yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView.BASIC.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, view_);
}
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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest) 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 (view_ != other.view_) 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) + VIEW_FIELD_NUMBER;
hash = (53 * hash) + view_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest 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.instancegroup.ListInstanceGroupsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupsRequest)
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest.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_ = "";
view_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest build() {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest buildPartial() {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest(this);
result.folderId_ = folderId_;
result.pageSize_ = pageSize_;
result.pageToken_ = pageToken_;
result.filter_ = filter_;
result.view_ = view_;
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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest other) {
if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest.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.view_ != 0) {
setViewValue(other.getViewValue());
}
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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object folderId_ = "";
/**
*
* ID of the folder to list instance groups in.
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
* ID of the folder to list instance groups in.
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @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 instance groups in.
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @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 instance groups in.
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearFolderId() {
folderId_ = getDefaultInstance().getFolderId();
onChanged();
return this;
}
/**
*
* ID of the folder to list instance groups in.
* To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
*
*
* string folder_id = 1 [(.yandex.cloud.required) = true];
* @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 [ListInstanceGroupsResponse.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 [ListInstanceGroupsResponse.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 [ListInstanceGroupsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
* Page token. To get the next page of results,
* set [page_token] to the [ListInstanceGroupsResponse.next_page_token]
* returned by a previous list request.
*
* Page token. To get the next page of results,
* set [page_token] to the [ListInstanceGroupsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @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 [ListInstanceGroupsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @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 [ListInstanceGroupsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @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 [ListInstanceGroupsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @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.
* Currently you can use filtering only on the [InstanceGroup.name] field.
*
* A filter expression that filters resources listed in the response.
* Currently you can use filtering only on the [InstanceGroup.name] field.
*
*
* 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.
* Currently you can use filtering only on the [InstanceGroup.name] field.
*
*
* 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.
* Currently you can use filtering only on the [InstanceGroup.name] field.
*
*
* 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.
* Currently you can use filtering only on the [InstanceGroup.name] field.
*
*
* 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 int view_ = 0;
/**
*
* Defines which information about the Instance template should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 5;
* @return The enum numeric value on the wire for view.
*/
@java.lang.Override public int getViewValue() {
return view_;
}
/**
*
* Defines which information about the Instance template should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 5;
* @param value The enum numeric value on the wire for view to set.
* @return This builder for chaining.
*/
public Builder setViewValue(int value) {
view_ = value;
onChanged();
return this;
}
/**
*
* Defines which information about the Instance template should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 5;
* @return The view.
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView getView() {
@SuppressWarnings("deprecation")
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView result = yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView.valueOf(view_);
return result == null ? yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView.UNRECOGNIZED : result;
}
/**
*
* Defines which information about the Instance template should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 5;
* @param value The view to set.
* @return This builder for chaining.
*/
public Builder setView(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.InstanceGroupView value) {
if (value == null) {
throw new NullPointerException();
}
view_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Defines which information about the Instance template should be returned in the server response.
*
*
* .yandex.cloud.compute.v1.instancegroup.InstanceGroupView view = 5;
* @return This builder for chaining.
*/
public Builder clearView() {
view_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupsRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupsRequest)
private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest();
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListInstanceGroupsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListInstanceGroupsRequest(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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListInstanceGroupsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupsResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* Lists instance groups for the specified folder.
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListInstanceGroupsRequest.page_size], use
* [next_page_token] as the value
* for the [ListInstanceGroupsRequest.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.
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListInstanceGroupsRequest.page_size], use
* [next_page_token] as the value
* for the [ListInstanceGroupsRequest.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.instancegroup.ListInstanceGroupsResponse}
*/
public static final class ListInstanceGroupsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupsResponse)
ListInstanceGroupsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListInstanceGroupsResponse.newBuilder() to construct.
private ListInstanceGroupsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListInstanceGroupsResponse() {
instanceGroups_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListInstanceGroupsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListInstanceGroupsResponse(
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)) {
instanceGroups_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
instanceGroups_.add(
input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.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)) {
instanceGroups_ = java.util.Collections.unmodifiableList(instanceGroups_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse.Builder.class);
}
public static final int INSTANCE_GROUPS_FIELD_NUMBER = 1;
private java.util.List instanceGroups_;
/**
*
* Lists instance groups for the specified folder.
*
* Lists instance groups for the specified folder.
*
*
* repeated .yandex.cloud.compute.v1.instancegroup.InstanceGroup instance_groups = 1;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroupOrBuilder getInstanceGroupsOrBuilder(
int index) {
return instanceGroups_.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 [ListInstanceGroupsRequest.page_size], use
* [next_page_token] as the value
* for the [ListInstanceGroupsRequest.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.
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListInstanceGroupsRequest.page_size], use
* [next_page_token] as the value
* for the [ListInstanceGroupsRequest.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 < instanceGroups_.size(); i++) {
output.writeMessage(1, instanceGroups_.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 < instanceGroups_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, instanceGroups_.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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse) obj;
if (!getInstanceGroupsList()
.equals(other.getInstanceGroupsList())) 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 (getInstanceGroupsCount() > 0) {
hash = (37 * hash) + INSTANCE_GROUPS_FIELD_NUMBER;
hash = (53 * hash) + getInstanceGroupsList().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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse 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.instancegroup.ListInstanceGroupsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupsResponse)
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getInstanceGroupsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (instanceGroupsBuilder_ == null) {
instanceGroups_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
instanceGroupsBuilder_.clear();
}
nextPageToken_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse build() {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse buildPartial() {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse(this);
int from_bitField0_ = bitField0_;
if (instanceGroupsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
instanceGroups_ = java.util.Collections.unmodifiableList(instanceGroups_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.instanceGroups_ = instanceGroups_;
} else {
result.instanceGroups_ = instanceGroupsBuilder_.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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse) {
return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse other) {
if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse.getDefaultInstance()) return this;
if (instanceGroupsBuilder_ == null) {
if (!other.instanceGroups_.isEmpty()) {
if (instanceGroups_.isEmpty()) {
instanceGroups_ = other.instanceGroups_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureInstanceGroupsIsMutable();
instanceGroups_.addAll(other.instanceGroups_);
}
onChanged();
}
} else {
if (!other.instanceGroups_.isEmpty()) {
if (instanceGroupsBuilder_.isEmpty()) {
instanceGroupsBuilder_.dispose();
instanceGroupsBuilder_ = null;
instanceGroups_ = other.instanceGroups_;
bitField0_ = (bitField0_ & ~0x00000001);
instanceGroupsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getInstanceGroupsFieldBuilder() : null;
} else {
instanceGroupsBuilder_.addAllMessages(other.instanceGroups_);
}
}
}
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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List instanceGroups_ =
java.util.Collections.emptyList();
private void ensureInstanceGroupsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
instanceGroups_ = new java.util.ArrayList(instanceGroups_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroup.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.InstanceGroupOrBuilder> instanceGroupsBuilder_;
/**
*
* Lists instance groups for the specified folder.
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListInstanceGroupsRequest.page_size], use
* [next_page_token] as the value
* for the [ListInstanceGroupsRequest.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.
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListInstanceGroupsRequest.page_size], use
* [next_page_token] as the value
* for the [ListInstanceGroupsRequest.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 [ListInstanceGroupsRequest.page_size], use
* [next_page_token] as the value
* for the [ListInstanceGroupsRequest.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 [ListInstanceGroupsRequest.page_size], use
* [next_page_token] as the value
* for the [ListInstanceGroupsRequest.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 [ListInstanceGroupsRequest.page_size], use
* [next_page_token] as the value
* for the [ListInstanceGroupsRequest.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.instancegroup.ListInstanceGroupsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupsResponse)
private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse();
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListInstanceGroupsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListInstanceGroupsResponse(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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListInstanceGroupInstancesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupInstancesRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the InstanceGroup resource to list instances for.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListInstanceGroupInstancesResponse.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 [ListInstanceGroupInstancesResponse.next_page_token]
* returned by a previous list request.
*
* Page token. To get the next page of results,
* set [page_token] to the [ListInstanceGroupInstancesResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
/**
*
* A filter expression that filters resources listed in the response.
* Currently you can use filtering only on the [ManagedInstance.name] field.
*
* ID of the InstanceGroup resource to list instances for.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceGroupIdBytes() {
java.lang.Object ref = instanceGroupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceGroupId_ = 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 [ListInstanceGroupInstancesResponse.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 [ListInstanceGroupInstancesResponse.next_page_token]
* returned by a previous list request.
*
* Page token. To get the next page of results,
* set [page_token] to the [ListInstanceGroupInstancesResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @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.
* Currently you can use filtering only on the [ManagedInstance.name] field.
*
* ID of the InstanceGroup resource to list instances for.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for instanceGroupId to set.
* @return This builder for chaining.
*/
public Builder setInstanceGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceGroupId_ = 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 [ListInstanceGroupInstancesResponse.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 [ListInstanceGroupInstancesResponse.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 [ListInstanceGroupInstancesResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
* Page token. To get the next page of results,
* set [page_token] to the [ListInstanceGroupInstancesResponse.next_page_token]
* returned by a previous list request.
*
* Page token. To get the next page of results,
* set [page_token] to the [ListInstanceGroupInstancesResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @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 [ListInstanceGroupInstancesResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @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 [ListInstanceGroupInstancesResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @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 [ListInstanceGroupInstancesResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @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.
* Currently you can use filtering only on the [ManagedInstance.name] field.
*
* This token allows you to get the next page of results for list requests. If the number of results
* is more than [ListInstanceGroupInstancesRequest.page_size], use
* [next_page_token] as the value
* for the [ListInstanceGroupInstancesRequest.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.
*
* This token allows you to get the next page of results for list requests. If the number of results
* is more than [ListInstanceGroupInstancesRequest.page_size], use
* [next_page_token] as the value
* for the [ListInstanceGroupInstancesRequest.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.instancegroup.ListInstanceGroupInstancesResponse}
*/
public static final class ListInstanceGroupInstancesResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupInstancesResponse)
ListInstanceGroupInstancesResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListInstanceGroupInstancesResponse.newBuilder() to construct.
private ListInstanceGroupInstancesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListInstanceGroupInstancesResponse() {
instances_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListInstanceGroupInstancesResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListInstanceGroupInstancesResponse(
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.instancegroup.InstanceGroupOuterClass.ManagedInstance.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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse.Builder.class);
}
public static final int INSTANCES_FIELD_NUMBER = 1;
private java.util.List instances_;
/**
*
* Lists instances for the specified instance group.
*
* Lists instances for the specified instance group.
*
*
* repeated .yandex.cloud.compute.v1.instancegroup.ManagedInstance instances = 1;
*/
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstanceOrBuilder 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 [ListInstanceGroupInstancesRequest.page_size], use
* [next_page_token] as the value
* for the [ListInstanceGroupInstancesRequest.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.
*
* This token allows you to get the next page of results for list requests. If the number of results
* is more than [ListInstanceGroupInstancesRequest.page_size], use
* [next_page_token] as the value
* for the [ListInstanceGroupInstancesRequest.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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse) 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse 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.instancegroup.ListInstanceGroupInstancesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupInstancesResponse)
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse.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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupInstancesResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse build() {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse buildPartial() {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse(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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse) {
return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse other) {
if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse.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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse) 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.instancegroup.InstanceGroupOuterClass.ManagedInstance, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstance.Builder, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.ManagedInstanceOrBuilder> instancesBuilder_;
/**
*
* Lists instances for the specified instance group.
*
* This token allows you to get the next page of results for list requests. If the number of results
* is more than [ListInstanceGroupInstancesRequest.page_size], use
* [next_page_token] as the value
* for the [ListInstanceGroupInstancesRequest.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.
*
* This token allows you to get the next page of results for list requests. If the number of results
* is more than [ListInstanceGroupInstancesRequest.page_size], use
* [next_page_token] as the value
* for the [ListInstanceGroupInstancesRequest.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 [ListInstanceGroupInstancesRequest.page_size], use
* [next_page_token] as the value
* for the [ListInstanceGroupInstancesRequest.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 [ListInstanceGroupInstancesRequest.page_size], use
* [next_page_token] as the value
* for the [ListInstanceGroupInstancesRequest.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 [ListInstanceGroupInstancesRequest.page_size], use
* [next_page_token] as the value
* for the [ListInstanceGroupInstancesRequest.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.instancegroup.ListInstanceGroupInstancesResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupInstancesResponse)
private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse();
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListInstanceGroupInstancesResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListInstanceGroupInstancesResponse(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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupInstancesResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteInstancesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.DeleteInstancesRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the instance group that the instances are being deleted from.
* To get the ID of the instance group, use the [InstanceGroupService.List] request.
*
* ID of the instance group that the instances are being deleted from.
* To get the ID of the instance group, use the [InstanceGroupService.List] request.
*
* IDs of the instances to delete. Instances will be deleted along with all dependent resources.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @return A list containing the managedInstanceIds.
*/
java.util.List
getManagedInstanceIdsList();
/**
*
* IDs of the instances to delete. Instances will be deleted along with all dependent resources.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @return The count of managedInstanceIds.
*/
int getManagedInstanceIdsCount();
/**
*
* IDs of the instances to delete. Instances will be deleted along with all dependent resources.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @param index The index of the element to return.
* @return The managedInstanceIds at the given index.
*/
java.lang.String getManagedInstanceIds(int index);
/**
*
* IDs of the instances to delete. Instances will be deleted along with all dependent resources.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @param index The index of the value to return.
* @return The bytes of the managedInstanceIds at the given index.
*/
com.google.protobuf.ByteString
getManagedInstanceIdsBytes(int index);
/**
*
* If set to true, the target size of instance group will not be reduced and
* a new instance will be created instead of the deleted one. By default, the target size of instance group
* will be reduced by the specified number of instance IDs.
*
*
* bool create_another = 3;
* @return The createAnother.
*/
boolean getCreateAnother();
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.instancegroup.DeleteInstancesRequest}
*/
public static final class DeleteInstancesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.DeleteInstancesRequest)
DeleteInstancesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteInstancesRequest.newBuilder() to construct.
private DeleteInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteInstancesRequest() {
instanceGroupId_ = "";
managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteInstancesRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteInstancesRequest(
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();
instanceGroupId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
managedInstanceIds_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
managedInstanceIds_.add(s);
break;
}
case 24: {
createAnother_ = input.readBool();
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)) {
managedInstanceIds_ = managedInstanceIds_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest.Builder.class);
}
public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceGroupId_;
/**
*
* ID of the instance group that the instances are being deleted from.
* To get the ID of the instance group, use the [InstanceGroupService.List] request.
*
* ID of the instance group that the instances are being deleted from.
* To get the ID of the instance group, use the [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceGroupIdBytes() {
java.lang.Object ref = instanceGroupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MANAGED_INSTANCE_IDS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList managedInstanceIds_;
/**
*
* IDs of the instances to delete. Instances will be deleted along with all dependent resources.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @return A list containing the managedInstanceIds.
*/
public com.google.protobuf.ProtocolStringList
getManagedInstanceIdsList() {
return managedInstanceIds_;
}
/**
*
* IDs of the instances to delete. Instances will be deleted along with all dependent resources.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @return The count of managedInstanceIds.
*/
public int getManagedInstanceIdsCount() {
return managedInstanceIds_.size();
}
/**
*
* IDs of the instances to delete. Instances will be deleted along with all dependent resources.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @param index The index of the element to return.
* @return The managedInstanceIds at the given index.
*/
public java.lang.String getManagedInstanceIds(int index) {
return managedInstanceIds_.get(index);
}
/**
*
* IDs of the instances to delete. Instances will be deleted along with all dependent resources.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @param index The index of the value to return.
* @return The bytes of the managedInstanceIds at the given index.
*/
public com.google.protobuf.ByteString
getManagedInstanceIdsBytes(int index) {
return managedInstanceIds_.getByteString(index);
}
public static final int CREATE_ANOTHER_FIELD_NUMBER = 3;
private boolean createAnother_;
/**
*
* If set to true, the target size of instance group will not be reduced and
* a new instance will be created instead of the deleted one. By default, the target size of instance group
* will be reduced by the specified number of instance IDs.
*
*
* bool create_another = 3;
* @return The createAnother.
*/
@java.lang.Override
public boolean getCreateAnother() {
return createAnother_;
}
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(instanceGroupId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_);
}
for (int i = 0; i < managedInstanceIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, managedInstanceIds_.getRaw(i));
}
if (createAnother_ != false) {
output.writeBool(3, createAnother_);
}
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(instanceGroupId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_);
}
{
int dataSize = 0;
for (int i = 0; i < managedInstanceIds_.size(); i++) {
dataSize += computeStringSizeNoTag(managedInstanceIds_.getRaw(i));
}
size += dataSize;
size += 1 * getManagedInstanceIdsList().size();
}
if (createAnother_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, createAnother_);
}
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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest) obj;
if (!getInstanceGroupId()
.equals(other.getInstanceGroupId())) return false;
if (!getManagedInstanceIdsList()
.equals(other.getManagedInstanceIdsList())) return false;
if (getCreateAnother()
!= other.getCreateAnother()) 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) + INSTANCE_GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceGroupId().hashCode();
if (getManagedInstanceIdsCount() > 0) {
hash = (37 * hash) + MANAGED_INSTANCE_IDS_FIELD_NUMBER;
hash = (53 * hash) + getManagedInstanceIdsList().hashCode();
}
hash = (37 * hash) + CREATE_ANOTHER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCreateAnother());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest 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.instancegroup.DeleteInstancesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.DeleteInstancesRequest)
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest.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();
instanceGroupId_ = "";
managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
createAnother_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_DeleteInstancesRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest build() {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest buildPartial() {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest(this);
int from_bitField0_ = bitField0_;
result.instanceGroupId_ = instanceGroupId_;
if (((bitField0_ & 0x00000001) != 0)) {
managedInstanceIds_ = managedInstanceIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.managedInstanceIds_ = managedInstanceIds_;
result.createAnother_ = createAnother_;
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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest other) {
if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest.getDefaultInstance()) return this;
if (!other.getInstanceGroupId().isEmpty()) {
instanceGroupId_ = other.instanceGroupId_;
onChanged();
}
if (!other.managedInstanceIds_.isEmpty()) {
if (managedInstanceIds_.isEmpty()) {
managedInstanceIds_ = other.managedInstanceIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureManagedInstanceIdsIsMutable();
managedInstanceIds_.addAll(other.managedInstanceIds_);
}
onChanged();
}
if (other.getCreateAnother() != false) {
setCreateAnother(other.getCreateAnother());
}
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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object instanceGroupId_ = "";
/**
*
* ID of the instance group that the instances are being deleted from.
* To get the ID of the instance group, use the [InstanceGroupService.List] request.
*
* ID of the instance group that the instances are being deleted from.
* To get the ID of the instance group, use the [InstanceGroupService.List] request.
*
* ID of the instance group that the instances are being deleted from.
* To get the ID of the instance group, use the [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The instanceGroupId to set.
* @return This builder for chaining.
*/
public Builder setInstanceGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceGroupId_ = value;
onChanged();
return this;
}
/**
*
* ID of the instance group that the instances are being deleted from.
* To get the ID of the instance group, use the [InstanceGroupService.List] request.
*
* ID of the instance group that the instances are being deleted from.
* To get the ID of the instance group, use the [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for instanceGroupId to set.
* @return This builder for chaining.
*/
public Builder setInstanceGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceGroupId_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureManagedInstanceIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
managedInstanceIds_ = new com.google.protobuf.LazyStringArrayList(managedInstanceIds_);
bitField0_ |= 0x00000001;
}
}
/**
*
* IDs of the instances to delete. Instances will be deleted along with all dependent resources.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @return A list containing the managedInstanceIds.
*/
public com.google.protobuf.ProtocolStringList
getManagedInstanceIdsList() {
return managedInstanceIds_.getUnmodifiableView();
}
/**
*
* IDs of the instances to delete. Instances will be deleted along with all dependent resources.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @return The count of managedInstanceIds.
*/
public int getManagedInstanceIdsCount() {
return managedInstanceIds_.size();
}
/**
*
* IDs of the instances to delete. Instances will be deleted along with all dependent resources.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @param index The index of the element to return.
* @return The managedInstanceIds at the given index.
*/
public java.lang.String getManagedInstanceIds(int index) {
return managedInstanceIds_.get(index);
}
/**
*
* IDs of the instances to delete. Instances will be deleted along with all dependent resources.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @param index The index of the value to return.
* @return The bytes of the managedInstanceIds at the given index.
*/
public com.google.protobuf.ByteString
getManagedInstanceIdsBytes(int index) {
return managedInstanceIds_.getByteString(index);
}
/**
*
* IDs of the instances to delete. Instances will be deleted along with all dependent resources.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @param index The index to set the value at.
* @param value The managedInstanceIds to set.
* @return This builder for chaining.
*/
public Builder setManagedInstanceIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureManagedInstanceIdsIsMutable();
managedInstanceIds_.set(index, value);
onChanged();
return this;
}
/**
*
* IDs of the instances to delete. Instances will be deleted along with all dependent resources.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @param value The managedInstanceIds to add.
* @return This builder for chaining.
*/
public Builder addManagedInstanceIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureManagedInstanceIdsIsMutable();
managedInstanceIds_.add(value);
onChanged();
return this;
}
/**
*
* IDs of the instances to delete. Instances will be deleted along with all dependent resources.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @param values The managedInstanceIds to add.
* @return This builder for chaining.
*/
public Builder addAllManagedInstanceIds(
java.lang.Iterable values) {
ensureManagedInstanceIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, managedInstanceIds_);
onChanged();
return this;
}
/**
*
* IDs of the instances to delete. Instances will be deleted along with all dependent resources.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
* IDs of the instances to delete. Instances will be deleted along with all dependent resources.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @param value The bytes of the managedInstanceIds to add.
* @return This builder for chaining.
*/
public Builder addManagedInstanceIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureManagedInstanceIdsIsMutable();
managedInstanceIds_.add(value);
onChanged();
return this;
}
private boolean createAnother_ ;
/**
*
* If set to true, the target size of instance group will not be reduced and
* a new instance will be created instead of the deleted one. By default, the target size of instance group
* will be reduced by the specified number of instance IDs.
*
* If set to true, the target size of instance group will not be reduced and
* a new instance will be created instead of the deleted one. By default, the target size of instance group
* will be reduced by the specified number of instance IDs.
*
*
* bool create_another = 3;
* @param value The createAnother to set.
* @return This builder for chaining.
*/
public Builder setCreateAnother(boolean value) {
createAnother_ = value;
onChanged();
return this;
}
/**
*
* If set to true, the target size of instance group will not be reduced and
* a new instance will be created instead of the deleted one. By default, the target size of instance group
* will be reduced by the specified number of instance IDs.
*
*
* bool create_another = 3;
* @return This builder for chaining.
*/
public Builder clearCreateAnother() {
createAnother_ = false;
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.instancegroup.DeleteInstancesRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.DeleteInstancesRequest)
private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest();
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteInstancesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteInstancesRequest(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.instancegroup.InstanceGroupServiceOuterClass.DeleteInstancesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StopInstancesRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.StopInstancesRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the instance group that the instances are being stopped from.
* To get the ID of the instance group, use the [InstanceGroupService.List] request.
*
* ID of the instance group that the instances are being stopped from.
* To get the ID of the instance group, use the [InstanceGroupService.List] request.
*
* IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
* according to scale and deploy policies.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @return A list containing the managedInstanceIds.
*/
java.util.List
getManagedInstanceIdsList();
/**
*
* IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
* according to scale and deploy policies.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @return The count of managedInstanceIds.
*/
int getManagedInstanceIdsCount();
/**
*
* IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
* according to scale and deploy policies.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @param index The index of the element to return.
* @return The managedInstanceIds at the given index.
*/
java.lang.String getManagedInstanceIds(int index);
/**
*
* IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
* according to scale and deploy policies.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @param index The index of the value to return.
* @return The bytes of the managedInstanceIds at the given index.
*/
com.google.protobuf.ByteString
getManagedInstanceIdsBytes(int index);
}
/**
* Protobuf type {@code yandex.cloud.compute.v1.instancegroup.StopInstancesRequest}
*/
public static final class StopInstancesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.StopInstancesRequest)
StopInstancesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use StopInstancesRequest.newBuilder() to construct.
private StopInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StopInstancesRequest() {
instanceGroupId_ = "";
managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StopInstancesRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StopInstancesRequest(
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();
instanceGroupId_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
managedInstanceIds_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
managedInstanceIds_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
managedInstanceIds_ = managedInstanceIds_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest.Builder.class);
}
public static final int INSTANCE_GROUP_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object instanceGroupId_;
/**
*
* ID of the instance group that the instances are being stopped from.
* To get the ID of the instance group, use the [InstanceGroupService.List] request.
*
* ID of the instance group that the instances are being stopped from.
* To get the ID of the instance group, use the [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceGroupIdBytes() {
java.lang.Object ref = instanceGroupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MANAGED_INSTANCE_IDS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList managedInstanceIds_;
/**
*
* IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
* according to scale and deploy policies.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @return A list containing the managedInstanceIds.
*/
public com.google.protobuf.ProtocolStringList
getManagedInstanceIdsList() {
return managedInstanceIds_;
}
/**
*
* IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
* according to scale and deploy policies.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @return The count of managedInstanceIds.
*/
public int getManagedInstanceIdsCount() {
return managedInstanceIds_.size();
}
/**
*
* IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
* according to scale and deploy policies.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @param index The index of the element to return.
* @return The managedInstanceIds at the given index.
*/
public java.lang.String getManagedInstanceIds(int index) {
return managedInstanceIds_.get(index);
}
/**
*
* IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
* according to scale and deploy policies.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @param index The index of the value to return.
* @return The bytes of the managedInstanceIds at the given index.
*/
public com.google.protobuf.ByteString
getManagedInstanceIdsBytes(int index) {
return managedInstanceIds_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceGroupId_);
}
for (int i = 0; i < managedInstanceIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, managedInstanceIds_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceGroupId_);
}
{
int dataSize = 0;
for (int i = 0; i < managedInstanceIds_.size(); i++) {
dataSize += computeStringSizeNoTag(managedInstanceIds_.getRaw(i));
}
size += dataSize;
size += 1 * getManagedInstanceIdsList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest) obj;
if (!getInstanceGroupId()
.equals(other.getInstanceGroupId())) return false;
if (!getManagedInstanceIdsList()
.equals(other.getManagedInstanceIdsList())) 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) + INSTANCE_GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getInstanceGroupId().hashCode();
if (getManagedInstanceIdsCount() > 0) {
hash = (37 * hash) + MANAGED_INSTANCE_IDS_FIELD_NUMBER;
hash = (53 * hash) + getManagedInstanceIdsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest 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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest 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.instancegroup.StopInstancesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.StopInstancesRequest)
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest.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();
instanceGroupId_ = "";
managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_StopInstancesRequest_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest build() {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest buildPartial() {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest(this);
int from_bitField0_ = bitField0_;
result.instanceGroupId_ = instanceGroupId_;
if (((bitField0_ & 0x00000001) != 0)) {
managedInstanceIds_ = managedInstanceIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.managedInstanceIds_ = managedInstanceIds_;
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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest) {
return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest other) {
if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest.getDefaultInstance()) return this;
if (!other.getInstanceGroupId().isEmpty()) {
instanceGroupId_ = other.instanceGroupId_;
onChanged();
}
if (!other.managedInstanceIds_.isEmpty()) {
if (managedInstanceIds_.isEmpty()) {
managedInstanceIds_ = other.managedInstanceIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureManagedInstanceIdsIsMutable();
managedInstanceIds_.addAll(other.managedInstanceIds_);
}
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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object instanceGroupId_ = "";
/**
*
* ID of the instance group that the instances are being stopped from.
* To get the ID of the instance group, use the [InstanceGroupService.List] request.
*
* ID of the instance group that the instances are being stopped from.
* To get the ID of the instance group, use the [InstanceGroupService.List] request.
*
* ID of the instance group that the instances are being stopped from.
* To get the ID of the instance group, use the [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The instanceGroupId to set.
* @return This builder for chaining.
*/
public Builder setInstanceGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceGroupId_ = value;
onChanged();
return this;
}
/**
*
* ID of the instance group that the instances are being stopped from.
* To get the ID of the instance group, use the [InstanceGroupService.List] request.
*
* ID of the instance group that the instances are being stopped from.
* To get the ID of the instance group, use the [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for instanceGroupId to set.
* @return This builder for chaining.
*/
public Builder setInstanceGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceGroupId_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList managedInstanceIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureManagedInstanceIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
managedInstanceIds_ = new com.google.protobuf.LazyStringArrayList(managedInstanceIds_);
bitField0_ |= 0x00000001;
}
}
/**
*
* IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
* according to scale and deploy policies.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @return A list containing the managedInstanceIds.
*/
public com.google.protobuf.ProtocolStringList
getManagedInstanceIdsList() {
return managedInstanceIds_.getUnmodifiableView();
}
/**
*
* IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
* according to scale and deploy policies.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @return The count of managedInstanceIds.
*/
public int getManagedInstanceIdsCount() {
return managedInstanceIds_.size();
}
/**
*
* IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
* according to scale and deploy policies.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @param index The index of the element to return.
* @return The managedInstanceIds at the given index.
*/
public java.lang.String getManagedInstanceIds(int index) {
return managedInstanceIds_.get(index);
}
/**
*
* IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
* according to scale and deploy policies.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @param index The index of the value to return.
* @return The bytes of the managedInstanceIds at the given index.
*/
public com.google.protobuf.ByteString
getManagedInstanceIdsBytes(int index) {
return managedInstanceIds_.getByteString(index);
}
/**
*
* IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
* according to scale and deploy policies.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @param index The index to set the value at.
* @param value The managedInstanceIds to set.
* @return This builder for chaining.
*/
public Builder setManagedInstanceIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureManagedInstanceIdsIsMutable();
managedInstanceIds_.set(index, value);
onChanged();
return this;
}
/**
*
* IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
* according to scale and deploy policies.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @param value The managedInstanceIds to add.
* @return This builder for chaining.
*/
public Builder addManagedInstanceIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureManagedInstanceIdsIsMutable();
managedInstanceIds_.add(value);
onChanged();
return this;
}
/**
*
* IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
* according to scale and deploy policies.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @param values The managedInstanceIds to add.
* @return This builder for chaining.
*/
public Builder addAllManagedInstanceIds(
java.lang.Iterable values) {
ensureManagedInstanceIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, managedInstanceIds_);
onChanged();
return this;
}
/**
*
* IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
* according to scale and deploy policies.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
* IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
* according to scale and deploy policies.
* Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
*
*
* repeated string managed_instance_ids = 2 [(.yandex.cloud.size) = ">=1", (.yandex.cloud.length) = "<=50"];
* @param value The bytes of the managedInstanceIds to add.
* @return This builder for chaining.
*/
public Builder addManagedInstanceIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureManagedInstanceIdsIsMutable();
managedInstanceIds_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.compute.v1.instancegroup.StopInstancesRequest)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.StopInstancesRequest)
private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest();
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StopInstancesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StopInstancesRequest(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.instancegroup.InstanceGroupServiceOuterClass.StopInstancesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListInstanceGroupOperationsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupOperationsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the InstanceGroup resource to list operations for.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
* The maximum number of results per page to return. If the number of available
* results is more than [page_size], the service returns a [ListInstanceGroupOperationsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
long getPageSize();
/**
*
* Page token. To get the next page of results, set [page_token] to the
* [ListInstanceGroupOperationsResponse.next_page_token] returned by a previous list request.
*
* Page token. To get the next page of results, set [page_token] to the
* [ListInstanceGroupOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
/**
*
* A filter expression that filters resources listed in the response.
* Currently you can use filtering only on the [InstanceGroup.name] field.
*
* ID of the InstanceGroup resource to list operations for.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @return The bytes for instanceGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceGroupIdBytes() {
java.lang.Object ref = instanceGroupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceGroupId_ = 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 more than [page_size], the service returns a [ListInstanceGroupOperationsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
private volatile java.lang.Object pageToken_;
/**
*
* Page token. To get the next page of results, set [page_token] to the
* [ListInstanceGroupOperationsResponse.next_page_token] returned by a previous list request.
*
* Page token. To get the next page of results, set [page_token] to the
* [ListInstanceGroupOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @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.
* Currently you can use filtering only on the [InstanceGroup.name] field.
*
* ID of the InstanceGroup resource to list operations for.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
* @param value The bytes for instanceGroupId to set.
* @return This builder for chaining.
*/
public Builder setInstanceGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceGroupId_ = value;
onChanged();
return this;
}
private long pageSize_ ;
/**
*
* The maximum number of results per page to return. If the number of available
* results is more than [page_size], the service returns a [ListInstanceGroupOperationsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
/**
*
* The maximum number of results per page to return. If the number of available
* results is more than [page_size], the service returns a [ListInstanceGroupOperationsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @param value The pageSize to set.
* @return This builder for chaining.
*/
public Builder setPageSize(long value) {
pageSize_ = value;
onChanged();
return this;
}
/**
*
* The maximum number of results per page to return. If the number of available
* results is more than [page_size], the service returns a [ListInstanceGroupOperationsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
* Page token. To get the next page of results, set [page_token] to the
* [ListInstanceGroupOperationsResponse.next_page_token] returned by a previous list request.
*
* Page token. To get the next page of results, set [page_token] to the
* [ListInstanceGroupOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @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
* [ListInstanceGroupOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @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
* [ListInstanceGroupOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @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
* [ListInstanceGroupOperationsResponse.next_page_token] returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @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.
* Currently you can use filtering only on the [InstanceGroup.name] field.
*
* This token allows you to get the next page of results for list requests. If the number of results
* is more than [ListInstanceGroupOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListInstanceGroupOperationsRequest.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.
*
* This token allows you to get the next page of results for list requests. If the number of results
* is more than [ListInstanceGroupOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListInstanceGroupOperationsRequest.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.instancegroup.ListInstanceGroupOperationsResponse}
*/
public static final class ListInstanceGroupOperationsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupOperationsResponse)
ListInstanceGroupOperationsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListInstanceGroupOperationsResponse.newBuilder() to construct.
private ListInstanceGroupOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListInstanceGroupOperationsResponse() {
operations_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListInstanceGroupOperationsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListInstanceGroupOperationsResponse(
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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse.Builder.class);
}
public static final int OPERATIONS_FIELD_NUMBER = 1;
private java.util.List operations_;
/**
*
* Lists operations for the specified instance group.
*
* Lists operations for the specified instance 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 more than [ListInstanceGroupOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListInstanceGroupOperationsRequest.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.
*
* This token allows you to get the next page of results for list requests. If the number of results
* is more than [ListInstanceGroupOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListInstanceGroupOperationsRequest.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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse)) {
return super.equals(obj);
}
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse other = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse) 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse 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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse 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.instancegroup.ListInstanceGroupOperationsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupOperationsResponse)
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse.Builder.class);
}
// Construct using yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse.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.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupOperationsResponse_descriptor;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse getDefaultInstanceForType() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse build() {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse buildPartial() {
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse result = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse(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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse) {
return mergeFrom((yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse other) {
if (other == yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse.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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse) 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_;
/**
*
* Lists operations for the specified instance group.
*
* This token allows you to get the next page of results for list requests. If the number of results
* is more than [ListInstanceGroupOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListInstanceGroupOperationsRequest.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.
*
* This token allows you to get the next page of results for list requests. If the number of results
* is more than [ListInstanceGroupOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListInstanceGroupOperationsRequest.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 [ListInstanceGroupOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListInstanceGroupOperationsRequest.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 [ListInstanceGroupOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListInstanceGroupOperationsRequest.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 [ListInstanceGroupOperationsRequest.page_size], use the [next_page_token] as the value
* for the [ListInstanceGroupOperationsRequest.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.instancegroup.ListInstanceGroupOperationsResponse)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupOperationsResponse)
private static final yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse();
}
public static yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListInstanceGroupOperationsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListInstanceGroupOperationsResponse(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.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupOperationsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ListInstanceGroupLogRecordsRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupLogRecordsRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* ID of the InstanceGroup resource to list logs for.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
* ID of the InstanceGroup resource to list logs for.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for instanceGroupId.
*/
com.google.protobuf.ByteString
getInstanceGroupIdBytes();
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListInstanceGroupLogRecordsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
long getPageSize();
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListInstanceGroupLogRecordsResponse.next_page_token]
* returned by a previous list request.
*
* Page token. To get the next page of results,
* set [page_token] to the [ListInstanceGroupLogRecordsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @return The bytes for pageToken.
*/
com.google.protobuf.ByteString
getPageTokenBytes();
/**
*
* A filter expression that filters resources listed in the response.
* Currently you can use filtering only on the [InstanceGroup.name] field.
*
* ID of the InstanceGroup resource to list logs for.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for instanceGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceGroupIdBytes() {
java.lang.Object ref = instanceGroupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceGroupId_ = 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 [ListInstanceGroupLogRecordsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
private volatile java.lang.Object pageToken_;
/**
*
* Page token. To get the next page of results,
* set [page_token] to the [ListInstanceGroupLogRecordsResponse.next_page_token]
* returned by a previous list request.
*
* Page token. To get the next page of results,
* set [page_token] to the [ListInstanceGroupLogRecordsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @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.
* Currently you can use filtering only on the [InstanceGroup.name] field.
*
* ID of the InstanceGroup resource to list logs for.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.required) = true];
* @return The bytes for instanceGroupId.
*/
public com.google.protobuf.ByteString
getInstanceGroupIdBytes() {
java.lang.Object ref = instanceGroupId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instanceGroupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* ID of the InstanceGroup resource to list logs for.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.required) = true];
* @param value The instanceGroupId to set.
* @return This builder for chaining.
*/
public Builder setInstanceGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceGroupId_ = value;
onChanged();
return this;
}
/**
*
* ID of the InstanceGroup resource to list logs for.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.required) = true];
* @return This builder for chaining.
*/
public Builder clearInstanceGroupId() {
instanceGroupId_ = getDefaultInstance().getInstanceGroupId();
onChanged();
return this;
}
/**
*
* ID of the InstanceGroup resource to list logs for.
* To get the instance group ID, use a [InstanceGroupService.List] request.
*
*
* string instance_group_id = 1 [(.yandex.cloud.required) = true];
* @param value The bytes for instanceGroupId to set.
* @return This builder for chaining.
*/
public Builder setInstanceGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceGroupId_ = 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 [ListInstanceGroupLogRecordsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @return The pageSize.
*/
@java.lang.Override
public long getPageSize() {
return pageSize_;
}
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListInstanceGroupLogRecordsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
*
* int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"];
* @param value The pageSize to set.
* @return This builder for chaining.
*/
public Builder setPageSize(long value) {
pageSize_ = value;
onChanged();
return this;
}
/**
*
* The maximum number of results per page to return. If the number of available
* results is larger than [page_size],
* the service returns a [ListInstanceGroupLogRecordsResponse.next_page_token]
* that can be used to get the next page of results in subsequent list requests.
*
* Page token. To get the next page of results,
* set [page_token] to the [ListInstanceGroupLogRecordsResponse.next_page_token]
* returned by a previous list request.
*
* Page token. To get the next page of results,
* set [page_token] to the [ListInstanceGroupLogRecordsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @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 [ListInstanceGroupLogRecordsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @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 [ListInstanceGroupLogRecordsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @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 [ListInstanceGroupLogRecordsResponse.next_page_token]
* returned by a previous list request.
*
*
* string page_token = 3 [(.yandex.cloud.length) = "<=1000"];
* @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.
* Currently you can use filtering only on the [InstanceGroup.name] field.
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListInstanceGroupLogRecordsRequest.page_size], use
* [next_page_token] as the value
* for the [ListInstanceGroupLogRecordsRequest.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.
*
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListInstanceGroupLogRecordsRequest.page_size], use
* [next_page_token] as the value
* for the [ListInstanceGroupLogRecordsRequest.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.instancegroup.ListInstanceGroupLogRecordsResponse}
*/
public static final class ListInstanceGroupLogRecordsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.compute.v1.instancegroup.ListInstanceGroupLogRecordsResponse)
ListInstanceGroupLogRecordsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListInstanceGroupLogRecordsResponse.newBuilder() to construct.
private ListInstanceGroupLogRecordsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListInstanceGroupLogRecordsResponse() {
logRecords_ = java.util.Collections.emptyList();
nextPageToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListInstanceGroupLogRecordsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListInstanceGroupLogRecordsResponse(
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)) {
logRecords_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
logRecords_.add(
input.readMessage(yandex.cloud.api.compute.v1.instancegroup.InstanceGroupOuterClass.LogRecord.parser(), extensionRegistry));
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
nextPageToken_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
logRecords_ = java.util.Collections.unmodifiableList(logRecords_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupLogRecordsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.internal_static_yandex_cloud_compute_v1_instancegroup_ListInstanceGroupLogRecordsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse.class, yandex.cloud.api.compute.v1.instancegroup.InstanceGroupServiceOuterClass.ListInstanceGroupLogRecordsResponse.Builder.class);
}
public static final int LOG_RECORDS_FIELD_NUMBER = 1;
private java.util.List