All Downloads are FREE. Search and download functionalities are using the official Maven repository.

yandex.cloud.api.backup.v1.PolicyServiceOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/backup/v1/policy_service.proto

package yandex.cloud.api.backup.v1;

public final class PolicyServiceOuterClass {
  private PolicyServiceOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface ListPoliciesRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.ListPoliciesRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Either Folder ID or Compute Cloud instance ID should be set.
     * 
* * string folder_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * Either Folder ID or Compute Cloud instance ID should be set.
     * 
* * string folder_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** * string compute_instance_id = 2; * @return The computeInstanceId. */ java.lang.String getComputeInstanceId(); /** * string compute_instance_id = 2; * @return The bytes for computeInstanceId. */ com.google.protobuf.ByteString getComputeInstanceIdBytes(); } /** * Protobuf type {@code yandex.cloud.backup.v1.ListPoliciesRequest} */ public static final class ListPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.ListPoliciesRequest) ListPoliciesRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListPoliciesRequest.newBuilder() to construct. private ListPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListPoliciesRequest() { folderId_ = ""; computeInstanceId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListPoliciesRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListPoliciesRequest( 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 18: { java.lang.String s = input.readStringRequireUtf8(); computeInstanceId_ = 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.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ListPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ListPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest.Builder.class); } public static final int FOLDER_ID_FIELD_NUMBER = 1; private volatile java.lang.Object folderId_; /** *
     * Either Folder ID or Compute Cloud instance ID should be set.
     * 
* * string folder_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The folderId. */ @java.lang.Override public java.lang.String getFolderId() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderId_ = s; return s; } } /** *
     * Either Folder ID or Compute Cloud instance ID should be set.
     * 
* * string folder_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for folderId. */ @java.lang.Override public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMPUTE_INSTANCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object computeInstanceId_; /** * string compute_instance_id = 2; * @return The computeInstanceId. */ @java.lang.Override public java.lang.String getComputeInstanceId() { java.lang.Object ref = computeInstanceId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); computeInstanceId_ = s; return s; } } /** * string compute_instance_id = 2; * @return The bytes for computeInstanceId. */ @java.lang.Override public com.google.protobuf.ByteString getComputeInstanceIdBytes() { java.lang.Object ref = computeInstanceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); computeInstanceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, folderId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(computeInstanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, computeInstanceId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, folderId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(computeInstanceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, computeInstanceId_); } 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.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest other = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest) obj; if (!getFolderId() .equals(other.getFolderId())) return false; if (!getComputeInstanceId() .equals(other.getComputeInstanceId())) 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) + COMPUTE_INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + getComputeInstanceId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest 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.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest 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.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest 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.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest 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.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest 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.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest 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.backup.v1.ListPoliciesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.ListPoliciesRequest) yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ListPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ListPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest.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_ = ""; computeInstanceId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ListPoliciesRequest_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest build() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest buildPartial() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest result = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest(this); result.folderId_ = folderId_; result.computeInstanceId_ = computeInstanceId_; 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.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest other) { if (other == yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest.getDefaultInstance()) return this; if (!other.getFolderId().isEmpty()) { folderId_ = other.folderId_; onChanged(); } if (!other.getComputeInstanceId().isEmpty()) { computeInstanceId_ = other.computeInstanceId_; 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.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object folderId_ = ""; /** *
       * Either Folder ID or Compute Cloud instance ID should be set.
       * 
* * string folder_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The folderId. */ public java.lang.String getFolderId() { java.lang.Object ref = folderId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Either Folder ID or Compute Cloud instance ID should be set.
       * 
* * string folder_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return The bytes for folderId. */ public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Either Folder ID or Compute Cloud instance ID should be set.
       * 
* * string folder_id = 1 [(.yandex.cloud.length) = "<=50"]; * @param value The folderId to set. * @return This builder for chaining. */ public Builder setFolderId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } folderId_ = value; onChanged(); return this; } /** *
       * Either Folder ID or Compute Cloud instance ID should be set.
       * 
* * string folder_id = 1 [(.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** *
       * Either Folder ID or Compute Cloud instance ID should be set.
       * 
* * string folder_id = 1 [(.yandex.cloud.length) = "<=50"]; * @param value The bytes for folderId to set. * @return This builder for chaining. */ public Builder setFolderIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); folderId_ = value; onChanged(); return this; } private java.lang.Object computeInstanceId_ = ""; /** * string compute_instance_id = 2; * @return The computeInstanceId. */ public java.lang.String getComputeInstanceId() { java.lang.Object ref = computeInstanceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); computeInstanceId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string compute_instance_id = 2; * @return The bytes for computeInstanceId. */ public com.google.protobuf.ByteString getComputeInstanceIdBytes() { java.lang.Object ref = computeInstanceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); computeInstanceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string compute_instance_id = 2; * @param value The computeInstanceId to set. * @return This builder for chaining. */ public Builder setComputeInstanceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } computeInstanceId_ = value; onChanged(); return this; } /** * string compute_instance_id = 2; * @return This builder for chaining. */ public Builder clearComputeInstanceId() { computeInstanceId_ = getDefaultInstance().getComputeInstanceId(); onChanged(); return this; } /** * string compute_instance_id = 2; * @param value The bytes for computeInstanceId to set. * @return This builder for chaining. */ public Builder setComputeInstanceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); computeInstanceId_ = 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.backup.v1.ListPoliciesRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.ListPoliciesRequest) private static final yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest(); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListPoliciesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListPoliciesRequest(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.backup.v1.PolicyServiceOuterClass.ListPoliciesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListPoliciesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.ListPoliciesResponse) com.google.protobuf.MessageOrBuilder { /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ java.util.List getPoliciesList(); /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ yandex.cloud.api.backup.v1.PolicyOuterClass.Policy getPolicies(int index); /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ int getPoliciesCount(); /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ java.util.List getPoliciesOrBuilderList(); /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyOrBuilder getPoliciesOrBuilder( int index); } /** * Protobuf type {@code yandex.cloud.backup.v1.ListPoliciesResponse} */ public static final class ListPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.ListPoliciesResponse) ListPoliciesResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListPoliciesResponse.newBuilder() to construct. private ListPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListPoliciesResponse() { policies_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListPoliciesResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListPoliciesResponse( 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)) { policies_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } policies_.add( input.readMessage(yandex.cloud.api.backup.v1.PolicyOuterClass.Policy.parser(), extensionRegistry)); 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)) { policies_ = java.util.Collections.unmodifiableList(policies_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ListPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ListPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse.Builder.class); } public static final int POLICIES_FIELD_NUMBER = 1; private java.util.List policies_; /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ @java.lang.Override public java.util.List getPoliciesList() { return policies_; } /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ @java.lang.Override public java.util.List getPoliciesOrBuilderList() { return policies_; } /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ @java.lang.Override public int getPoliciesCount() { return policies_.size(); } /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.Policy getPolicies(int index) { return policies_.get(index); } /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyOrBuilder getPoliciesOrBuilder( int index) { return policies_.get(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 { for (int i = 0; i < policies_.size(); i++) { output.writeMessage(1, policies_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < policies_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, policies_.get(i)); } 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.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse other = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse) obj; if (!getPoliciesList() .equals(other.getPoliciesList())) 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 (getPoliciesCount() > 0) { hash = (37 * hash) + POLICIES_FIELD_NUMBER; hash = (53 * hash) + getPoliciesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse 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.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse 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.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse 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.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse 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.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse 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.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse 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.backup.v1.ListPoliciesResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.ListPoliciesResponse) yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ListPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ListPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPoliciesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (policiesBuilder_ == null) { policies_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { policiesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ListPoliciesResponse_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse build() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse buildPartial() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse result = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse(this); int from_bitField0_ = bitField0_; if (policiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { policies_ = java.util.Collections.unmodifiableList(policies_); bitField0_ = (bitField0_ & ~0x00000001); } result.policies_ = policies_; } else { result.policies_ = policiesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse other) { if (other == yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse.getDefaultInstance()) return this; if (policiesBuilder_ == null) { if (!other.policies_.isEmpty()) { if (policies_.isEmpty()) { policies_ = other.policies_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePoliciesIsMutable(); policies_.addAll(other.policies_); } onChanged(); } } else { if (!other.policies_.isEmpty()) { if (policiesBuilder_.isEmpty()) { policiesBuilder_.dispose(); policiesBuilder_ = null; policies_ = other.policies_; bitField0_ = (bitField0_ & ~0x00000001); policiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPoliciesFieldBuilder() : null; } else { policiesBuilder_.addAllMessages(other.policies_); } } } 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.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List policies_ = java.util.Collections.emptyList(); private void ensurePoliciesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { policies_ = new java.util.ArrayList(policies_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.Policy, yandex.cloud.api.backup.v1.PolicyOuterClass.Policy.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyOrBuilder> policiesBuilder_; /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ public java.util.List getPoliciesList() { if (policiesBuilder_ == null) { return java.util.Collections.unmodifiableList(policies_); } else { return policiesBuilder_.getMessageList(); } } /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ public int getPoliciesCount() { if (policiesBuilder_ == null) { return policies_.size(); } else { return policiesBuilder_.getCount(); } } /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.Policy getPolicies(int index) { if (policiesBuilder_ == null) { return policies_.get(index); } else { return policiesBuilder_.getMessage(index); } } /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ public Builder setPolicies( int index, yandex.cloud.api.backup.v1.PolicyOuterClass.Policy value) { if (policiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePoliciesIsMutable(); policies_.set(index, value); onChanged(); } else { policiesBuilder_.setMessage(index, value); } return this; } /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ public Builder setPolicies( int index, yandex.cloud.api.backup.v1.PolicyOuterClass.Policy.Builder builderForValue) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); policies_.set(index, builderForValue.build()); onChanged(); } else { policiesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ public Builder addPolicies(yandex.cloud.api.backup.v1.PolicyOuterClass.Policy value) { if (policiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePoliciesIsMutable(); policies_.add(value); onChanged(); } else { policiesBuilder_.addMessage(value); } return this; } /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ public Builder addPolicies( int index, yandex.cloud.api.backup.v1.PolicyOuterClass.Policy value) { if (policiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePoliciesIsMutable(); policies_.add(index, value); onChanged(); } else { policiesBuilder_.addMessage(index, value); } return this; } /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ public Builder addPolicies( yandex.cloud.api.backup.v1.PolicyOuterClass.Policy.Builder builderForValue) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); policies_.add(builderForValue.build()); onChanged(); } else { policiesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ public Builder addPolicies( int index, yandex.cloud.api.backup.v1.PolicyOuterClass.Policy.Builder builderForValue) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); policies_.add(index, builderForValue.build()); onChanged(); } else { policiesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ public Builder addAllPolicies( java.lang.Iterable values) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, policies_); onChanged(); } else { policiesBuilder_.addAllMessages(values); } return this; } /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ public Builder clearPolicies() { if (policiesBuilder_ == null) { policies_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { policiesBuilder_.clear(); } return this; } /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ public Builder removePolicies(int index) { if (policiesBuilder_ == null) { ensurePoliciesIsMutable(); policies_.remove(index); onChanged(); } else { policiesBuilder_.remove(index); } return this; } /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.Policy.Builder getPoliciesBuilder( int index) { return getPoliciesFieldBuilder().getBuilder(index); } /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyOrBuilder getPoliciesOrBuilder( int index) { if (policiesBuilder_ == null) { return policies_.get(index); } else { return policiesBuilder_.getMessageOrBuilder(index); } } /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ public java.util.List getPoliciesOrBuilderList() { if (policiesBuilder_ != null) { return policiesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(policies_); } } /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.Policy.Builder addPoliciesBuilder() { return getPoliciesFieldBuilder().addBuilder( yandex.cloud.api.backup.v1.PolicyOuterClass.Policy.getDefaultInstance()); } /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.Policy.Builder addPoliciesBuilder( int index) { return getPoliciesFieldBuilder().addBuilder( index, yandex.cloud.api.backup.v1.PolicyOuterClass.Policy.getDefaultInstance()); } /** * repeated .yandex.cloud.backup.v1.Policy policies = 1; */ public java.util.List getPoliciesBuilderList() { return getPoliciesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.Policy, yandex.cloud.api.backup.v1.PolicyOuterClass.Policy.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyOrBuilder> getPoliciesFieldBuilder() { if (policiesBuilder_ == null) { policiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.Policy, yandex.cloud.api.backup.v1.PolicyOuterClass.Policy.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyOrBuilder>( policies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); policies_ = null; } return policiesBuilder_; } @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.backup.v1.ListPoliciesResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.ListPoliciesResponse) private static final yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse(); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListPoliciesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListPoliciesResponse(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.backup.v1.PolicyServiceOuterClass.ListPoliciesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreatePolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.CreatePolicyRequest) com.google.protobuf.MessageOrBuilder { /** * string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The folderId. */ java.lang.String getFolderId(); /** * string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The name. */ java.lang.String getName(); /** * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * .yandex.cloud.backup.v1.PolicySettings settings = 3 [(.yandex.cloud.required) = true]; * @return Whether the settings field is set. */ boolean hasSettings(); /** * .yandex.cloud.backup.v1.PolicySettings settings = 3 [(.yandex.cloud.required) = true]; * @return The settings. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings getSettings(); /** * .yandex.cloud.backup.v1.PolicySettings settings = 3 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettingsOrBuilder getSettingsOrBuilder(); } /** * Protobuf type {@code yandex.cloud.backup.v1.CreatePolicyRequest} */ public static final class CreatePolicyRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.CreatePolicyRequest) CreatePolicyRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CreatePolicyRequest.newBuilder() to construct. private CreatePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreatePolicyRequest() { folderId_ = ""; name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreatePolicyRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreatePolicyRequest( 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 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 26: { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Builder subBuilder = null; if (settings_ != null) { subBuilder = settings_.toBuilder(); } settings_ = input.readMessage(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(settings_); settings_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_CreatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_CreatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest.Builder.class); } public static final int FOLDER_ID_FIELD_NUMBER = 1; private volatile java.lang.Object folderId_; /** * string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The folderId. */ @java.lang.Override public java.lang.String getFolderId() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderId_ = s; return s; } } /** * string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for folderId. */ @java.lang.Override public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SETTINGS_FIELD_NUMBER = 3; private yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings settings_; /** * .yandex.cloud.backup.v1.PolicySettings settings = 3 [(.yandex.cloud.required) = true]; * @return Whether the settings field is set. */ @java.lang.Override public boolean hasSettings() { return settings_ != null; } /** * .yandex.cloud.backup.v1.PolicySettings settings = 3 [(.yandex.cloud.required) = true]; * @return The settings. */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings getSettings() { return settings_ == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.getDefaultInstance() : settings_; } /** * .yandex.cloud.backup.v1.PolicySettings settings = 3 [(.yandex.cloud.required) = true]; */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettingsOrBuilder getSettingsOrBuilder() { return getSettings(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, folderId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (settings_ != null) { output.writeMessage(3, getSettings()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, folderId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (settings_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSettings()); } 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.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest other = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest) obj; if (!getFolderId() .equals(other.getFolderId())) return false; if (!getName() .equals(other.getName())) return false; if (hasSettings() != other.hasSettings()) return false; if (hasSettings()) { if (!getSettings() .equals(other.getSettings())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasSettings()) { hash = (37 * hash) + SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getSettings().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest 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.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest 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.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest 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.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest 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.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest 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.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest 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.backup.v1.CreatePolicyRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.CreatePolicyRequest) yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_CreatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_CreatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); folderId_ = ""; name_ = ""; if (settingsBuilder_ == null) { settings_ = null; } else { settings_ = null; settingsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_CreatePolicyRequest_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest build() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest buildPartial() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest result = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest(this); result.folderId_ = folderId_; result.name_ = name_; if (settingsBuilder_ == null) { result.settings_ = settings_; } else { result.settings_ = settingsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest other) { if (other == yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest.getDefaultInstance()) return this; if (!other.getFolderId().isEmpty()) { folderId_ = other.folderId_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.hasSettings()) { mergeSettings(other.getSettings()); } 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.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object folderId_ = ""; /** * string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The folderId. */ public java.lang.String getFolderId() { java.lang.Object ref = folderId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for folderId. */ public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The folderId to set. * @return This builder for chaining. */ public Builder setFolderId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } folderId_ = value; onChanged(); return this; } /** * string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** * string folder_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for folderId to set. * @return This builder for chaining. */ public Builder setFolderIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); folderId_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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; } } /** * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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; } /** * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings settings_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettingsOrBuilder> settingsBuilder_; /** * .yandex.cloud.backup.v1.PolicySettings settings = 3 [(.yandex.cloud.required) = true]; * @return Whether the settings field is set. */ public boolean hasSettings() { return settingsBuilder_ != null || settings_ != null; } /** * .yandex.cloud.backup.v1.PolicySettings settings = 3 [(.yandex.cloud.required) = true]; * @return The settings. */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings getSettings() { if (settingsBuilder_ == null) { return settings_ == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.getDefaultInstance() : settings_; } else { return settingsBuilder_.getMessage(); } } /** * .yandex.cloud.backup.v1.PolicySettings settings = 3 [(.yandex.cloud.required) = true]; */ public Builder setSettings(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings value) { if (settingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } settings_ = value; onChanged(); } else { settingsBuilder_.setMessage(value); } return this; } /** * .yandex.cloud.backup.v1.PolicySettings settings = 3 [(.yandex.cloud.required) = true]; */ public Builder setSettings( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Builder builderForValue) { if (settingsBuilder_ == null) { settings_ = builderForValue.build(); onChanged(); } else { settingsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .yandex.cloud.backup.v1.PolicySettings settings = 3 [(.yandex.cloud.required) = true]; */ public Builder mergeSettings(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings value) { if (settingsBuilder_ == null) { if (settings_ != null) { settings_ = yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.newBuilder(settings_).mergeFrom(value).buildPartial(); } else { settings_ = value; } onChanged(); } else { settingsBuilder_.mergeFrom(value); } return this; } /** * .yandex.cloud.backup.v1.PolicySettings settings = 3 [(.yandex.cloud.required) = true]; */ public Builder clearSettings() { if (settingsBuilder_ == null) { settings_ = null; onChanged(); } else { settings_ = null; settingsBuilder_ = null; } return this; } /** * .yandex.cloud.backup.v1.PolicySettings settings = 3 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Builder getSettingsBuilder() { onChanged(); return getSettingsFieldBuilder().getBuilder(); } /** * .yandex.cloud.backup.v1.PolicySettings settings = 3 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettingsOrBuilder getSettingsOrBuilder() { if (settingsBuilder_ != null) { return settingsBuilder_.getMessageOrBuilder(); } else { return settings_ == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.getDefaultInstance() : settings_; } } /** * .yandex.cloud.backup.v1.PolicySettings settings = 3 [(.yandex.cloud.required) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettingsOrBuilder> getSettingsFieldBuilder() { if (settingsBuilder_ == null) { settingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettingsOrBuilder>( getSettings(), getParentForChildren(), isClean()); settings_ = null; } return settingsBuilder_; } @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.backup.v1.CreatePolicyRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.CreatePolicyRequest) private static final yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest(); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreatePolicyRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreatePolicyRequest(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.backup.v1.PolicyServiceOuterClass.CreatePolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreatePolicyMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.CreatePolicyMetadata) com.google.protobuf.MessageOrBuilder { /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ java.lang.String getPolicyId(); /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ com.google.protobuf.ByteString getPolicyIdBytes(); } /** * Protobuf type {@code yandex.cloud.backup.v1.CreatePolicyMetadata} */ public static final class CreatePolicyMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.CreatePolicyMetadata) CreatePolicyMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use CreatePolicyMetadata.newBuilder() to construct. private CreatePolicyMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreatePolicyMetadata() { policyId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreatePolicyMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreatePolicyMetadata( 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(); policyId_ = 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.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_CreatePolicyMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_CreatePolicyMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata.Builder.class); } public static final int POLICY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object policyId_; /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ @java.lang.Override public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ @java.lang.Override public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyId_ = 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(policyId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyId_); } 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(policyId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyId_); } 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.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata other = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata) obj; if (!getPolicyId() .equals(other.getPolicyId())) 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) + POLICY_ID_FIELD_NUMBER; hash = (53 * hash) + getPolicyId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata 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.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata 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.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata 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.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata 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.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata 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.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata 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.backup.v1.CreatePolicyMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.CreatePolicyMetadata) yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_CreatePolicyMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_CreatePolicyMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata.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(); policyId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_CreatePolicyMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata build() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata buildPartial() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata result = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata(this); result.policyId_ = policyId_; 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.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata other) { if (other == yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata.getDefaultInstance()) return this; if (!other.getPolicyId().isEmpty()) { policyId_ = other.policyId_; 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.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object policyId_ = ""; /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The policyId to set. * @return This builder for chaining. */ public Builder setPolicyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } policyId_ = value; onChanged(); return this; } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearPolicyId() { policyId_ = getDefaultInstance().getPolicyId(); onChanged(); return this; } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for policyId to set. * @return This builder for chaining. */ public Builder setPolicyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); policyId_ = 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.backup.v1.CreatePolicyMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.CreatePolicyMetadata) private static final yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata(); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreatePolicyMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreatePolicyMetadata(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.backup.v1.PolicyServiceOuterClass.CreatePolicyMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.GetPolicyRequest) com.google.protobuf.MessageOrBuilder { /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ java.lang.String getPolicyId(); /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ com.google.protobuf.ByteString getPolicyIdBytes(); } /** * Protobuf type {@code yandex.cloud.backup.v1.GetPolicyRequest} */ public static final class GetPolicyRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.GetPolicyRequest) GetPolicyRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetPolicyRequest.newBuilder() to construct. private GetPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetPolicyRequest() { policyId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetPolicyRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetPolicyRequest( 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(); policyId_ = 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.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_GetPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_GetPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest.Builder.class); } public static final int POLICY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object policyId_; /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ @java.lang.Override public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ @java.lang.Override public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyId_ = 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(policyId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyId_); } 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(policyId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyId_); } 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.backup.v1.PolicyServiceOuterClass.GetPolicyRequest)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest other = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest) obj; if (!getPolicyId() .equals(other.getPolicyId())) 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) + POLICY_ID_FIELD_NUMBER; hash = (53 * hash) + getPolicyId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest 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.backup.v1.PolicyServiceOuterClass.GetPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest 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.backup.v1.PolicyServiceOuterClass.GetPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest 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.backup.v1.PolicyServiceOuterClass.GetPolicyRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest 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.backup.v1.PolicyServiceOuterClass.GetPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest 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.backup.v1.PolicyServiceOuterClass.GetPolicyRequest 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.backup.v1.GetPolicyRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.GetPolicyRequest) yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_GetPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_GetPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest.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(); policyId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_GetPolicyRequest_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest build() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest buildPartial() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest result = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest(this); result.policyId_ = policyId_; 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.backup.v1.PolicyServiceOuterClass.GetPolicyRequest) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest other) { if (other == yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest.getDefaultInstance()) return this; if (!other.getPolicyId().isEmpty()) { policyId_ = other.policyId_; 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.backup.v1.PolicyServiceOuterClass.GetPolicyRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object policyId_ = ""; /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The policyId to set. * @return This builder for chaining. */ public Builder setPolicyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } policyId_ = value; onChanged(); return this; } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearPolicyId() { policyId_ = getDefaultInstance().getPolicyId(); onChanged(); return this; } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for policyId to set. * @return This builder for chaining. */ public Builder setPolicyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); policyId_ = 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.backup.v1.GetPolicyRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.GetPolicyRequest) private static final yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest(); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.GetPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetPolicyRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetPolicyRequest(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.backup.v1.PolicyServiceOuterClass.GetPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdatePolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.UpdatePolicyRequest) com.google.protobuf.MessageOrBuilder { /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ java.lang.String getPolicyId(); /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ com.google.protobuf.ByteString getPolicyIdBytes(); /** * .yandex.cloud.backup.v1.PolicySettings settings = 2 [(.yandex.cloud.required) = true]; * @return Whether the settings field is set. */ boolean hasSettings(); /** * .yandex.cloud.backup.v1.PolicySettings settings = 2 [(.yandex.cloud.required) = true]; * @return The settings. */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings getSettings(); /** * .yandex.cloud.backup.v1.PolicySettings settings = 2 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettingsOrBuilder getSettingsOrBuilder(); } /** * Protobuf type {@code yandex.cloud.backup.v1.UpdatePolicyRequest} */ public static final class UpdatePolicyRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.UpdatePolicyRequest) UpdatePolicyRequestOrBuilder { private static final long serialVersionUID = 0L; // Use UpdatePolicyRequest.newBuilder() to construct. private UpdatePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdatePolicyRequest() { policyId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdatePolicyRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdatePolicyRequest( 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(); policyId_ = s; break; } case 18: { yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Builder subBuilder = null; if (settings_ != null) { subBuilder = settings_.toBuilder(); } settings_ = input.readMessage(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(settings_); settings_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_UpdatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_UpdatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest.Builder.class); } public static final int POLICY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object policyId_; /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ @java.lang.Override public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ @java.lang.Override public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SETTINGS_FIELD_NUMBER = 2; private yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings settings_; /** * .yandex.cloud.backup.v1.PolicySettings settings = 2 [(.yandex.cloud.required) = true]; * @return Whether the settings field is set. */ @java.lang.Override public boolean hasSettings() { return settings_ != null; } /** * .yandex.cloud.backup.v1.PolicySettings settings = 2 [(.yandex.cloud.required) = true]; * @return The settings. */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings getSettings() { return settings_ == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.getDefaultInstance() : settings_; } /** * .yandex.cloud.backup.v1.PolicySettings settings = 2 [(.yandex.cloud.required) = true]; */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettingsOrBuilder getSettingsOrBuilder() { return getSettings(); } 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(policyId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyId_); } if (settings_ != null) { output.writeMessage(2, getSettings()); } 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(policyId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyId_); } if (settings_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getSettings()); } 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.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest other = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest) obj; if (!getPolicyId() .equals(other.getPolicyId())) return false; if (hasSettings() != other.hasSettings()) return false; if (hasSettings()) { if (!getSettings() .equals(other.getSettings())) 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) + POLICY_ID_FIELD_NUMBER; hash = (53 * hash) + getPolicyId().hashCode(); if (hasSettings()) { hash = (37 * hash) + SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getSettings().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest 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.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest 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.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest 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.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest 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.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest 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.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest 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.backup.v1.UpdatePolicyRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.UpdatePolicyRequest) yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_UpdatePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_UpdatePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest.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(); policyId_ = ""; if (settingsBuilder_ == null) { settings_ = null; } else { settings_ = null; settingsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_UpdatePolicyRequest_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest build() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest buildPartial() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest result = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest(this); result.policyId_ = policyId_; if (settingsBuilder_ == null) { result.settings_ = settings_; } else { result.settings_ = settingsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest other) { if (other == yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest.getDefaultInstance()) return this; if (!other.getPolicyId().isEmpty()) { policyId_ = other.policyId_; onChanged(); } if (other.hasSettings()) { mergeSettings(other.getSettings()); } 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.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object policyId_ = ""; /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The policyId to set. * @return This builder for chaining. */ public Builder setPolicyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } policyId_ = value; onChanged(); return this; } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearPolicyId() { policyId_ = getDefaultInstance().getPolicyId(); onChanged(); return this; } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for policyId to set. * @return This builder for chaining. */ public Builder setPolicyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); policyId_ = value; onChanged(); return this; } private yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings settings_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettingsOrBuilder> settingsBuilder_; /** * .yandex.cloud.backup.v1.PolicySettings settings = 2 [(.yandex.cloud.required) = true]; * @return Whether the settings field is set. */ public boolean hasSettings() { return settingsBuilder_ != null || settings_ != null; } /** * .yandex.cloud.backup.v1.PolicySettings settings = 2 [(.yandex.cloud.required) = true]; * @return The settings. */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings getSettings() { if (settingsBuilder_ == null) { return settings_ == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.getDefaultInstance() : settings_; } else { return settingsBuilder_.getMessage(); } } /** * .yandex.cloud.backup.v1.PolicySettings settings = 2 [(.yandex.cloud.required) = true]; */ public Builder setSettings(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings value) { if (settingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } settings_ = value; onChanged(); } else { settingsBuilder_.setMessage(value); } return this; } /** * .yandex.cloud.backup.v1.PolicySettings settings = 2 [(.yandex.cloud.required) = true]; */ public Builder setSettings( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Builder builderForValue) { if (settingsBuilder_ == null) { settings_ = builderForValue.build(); onChanged(); } else { settingsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .yandex.cloud.backup.v1.PolicySettings settings = 2 [(.yandex.cloud.required) = true]; */ public Builder mergeSettings(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings value) { if (settingsBuilder_ == null) { if (settings_ != null) { settings_ = yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.newBuilder(settings_).mergeFrom(value).buildPartial(); } else { settings_ = value; } onChanged(); } else { settingsBuilder_.mergeFrom(value); } return this; } /** * .yandex.cloud.backup.v1.PolicySettings settings = 2 [(.yandex.cloud.required) = true]; */ public Builder clearSettings() { if (settingsBuilder_ == null) { settings_ = null; onChanged(); } else { settings_ = null; settingsBuilder_ = null; } return this; } /** * .yandex.cloud.backup.v1.PolicySettings settings = 2 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Builder getSettingsBuilder() { onChanged(); return getSettingsFieldBuilder().getBuilder(); } /** * .yandex.cloud.backup.v1.PolicySettings settings = 2 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettingsOrBuilder getSettingsOrBuilder() { if (settingsBuilder_ != null) { return settingsBuilder_.getMessageOrBuilder(); } else { return settings_ == null ? yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.getDefaultInstance() : settings_; } } /** * .yandex.cloud.backup.v1.PolicySettings settings = 2 [(.yandex.cloud.required) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettingsOrBuilder> getSettingsFieldBuilder() { if (settingsBuilder_ == null) { settingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettings.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicySettingsOrBuilder>( getSettings(), getParentForChildren(), isClean()); settings_ = null; } return settingsBuilder_; } @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.backup.v1.UpdatePolicyRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.UpdatePolicyRequest) private static final yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest(); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdatePolicyRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdatePolicyRequest(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.backup.v1.PolicyServiceOuterClass.UpdatePolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdatePolicyMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.UpdatePolicyMetadata) com.google.protobuf.MessageOrBuilder { /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ java.lang.String getPolicyId(); /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ com.google.protobuf.ByteString getPolicyIdBytes(); } /** * Protobuf type {@code yandex.cloud.backup.v1.UpdatePolicyMetadata} */ public static final class UpdatePolicyMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.UpdatePolicyMetadata) UpdatePolicyMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use UpdatePolicyMetadata.newBuilder() to construct. private UpdatePolicyMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdatePolicyMetadata() { policyId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdatePolicyMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdatePolicyMetadata( 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(); policyId_ = 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.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_UpdatePolicyMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_UpdatePolicyMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata.Builder.class); } public static final int POLICY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object policyId_; /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ @java.lang.Override public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ @java.lang.Override public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyId_ = 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(policyId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyId_); } 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(policyId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyId_); } 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.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata other = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata) obj; if (!getPolicyId() .equals(other.getPolicyId())) 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) + POLICY_ID_FIELD_NUMBER; hash = (53 * hash) + getPolicyId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata 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.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata 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.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata 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.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata 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.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata 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.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata 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.backup.v1.UpdatePolicyMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.UpdatePolicyMetadata) yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_UpdatePolicyMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_UpdatePolicyMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata.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(); policyId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_UpdatePolicyMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata build() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata buildPartial() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata result = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata(this); result.policyId_ = policyId_; 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.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata other) { if (other == yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata.getDefaultInstance()) return this; if (!other.getPolicyId().isEmpty()) { policyId_ = other.policyId_; 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.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object policyId_ = ""; /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The policyId to set. * @return This builder for chaining. */ public Builder setPolicyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } policyId_ = value; onChanged(); return this; } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearPolicyId() { policyId_ = getDefaultInstance().getPolicyId(); onChanged(); return this; } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for policyId to set. * @return This builder for chaining. */ public Builder setPolicyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); policyId_ = 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.backup.v1.UpdatePolicyMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.UpdatePolicyMetadata) private static final yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata(); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdatePolicyMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdatePolicyMetadata(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.backup.v1.PolicyServiceOuterClass.UpdatePolicyMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeletePolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.DeletePolicyRequest) com.google.protobuf.MessageOrBuilder { /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ java.lang.String getPolicyId(); /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ com.google.protobuf.ByteString getPolicyIdBytes(); } /** * Protobuf type {@code yandex.cloud.backup.v1.DeletePolicyRequest} */ public static final class DeletePolicyRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.DeletePolicyRequest) DeletePolicyRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DeletePolicyRequest.newBuilder() to construct. private DeletePolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeletePolicyRequest() { policyId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeletePolicyRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeletePolicyRequest( 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(); policyId_ = 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.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_DeletePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_DeletePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest.Builder.class); } public static final int POLICY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object policyId_; /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ @java.lang.Override public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ @java.lang.Override public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyId_ = 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(policyId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyId_); } 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(policyId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyId_); } 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.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest other = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest) obj; if (!getPolicyId() .equals(other.getPolicyId())) 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) + POLICY_ID_FIELD_NUMBER; hash = (53 * hash) + getPolicyId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest 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.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest 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.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest 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.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest 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.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest 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.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest 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.backup.v1.DeletePolicyRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.DeletePolicyRequest) yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_DeletePolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_DeletePolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest.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(); policyId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_DeletePolicyRequest_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest build() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest buildPartial() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest result = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest(this); result.policyId_ = policyId_; 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.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest other) { if (other == yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest.getDefaultInstance()) return this; if (!other.getPolicyId().isEmpty()) { policyId_ = other.policyId_; 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.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object policyId_ = ""; /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The policyId to set. * @return This builder for chaining. */ public Builder setPolicyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } policyId_ = value; onChanged(); return this; } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearPolicyId() { policyId_ = getDefaultInstance().getPolicyId(); onChanged(); return this; } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for policyId to set. * @return This builder for chaining. */ public Builder setPolicyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); policyId_ = 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.backup.v1.DeletePolicyRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.DeletePolicyRequest) private static final yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest(); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeletePolicyRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeletePolicyRequest(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.backup.v1.PolicyServiceOuterClass.DeletePolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeletePolicyMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.DeletePolicyMetadata) com.google.protobuf.MessageOrBuilder { /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ java.lang.String getPolicyId(); /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ com.google.protobuf.ByteString getPolicyIdBytes(); } /** * Protobuf type {@code yandex.cloud.backup.v1.DeletePolicyMetadata} */ public static final class DeletePolicyMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.DeletePolicyMetadata) DeletePolicyMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use DeletePolicyMetadata.newBuilder() to construct. private DeletePolicyMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeletePolicyMetadata() { policyId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeletePolicyMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeletePolicyMetadata( 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(); policyId_ = 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.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_DeletePolicyMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_DeletePolicyMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata.Builder.class); } public static final int POLICY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object policyId_; /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ @java.lang.Override public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ @java.lang.Override public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyId_ = 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(policyId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyId_); } 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(policyId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyId_); } 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.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata other = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata) obj; if (!getPolicyId() .equals(other.getPolicyId())) 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) + POLICY_ID_FIELD_NUMBER; hash = (53 * hash) + getPolicyId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata 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.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata 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.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata 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.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata 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.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata 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.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata 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.backup.v1.DeletePolicyMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.DeletePolicyMetadata) yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_DeletePolicyMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_DeletePolicyMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata.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(); policyId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_DeletePolicyMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata build() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata buildPartial() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata result = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata(this); result.policyId_ = policyId_; 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.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata other) { if (other == yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata.getDefaultInstance()) return this; if (!other.getPolicyId().isEmpty()) { policyId_ = other.policyId_; 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.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object policyId_ = ""; /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The policyId to set. * @return This builder for chaining. */ public Builder setPolicyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } policyId_ = value; onChanged(); return this; } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearPolicyId() { policyId_ = getDefaultInstance().getPolicyId(); onChanged(); return this; } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for policyId to set. * @return This builder for chaining. */ public Builder setPolicyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); policyId_ = 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.backup.v1.DeletePolicyMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.DeletePolicyMetadata) private static final yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata(); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeletePolicyMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeletePolicyMetadata(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.backup.v1.PolicyServiceOuterClass.DeletePolicyMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ApplyPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.ApplyPolicyRequest) com.google.protobuf.MessageOrBuilder { /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ java.lang.String getPolicyId(); /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ com.google.protobuf.ByteString getPolicyIdBytes(); /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The computeInstanceId. */ java.lang.String getComputeInstanceId(); /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for computeInstanceId. */ com.google.protobuf.ByteString getComputeInstanceIdBytes(); } /** * Protobuf type {@code yandex.cloud.backup.v1.ApplyPolicyRequest} */ public static final class ApplyPolicyRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.ApplyPolicyRequest) ApplyPolicyRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ApplyPolicyRequest.newBuilder() to construct. private ApplyPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ApplyPolicyRequest() { policyId_ = ""; computeInstanceId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ApplyPolicyRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ApplyPolicyRequest( 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(); policyId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); computeInstanceId_ = 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.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ApplyPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ApplyPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest.Builder.class); } public static final int POLICY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object policyId_; /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ @java.lang.Override public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ @java.lang.Override public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMPUTE_INSTANCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object computeInstanceId_; /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The computeInstanceId. */ @java.lang.Override public java.lang.String getComputeInstanceId() { java.lang.Object ref = computeInstanceId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); computeInstanceId_ = s; return s; } } /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for computeInstanceId. */ @java.lang.Override public com.google.protobuf.ByteString getComputeInstanceIdBytes() { java.lang.Object ref = computeInstanceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); computeInstanceId_ = 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(policyId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(computeInstanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, computeInstanceId_); } 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(policyId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(computeInstanceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, computeInstanceId_); } 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.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest other = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest) obj; if (!getPolicyId() .equals(other.getPolicyId())) return false; if (!getComputeInstanceId() .equals(other.getComputeInstanceId())) 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) + POLICY_ID_FIELD_NUMBER; hash = (53 * hash) + getPolicyId().hashCode(); hash = (37 * hash) + COMPUTE_INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + getComputeInstanceId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest 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.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest 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.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest 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.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest 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.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest 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.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest 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.backup.v1.ApplyPolicyRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.ApplyPolicyRequest) yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ApplyPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ApplyPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest.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(); policyId_ = ""; computeInstanceId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ApplyPolicyRequest_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest build() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest buildPartial() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest result = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest(this); result.policyId_ = policyId_; result.computeInstanceId_ = computeInstanceId_; 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.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest other) { if (other == yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest.getDefaultInstance()) return this; if (!other.getPolicyId().isEmpty()) { policyId_ = other.policyId_; onChanged(); } if (!other.getComputeInstanceId().isEmpty()) { computeInstanceId_ = other.computeInstanceId_; 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.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object policyId_ = ""; /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The policyId to set. * @return This builder for chaining. */ public Builder setPolicyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } policyId_ = value; onChanged(); return this; } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearPolicyId() { policyId_ = getDefaultInstance().getPolicyId(); onChanged(); return this; } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for policyId to set. * @return This builder for chaining. */ public Builder setPolicyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); policyId_ = value; onChanged(); return this; } private java.lang.Object computeInstanceId_ = ""; /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The computeInstanceId. */ public java.lang.String getComputeInstanceId() { java.lang.Object ref = computeInstanceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); computeInstanceId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for computeInstanceId. */ public com.google.protobuf.ByteString getComputeInstanceIdBytes() { java.lang.Object ref = computeInstanceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); computeInstanceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The computeInstanceId to set. * @return This builder for chaining. */ public Builder setComputeInstanceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } computeInstanceId_ = value; onChanged(); return this; } /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearComputeInstanceId() { computeInstanceId_ = getDefaultInstance().getComputeInstanceId(); onChanged(); return this; } /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for computeInstanceId to set. * @return This builder for chaining. */ public Builder setComputeInstanceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); computeInstanceId_ = 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.backup.v1.ApplyPolicyRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.ApplyPolicyRequest) private static final yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest(); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ApplyPolicyRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ApplyPolicyRequest(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.backup.v1.PolicyServiceOuterClass.ApplyPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ApplyPolicyMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.ApplyPolicyMetadata) com.google.protobuf.MessageOrBuilder { /** * string policy_id = 1; * @return The policyId. */ java.lang.String getPolicyId(); /** * string policy_id = 1; * @return The bytes for policyId. */ com.google.protobuf.ByteString getPolicyIdBytes(); /** * string compute_instance_id = 2; * @return The computeInstanceId. */ java.lang.String getComputeInstanceId(); /** * string compute_instance_id = 2; * @return The bytes for computeInstanceId. */ com.google.protobuf.ByteString getComputeInstanceIdBytes(); } /** * Protobuf type {@code yandex.cloud.backup.v1.ApplyPolicyMetadata} */ public static final class ApplyPolicyMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.ApplyPolicyMetadata) ApplyPolicyMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use ApplyPolicyMetadata.newBuilder() to construct. private ApplyPolicyMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ApplyPolicyMetadata() { policyId_ = ""; computeInstanceId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ApplyPolicyMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ApplyPolicyMetadata( 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(); policyId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); computeInstanceId_ = 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.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ApplyPolicyMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ApplyPolicyMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata.Builder.class); } public static final int POLICY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object policyId_; /** * string policy_id = 1; * @return The policyId. */ @java.lang.Override public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } } /** * string policy_id = 1; * @return The bytes for policyId. */ @java.lang.Override public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMPUTE_INSTANCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object computeInstanceId_; /** * string compute_instance_id = 2; * @return The computeInstanceId. */ @java.lang.Override public java.lang.String getComputeInstanceId() { java.lang.Object ref = computeInstanceId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); computeInstanceId_ = s; return s; } } /** * string compute_instance_id = 2; * @return The bytes for computeInstanceId. */ @java.lang.Override public com.google.protobuf.ByteString getComputeInstanceIdBytes() { java.lang.Object ref = computeInstanceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); computeInstanceId_ = 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(policyId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(computeInstanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, computeInstanceId_); } 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(policyId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(computeInstanceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, computeInstanceId_); } 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.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata other = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata) obj; if (!getPolicyId() .equals(other.getPolicyId())) return false; if (!getComputeInstanceId() .equals(other.getComputeInstanceId())) 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) + POLICY_ID_FIELD_NUMBER; hash = (53 * hash) + getPolicyId().hashCode(); hash = (37 * hash) + COMPUTE_INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + getComputeInstanceId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata 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.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata 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.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata 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.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata 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.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata 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.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata 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.backup.v1.ApplyPolicyMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.ApplyPolicyMetadata) yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ApplyPolicyMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ApplyPolicyMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata.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(); policyId_ = ""; computeInstanceId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ApplyPolicyMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata build() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata buildPartial() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata result = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata(this); result.policyId_ = policyId_; result.computeInstanceId_ = computeInstanceId_; 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.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata other) { if (other == yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata.getDefaultInstance()) return this; if (!other.getPolicyId().isEmpty()) { policyId_ = other.policyId_; onChanged(); } if (!other.getComputeInstanceId().isEmpty()) { computeInstanceId_ = other.computeInstanceId_; 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.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object policyId_ = ""; /** * string policy_id = 1; * @return The policyId. */ public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string policy_id = 1; * @return The bytes for policyId. */ public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string policy_id = 1; * @param value The policyId to set. * @return This builder for chaining. */ public Builder setPolicyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } policyId_ = value; onChanged(); return this; } /** * string policy_id = 1; * @return This builder for chaining. */ public Builder clearPolicyId() { policyId_ = getDefaultInstance().getPolicyId(); onChanged(); return this; } /** * string policy_id = 1; * @param value The bytes for policyId to set. * @return This builder for chaining. */ public Builder setPolicyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); policyId_ = value; onChanged(); return this; } private java.lang.Object computeInstanceId_ = ""; /** * string compute_instance_id = 2; * @return The computeInstanceId. */ public java.lang.String getComputeInstanceId() { java.lang.Object ref = computeInstanceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); computeInstanceId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string compute_instance_id = 2; * @return The bytes for computeInstanceId. */ public com.google.protobuf.ByteString getComputeInstanceIdBytes() { java.lang.Object ref = computeInstanceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); computeInstanceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string compute_instance_id = 2; * @param value The computeInstanceId to set. * @return This builder for chaining. */ public Builder setComputeInstanceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } computeInstanceId_ = value; onChanged(); return this; } /** * string compute_instance_id = 2; * @return This builder for chaining. */ public Builder clearComputeInstanceId() { computeInstanceId_ = getDefaultInstance().getComputeInstanceId(); onChanged(); return this; } /** * string compute_instance_id = 2; * @param value The bytes for computeInstanceId to set. * @return This builder for chaining. */ public Builder setComputeInstanceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); computeInstanceId_ = 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.backup.v1.ApplyPolicyMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.ApplyPolicyMetadata) private static final yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata(); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ApplyPolicyMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ApplyPolicyMetadata(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.backup.v1.PolicyServiceOuterClass.ApplyPolicyMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListApplicationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.ListApplicationsRequest) com.google.protobuf.MessageOrBuilder { /** * string folder_id = 1; * @return Whether the folderId field is set. */ boolean hasFolderId(); /** * string folder_id = 1; * @return The folderId. */ java.lang.String getFolderId(); /** * string folder_id = 1; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** * string policy_id = 2; * @return Whether the policyId field is set. */ boolean hasPolicyId(); /** * string policy_id = 2; * @return The policyId. */ java.lang.String getPolicyId(); /** * string policy_id = 2; * @return The bytes for policyId. */ com.google.protobuf.ByteString getPolicyIdBytes(); /** * string compute_instance_id = 3; * @return Whether the computeInstanceId field is set. */ boolean hasComputeInstanceId(); /** * string compute_instance_id = 3; * @return The computeInstanceId. */ java.lang.String getComputeInstanceId(); /** * string compute_instance_id = 3; * @return The bytes for computeInstanceId. */ com.google.protobuf.ByteString getComputeInstanceIdBytes(); public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest.IdCase getIdCase(); } /** * Protobuf type {@code yandex.cloud.backup.v1.ListApplicationsRequest} */ public static final class ListApplicationsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.ListApplicationsRequest) ListApplicationsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListApplicationsRequest.newBuilder() to construct. private ListApplicationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListApplicationsRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListApplicationsRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListApplicationsRequest( 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(); idCase_ = 1; id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); idCase_ = 2; id_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); idCase_ = 3; id_ = 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.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ListApplicationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ListApplicationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest.Builder.class); } private int idCase_ = 0; private java.lang.Object id_; public enum IdCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FOLDER_ID(1), POLICY_ID(2), COMPUTE_INSTANCE_ID(3), ID_NOT_SET(0); private final int value; private IdCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static IdCase valueOf(int value) { return forNumber(value); } public static IdCase forNumber(int value) { switch (value) { case 1: return FOLDER_ID; case 2: return POLICY_ID; case 3: return COMPUTE_INSTANCE_ID; case 0: return ID_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public IdCase getIdCase() { return IdCase.forNumber( idCase_); } public static final int FOLDER_ID_FIELD_NUMBER = 1; /** * string folder_id = 1; * @return Whether the folderId field is set. */ public boolean hasFolderId() { return idCase_ == 1; } /** * string folder_id = 1; * @return The folderId. */ public java.lang.String getFolderId() { java.lang.Object ref = ""; if (idCase_ == 1) { ref = id_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (idCase_ == 1) { id_ = s; } return s; } } /** * string folder_id = 1; * @return The bytes for folderId. */ public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = ""; if (idCase_ == 1) { ref = id_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (idCase_ == 1) { id_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int POLICY_ID_FIELD_NUMBER = 2; /** * string policy_id = 2; * @return Whether the policyId field is set. */ public boolean hasPolicyId() { return idCase_ == 2; } /** * string policy_id = 2; * @return The policyId. */ public java.lang.String getPolicyId() { java.lang.Object ref = ""; if (idCase_ == 2) { ref = id_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (idCase_ == 2) { id_ = s; } return s; } } /** * string policy_id = 2; * @return The bytes for policyId. */ public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = ""; if (idCase_ == 2) { ref = id_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (idCase_ == 2) { id_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMPUTE_INSTANCE_ID_FIELD_NUMBER = 3; /** * string compute_instance_id = 3; * @return Whether the computeInstanceId field is set. */ public boolean hasComputeInstanceId() { return idCase_ == 3; } /** * string compute_instance_id = 3; * @return The computeInstanceId. */ public java.lang.String getComputeInstanceId() { java.lang.Object ref = ""; if (idCase_ == 3) { ref = id_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (idCase_ == 3) { id_ = s; } return s; } } /** * string compute_instance_id = 3; * @return The bytes for computeInstanceId. */ public com.google.protobuf.ByteString getComputeInstanceIdBytes() { java.lang.Object ref = ""; if (idCase_ == 3) { ref = id_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (idCase_ == 3) { id_ = 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 (idCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (idCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); } if (idCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, id_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (idCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (idCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); } if (idCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, id_); } 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.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest other = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest) obj; if (!getIdCase().equals(other.getIdCase())) return false; switch (idCase_) { case 1: if (!getFolderId() .equals(other.getFolderId())) return false; break; case 2: if (!getPolicyId() .equals(other.getPolicyId())) return false; break; case 3: if (!getComputeInstanceId() .equals(other.getComputeInstanceId())) return false; break; case 0: default: } 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(); switch (idCase_) { case 1: hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); break; case 2: hash = (37 * hash) + POLICY_ID_FIELD_NUMBER; hash = (53 * hash) + getPolicyId().hashCode(); break; case 3: hash = (37 * hash) + COMPUTE_INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + getComputeInstanceId().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest 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.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest 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.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest 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.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest 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.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest 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.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest 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.backup.v1.ListApplicationsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.ListApplicationsRequest) yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ListApplicationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ListApplicationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest.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(); idCase_ = 0; id_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ListApplicationsRequest_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest build() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest buildPartial() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest result = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest(this); if (idCase_ == 1) { result.id_ = id_; } if (idCase_ == 2) { result.id_ = id_; } if (idCase_ == 3) { result.id_ = id_; } result.idCase_ = idCase_; 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.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest other) { if (other == yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest.getDefaultInstance()) return this; switch (other.getIdCase()) { case FOLDER_ID: { idCase_ = 1; id_ = other.id_; onChanged(); break; } case POLICY_ID: { idCase_ = 2; id_ = other.id_; onChanged(); break; } case COMPUTE_INSTANCE_ID: { idCase_ = 3; id_ = other.id_; onChanged(); break; } case ID_NOT_SET: { break; } } 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.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int idCase_ = 0; private java.lang.Object id_; public IdCase getIdCase() { return IdCase.forNumber( idCase_); } public Builder clearId() { idCase_ = 0; id_ = null; onChanged(); return this; } /** * string folder_id = 1; * @return Whether the folderId field is set. */ @java.lang.Override public boolean hasFolderId() { return idCase_ == 1; } /** * string folder_id = 1; * @return The folderId. */ @java.lang.Override public java.lang.String getFolderId() { java.lang.Object ref = ""; if (idCase_ == 1) { ref = id_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (idCase_ == 1) { id_ = s; } return s; } else { return (java.lang.String) ref; } } /** * string folder_id = 1; * @return The bytes for folderId. */ @java.lang.Override public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = ""; if (idCase_ == 1) { ref = id_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (idCase_ == 1) { id_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string folder_id = 1; * @param value The folderId to set. * @return This builder for chaining. */ public Builder setFolderId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } idCase_ = 1; id_ = value; onChanged(); return this; } /** * string folder_id = 1; * @return This builder for chaining. */ public Builder clearFolderId() { if (idCase_ == 1) { idCase_ = 0; id_ = null; onChanged(); } return this; } /** * string folder_id = 1; * @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); idCase_ = 1; id_ = value; onChanged(); return this; } /** * string policy_id = 2; * @return Whether the policyId field is set. */ @java.lang.Override public boolean hasPolicyId() { return idCase_ == 2; } /** * string policy_id = 2; * @return The policyId. */ @java.lang.Override public java.lang.String getPolicyId() { java.lang.Object ref = ""; if (idCase_ == 2) { ref = id_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (idCase_ == 2) { id_ = s; } return s; } else { return (java.lang.String) ref; } } /** * string policy_id = 2; * @return The bytes for policyId. */ @java.lang.Override public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = ""; if (idCase_ == 2) { ref = id_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (idCase_ == 2) { id_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string policy_id = 2; * @param value The policyId to set. * @return This builder for chaining. */ public Builder setPolicyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } idCase_ = 2; id_ = value; onChanged(); return this; } /** * string policy_id = 2; * @return This builder for chaining. */ public Builder clearPolicyId() { if (idCase_ == 2) { idCase_ = 0; id_ = null; onChanged(); } return this; } /** * string policy_id = 2; * @param value The bytes for policyId to set. * @return This builder for chaining. */ public Builder setPolicyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); idCase_ = 2; id_ = value; onChanged(); return this; } /** * string compute_instance_id = 3; * @return Whether the computeInstanceId field is set. */ @java.lang.Override public boolean hasComputeInstanceId() { return idCase_ == 3; } /** * string compute_instance_id = 3; * @return The computeInstanceId. */ @java.lang.Override public java.lang.String getComputeInstanceId() { java.lang.Object ref = ""; if (idCase_ == 3) { ref = id_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (idCase_ == 3) { id_ = s; } return s; } else { return (java.lang.String) ref; } } /** * string compute_instance_id = 3; * @return The bytes for computeInstanceId. */ @java.lang.Override public com.google.protobuf.ByteString getComputeInstanceIdBytes() { java.lang.Object ref = ""; if (idCase_ == 3) { ref = id_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (idCase_ == 3) { id_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string compute_instance_id = 3; * @param value The computeInstanceId to set. * @return This builder for chaining. */ public Builder setComputeInstanceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } idCase_ = 3; id_ = value; onChanged(); return this; } /** * string compute_instance_id = 3; * @return This builder for chaining. */ public Builder clearComputeInstanceId() { if (idCase_ == 3) { idCase_ = 0; id_ = null; onChanged(); } return this; } /** * string compute_instance_id = 3; * @param value The bytes for computeInstanceId to set. * @return This builder for chaining. */ public Builder setComputeInstanceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); idCase_ = 3; id_ = 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.backup.v1.ListApplicationsRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.ListApplicationsRequest) private static final yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest(); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListApplicationsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListApplicationsRequest(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.backup.v1.PolicyServiceOuterClass.ListApplicationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListApplicationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.ListApplicationsResponse) com.google.protobuf.MessageOrBuilder { /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ java.util.List getApplicationsList(); /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplication getApplications(int index); /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ int getApplicationsCount(); /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ java.util.List getApplicationsOrBuilderList(); /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplicationOrBuilder getApplicationsOrBuilder( int index); } /** * Protobuf type {@code yandex.cloud.backup.v1.ListApplicationsResponse} */ public static final class ListApplicationsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.ListApplicationsResponse) ListApplicationsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListApplicationsResponse.newBuilder() to construct. private ListApplicationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListApplicationsResponse() { applications_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListApplicationsResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListApplicationsResponse( 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)) { applications_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } applications_.add( input.readMessage(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplication.parser(), extensionRegistry)); 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)) { applications_ = java.util.Collections.unmodifiableList(applications_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ListApplicationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ListApplicationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse.Builder.class); } public static final int APPLICATIONS_FIELD_NUMBER = 1; private java.util.List applications_; /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ @java.lang.Override public java.util.List getApplicationsList() { return applications_; } /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ @java.lang.Override public java.util.List getApplicationsOrBuilderList() { return applications_; } /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ @java.lang.Override public int getApplicationsCount() { return applications_.size(); } /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplication getApplications(int index) { return applications_.get(index); } /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ @java.lang.Override public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplicationOrBuilder getApplicationsOrBuilder( int index) { return applications_.get(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 { for (int i = 0; i < applications_.size(); i++) { output.writeMessage(1, applications_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < applications_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, applications_.get(i)); } 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.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse other = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse) obj; if (!getApplicationsList() .equals(other.getApplicationsList())) 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 (getApplicationsCount() > 0) { hash = (37 * hash) + APPLICATIONS_FIELD_NUMBER; hash = (53 * hash) + getApplicationsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse 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.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse 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.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse 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.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse 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.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse 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.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse 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.backup.v1.ListApplicationsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.ListApplicationsResponse) yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ListApplicationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ListApplicationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getApplicationsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (applicationsBuilder_ == null) { applications_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { applicationsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ListApplicationsResponse_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse build() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse buildPartial() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse result = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse(this); int from_bitField0_ = bitField0_; if (applicationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { applications_ = java.util.Collections.unmodifiableList(applications_); bitField0_ = (bitField0_ & ~0x00000001); } result.applications_ = applications_; } else { result.applications_ = applicationsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse other) { if (other == yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse.getDefaultInstance()) return this; if (applicationsBuilder_ == null) { if (!other.applications_.isEmpty()) { if (applications_.isEmpty()) { applications_ = other.applications_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureApplicationsIsMutable(); applications_.addAll(other.applications_); } onChanged(); } } else { if (!other.applications_.isEmpty()) { if (applicationsBuilder_.isEmpty()) { applicationsBuilder_.dispose(); applicationsBuilder_ = null; applications_ = other.applications_; bitField0_ = (bitField0_ & ~0x00000001); applicationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getApplicationsFieldBuilder() : null; } else { applicationsBuilder_.addAllMessages(other.applications_); } } } 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.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List applications_ = java.util.Collections.emptyList(); private void ensureApplicationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { applications_ = new java.util.ArrayList(applications_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplication, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplication.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplicationOrBuilder> applicationsBuilder_; /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ public java.util.List getApplicationsList() { if (applicationsBuilder_ == null) { return java.util.Collections.unmodifiableList(applications_); } else { return applicationsBuilder_.getMessageList(); } } /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ public int getApplicationsCount() { if (applicationsBuilder_ == null) { return applications_.size(); } else { return applicationsBuilder_.getCount(); } } /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplication getApplications(int index) { if (applicationsBuilder_ == null) { return applications_.get(index); } else { return applicationsBuilder_.getMessage(index); } } /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ public Builder setApplications( int index, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplication value) { if (applicationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureApplicationsIsMutable(); applications_.set(index, value); onChanged(); } else { applicationsBuilder_.setMessage(index, value); } return this; } /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ public Builder setApplications( int index, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplication.Builder builderForValue) { if (applicationsBuilder_ == null) { ensureApplicationsIsMutable(); applications_.set(index, builderForValue.build()); onChanged(); } else { applicationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ public Builder addApplications(yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplication value) { if (applicationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureApplicationsIsMutable(); applications_.add(value); onChanged(); } else { applicationsBuilder_.addMessage(value); } return this; } /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ public Builder addApplications( int index, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplication value) { if (applicationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureApplicationsIsMutable(); applications_.add(index, value); onChanged(); } else { applicationsBuilder_.addMessage(index, value); } return this; } /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ public Builder addApplications( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplication.Builder builderForValue) { if (applicationsBuilder_ == null) { ensureApplicationsIsMutable(); applications_.add(builderForValue.build()); onChanged(); } else { applicationsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ public Builder addApplications( int index, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplication.Builder builderForValue) { if (applicationsBuilder_ == null) { ensureApplicationsIsMutable(); applications_.add(index, builderForValue.build()); onChanged(); } else { applicationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ public Builder addAllApplications( java.lang.Iterable values) { if (applicationsBuilder_ == null) { ensureApplicationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, applications_); onChanged(); } else { applicationsBuilder_.addAllMessages(values); } return this; } /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ public Builder clearApplications() { if (applicationsBuilder_ == null) { applications_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { applicationsBuilder_.clear(); } return this; } /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ public Builder removeApplications(int index) { if (applicationsBuilder_ == null) { ensureApplicationsIsMutable(); applications_.remove(index); onChanged(); } else { applicationsBuilder_.remove(index); } return this; } /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplication.Builder getApplicationsBuilder( int index) { return getApplicationsFieldBuilder().getBuilder(index); } /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplicationOrBuilder getApplicationsOrBuilder( int index) { if (applicationsBuilder_ == null) { return applications_.get(index); } else { return applicationsBuilder_.getMessageOrBuilder(index); } } /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ public java.util.List getApplicationsOrBuilderList() { if (applicationsBuilder_ != null) { return applicationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(applications_); } } /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplication.Builder addApplicationsBuilder() { return getApplicationsFieldBuilder().addBuilder( yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplication.getDefaultInstance()); } /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ public yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplication.Builder addApplicationsBuilder( int index) { return getApplicationsFieldBuilder().addBuilder( index, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplication.getDefaultInstance()); } /** * repeated .yandex.cloud.backup.v1.PolicyApplication applications = 1; */ public java.util.List getApplicationsBuilderList() { return getApplicationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplication, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplication.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplicationOrBuilder> getApplicationsFieldBuilder() { if (applicationsBuilder_ == null) { applicationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplication, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplication.Builder, yandex.cloud.api.backup.v1.PolicyOuterClass.PolicyApplicationOrBuilder>( applications_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); applications_ = null; } return applicationsBuilder_; } @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.backup.v1.ListApplicationsResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.ListApplicationsResponse) private static final yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse(); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListApplicationsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListApplicationsResponse(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.backup.v1.PolicyServiceOuterClass.ListApplicationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExecuteRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.ExecuteRequest) com.google.protobuf.MessageOrBuilder { /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ java.lang.String getPolicyId(); /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ com.google.protobuf.ByteString getPolicyIdBytes(); /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The computeInstanceId. */ java.lang.String getComputeInstanceId(); /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for computeInstanceId. */ com.google.protobuf.ByteString getComputeInstanceIdBytes(); } /** * Protobuf type {@code yandex.cloud.backup.v1.ExecuteRequest} */ public static final class ExecuteRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.ExecuteRequest) ExecuteRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ExecuteRequest.newBuilder() to construct. private ExecuteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExecuteRequest() { policyId_ = ""; computeInstanceId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExecuteRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExecuteRequest( 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(); policyId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); computeInstanceId_ = 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.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ExecuteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ExecuteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest.Builder.class); } public static final int POLICY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object policyId_; /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ @java.lang.Override public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ @java.lang.Override public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMPUTE_INSTANCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object computeInstanceId_; /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The computeInstanceId. */ @java.lang.Override public java.lang.String getComputeInstanceId() { java.lang.Object ref = computeInstanceId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); computeInstanceId_ = s; return s; } } /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for computeInstanceId. */ @java.lang.Override public com.google.protobuf.ByteString getComputeInstanceIdBytes() { java.lang.Object ref = computeInstanceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); computeInstanceId_ = 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(policyId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(computeInstanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, computeInstanceId_); } 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(policyId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(computeInstanceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, computeInstanceId_); } 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.backup.v1.PolicyServiceOuterClass.ExecuteRequest)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest other = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest) obj; if (!getPolicyId() .equals(other.getPolicyId())) return false; if (!getComputeInstanceId() .equals(other.getComputeInstanceId())) 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) + POLICY_ID_FIELD_NUMBER; hash = (53 * hash) + getPolicyId().hashCode(); hash = (37 * hash) + COMPUTE_INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + getComputeInstanceId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest 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.backup.v1.PolicyServiceOuterClass.ExecuteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest 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.backup.v1.PolicyServiceOuterClass.ExecuteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest 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.backup.v1.PolicyServiceOuterClass.ExecuteRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest 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.backup.v1.PolicyServiceOuterClass.ExecuteRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest 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.backup.v1.PolicyServiceOuterClass.ExecuteRequest 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.backup.v1.ExecuteRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.ExecuteRequest) yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ExecuteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ExecuteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest.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(); policyId_ = ""; computeInstanceId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ExecuteRequest_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest build() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest buildPartial() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest result = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest(this); result.policyId_ = policyId_; result.computeInstanceId_ = computeInstanceId_; 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.backup.v1.PolicyServiceOuterClass.ExecuteRequest) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest other) { if (other == yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest.getDefaultInstance()) return this; if (!other.getPolicyId().isEmpty()) { policyId_ = other.policyId_; onChanged(); } if (!other.getComputeInstanceId().isEmpty()) { computeInstanceId_ = other.computeInstanceId_; 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.backup.v1.PolicyServiceOuterClass.ExecuteRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object policyId_ = ""; /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The policyId to set. * @return This builder for chaining. */ public Builder setPolicyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } policyId_ = value; onChanged(); return this; } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearPolicyId() { policyId_ = getDefaultInstance().getPolicyId(); onChanged(); return this; } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for policyId to set. * @return This builder for chaining. */ public Builder setPolicyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); policyId_ = value; onChanged(); return this; } private java.lang.Object computeInstanceId_ = ""; /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The computeInstanceId. */ public java.lang.String getComputeInstanceId() { java.lang.Object ref = computeInstanceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); computeInstanceId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for computeInstanceId. */ public com.google.protobuf.ByteString getComputeInstanceIdBytes() { java.lang.Object ref = computeInstanceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); computeInstanceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The computeInstanceId to set. * @return This builder for chaining. */ public Builder setComputeInstanceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } computeInstanceId_ = value; onChanged(); return this; } /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearComputeInstanceId() { computeInstanceId_ = getDefaultInstance().getComputeInstanceId(); onChanged(); return this; } /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for computeInstanceId to set. * @return This builder for chaining. */ public Builder setComputeInstanceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); computeInstanceId_ = 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.backup.v1.ExecuteRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.ExecuteRequest) private static final yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest(); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExecuteRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExecuteRequest(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.backup.v1.PolicyServiceOuterClass.ExecuteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExecuteMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.ExecuteMetadata) com.google.protobuf.MessageOrBuilder { /** * string policy_id = 1; * @return The policyId. */ java.lang.String getPolicyId(); /** * string policy_id = 1; * @return The bytes for policyId. */ com.google.protobuf.ByteString getPolicyIdBytes(); /** * string compute_instance_id = 2; * @return The computeInstanceId. */ java.lang.String getComputeInstanceId(); /** * string compute_instance_id = 2; * @return The bytes for computeInstanceId. */ com.google.protobuf.ByteString getComputeInstanceIdBytes(); } /** * Protobuf type {@code yandex.cloud.backup.v1.ExecuteMetadata} */ public static final class ExecuteMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.ExecuteMetadata) ExecuteMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use ExecuteMetadata.newBuilder() to construct. private ExecuteMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExecuteMetadata() { policyId_ = ""; computeInstanceId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExecuteMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExecuteMetadata( 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(); policyId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); computeInstanceId_ = 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.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ExecuteMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ExecuteMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata.Builder.class); } public static final int POLICY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object policyId_; /** * string policy_id = 1; * @return The policyId. */ @java.lang.Override public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } } /** * string policy_id = 1; * @return The bytes for policyId. */ @java.lang.Override public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMPUTE_INSTANCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object computeInstanceId_; /** * string compute_instance_id = 2; * @return The computeInstanceId. */ @java.lang.Override public java.lang.String getComputeInstanceId() { java.lang.Object ref = computeInstanceId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); computeInstanceId_ = s; return s; } } /** * string compute_instance_id = 2; * @return The bytes for computeInstanceId. */ @java.lang.Override public com.google.protobuf.ByteString getComputeInstanceIdBytes() { java.lang.Object ref = computeInstanceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); computeInstanceId_ = 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(policyId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(computeInstanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, computeInstanceId_); } 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(policyId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(computeInstanceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, computeInstanceId_); } 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.backup.v1.PolicyServiceOuterClass.ExecuteMetadata)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata other = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata) obj; if (!getPolicyId() .equals(other.getPolicyId())) return false; if (!getComputeInstanceId() .equals(other.getComputeInstanceId())) 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) + POLICY_ID_FIELD_NUMBER; hash = (53 * hash) + getPolicyId().hashCode(); hash = (37 * hash) + COMPUTE_INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + getComputeInstanceId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata 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.backup.v1.PolicyServiceOuterClass.ExecuteMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata 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.backup.v1.PolicyServiceOuterClass.ExecuteMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata 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.backup.v1.PolicyServiceOuterClass.ExecuteMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata 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.backup.v1.PolicyServiceOuterClass.ExecuteMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata 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.backup.v1.PolicyServiceOuterClass.ExecuteMetadata 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.backup.v1.ExecuteMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.ExecuteMetadata) yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ExecuteMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ExecuteMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata.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(); policyId_ = ""; computeInstanceId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_ExecuteMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata build() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata buildPartial() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata result = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata(this); result.policyId_ = policyId_; result.computeInstanceId_ = computeInstanceId_; 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.backup.v1.PolicyServiceOuterClass.ExecuteMetadata) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata other) { if (other == yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata.getDefaultInstance()) return this; if (!other.getPolicyId().isEmpty()) { policyId_ = other.policyId_; onChanged(); } if (!other.getComputeInstanceId().isEmpty()) { computeInstanceId_ = other.computeInstanceId_; 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.backup.v1.PolicyServiceOuterClass.ExecuteMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object policyId_ = ""; /** * string policy_id = 1; * @return The policyId. */ public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string policy_id = 1; * @return The bytes for policyId. */ public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string policy_id = 1; * @param value The policyId to set. * @return This builder for chaining. */ public Builder setPolicyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } policyId_ = value; onChanged(); return this; } /** * string policy_id = 1; * @return This builder for chaining. */ public Builder clearPolicyId() { policyId_ = getDefaultInstance().getPolicyId(); onChanged(); return this; } /** * string policy_id = 1; * @param value The bytes for policyId to set. * @return This builder for chaining. */ public Builder setPolicyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); policyId_ = value; onChanged(); return this; } private java.lang.Object computeInstanceId_ = ""; /** * string compute_instance_id = 2; * @return The computeInstanceId. */ public java.lang.String getComputeInstanceId() { java.lang.Object ref = computeInstanceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); computeInstanceId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string compute_instance_id = 2; * @return The bytes for computeInstanceId. */ public com.google.protobuf.ByteString getComputeInstanceIdBytes() { java.lang.Object ref = computeInstanceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); computeInstanceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string compute_instance_id = 2; * @param value The computeInstanceId to set. * @return This builder for chaining. */ public Builder setComputeInstanceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } computeInstanceId_ = value; onChanged(); return this; } /** * string compute_instance_id = 2; * @return This builder for chaining. */ public Builder clearComputeInstanceId() { computeInstanceId_ = getDefaultInstance().getComputeInstanceId(); onChanged(); return this; } /** * string compute_instance_id = 2; * @param value The bytes for computeInstanceId to set. * @return This builder for chaining. */ public Builder setComputeInstanceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); computeInstanceId_ = 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.backup.v1.ExecuteMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.ExecuteMetadata) private static final yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata(); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.ExecuteMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExecuteMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExecuteMetadata(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.backup.v1.PolicyServiceOuterClass.ExecuteMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RevokeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.RevokeRequest) com.google.protobuf.MessageOrBuilder { /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ java.lang.String getPolicyId(); /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ com.google.protobuf.ByteString getPolicyIdBytes(); /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The computeInstanceId. */ java.lang.String getComputeInstanceId(); /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for computeInstanceId. */ com.google.protobuf.ByteString getComputeInstanceIdBytes(); } /** * Protobuf type {@code yandex.cloud.backup.v1.RevokeRequest} */ public static final class RevokeRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.RevokeRequest) RevokeRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RevokeRequest.newBuilder() to construct. private RevokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RevokeRequest() { policyId_ = ""; computeInstanceId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RevokeRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RevokeRequest( 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(); policyId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); computeInstanceId_ = 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.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_RevokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_RevokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest.Builder.class); } public static final int POLICY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object policyId_; /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ @java.lang.Override public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ @java.lang.Override public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMPUTE_INSTANCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object computeInstanceId_; /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The computeInstanceId. */ @java.lang.Override public java.lang.String getComputeInstanceId() { java.lang.Object ref = computeInstanceId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); computeInstanceId_ = s; return s; } } /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for computeInstanceId. */ @java.lang.Override public com.google.protobuf.ByteString getComputeInstanceIdBytes() { java.lang.Object ref = computeInstanceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); computeInstanceId_ = 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(policyId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(computeInstanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, computeInstanceId_); } 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(policyId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(computeInstanceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, computeInstanceId_); } 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.backup.v1.PolicyServiceOuterClass.RevokeRequest)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest other = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest) obj; if (!getPolicyId() .equals(other.getPolicyId())) return false; if (!getComputeInstanceId() .equals(other.getComputeInstanceId())) 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) + POLICY_ID_FIELD_NUMBER; hash = (53 * hash) + getPolicyId().hashCode(); hash = (37 * hash) + COMPUTE_INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + getComputeInstanceId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest 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.backup.v1.PolicyServiceOuterClass.RevokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest 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.backup.v1.PolicyServiceOuterClass.RevokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest 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.backup.v1.PolicyServiceOuterClass.RevokeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest 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.backup.v1.PolicyServiceOuterClass.RevokeRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest 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.backup.v1.PolicyServiceOuterClass.RevokeRequest 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.backup.v1.RevokeRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.RevokeRequest) yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_RevokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_RevokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest.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(); policyId_ = ""; computeInstanceId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_RevokeRequest_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest build() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest buildPartial() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest result = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest(this); result.policyId_ = policyId_; result.computeInstanceId_ = computeInstanceId_; 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.backup.v1.PolicyServiceOuterClass.RevokeRequest) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest other) { if (other == yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest.getDefaultInstance()) return this; if (!other.getPolicyId().isEmpty()) { policyId_ = other.policyId_; onChanged(); } if (!other.getComputeInstanceId().isEmpty()) { computeInstanceId_ = other.computeInstanceId_; 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.backup.v1.PolicyServiceOuterClass.RevokeRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object policyId_ = ""; /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The policyId. */ public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for policyId. */ public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The policyId to set. * @return This builder for chaining. */ public Builder setPolicyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } policyId_ = value; onChanged(); return this; } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearPolicyId() { policyId_ = getDefaultInstance().getPolicyId(); onChanged(); return this; } /** * string policy_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for policyId to set. * @return This builder for chaining. */ public Builder setPolicyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); policyId_ = value; onChanged(); return this; } private java.lang.Object computeInstanceId_ = ""; /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The computeInstanceId. */ public java.lang.String getComputeInstanceId() { java.lang.Object ref = computeInstanceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); computeInstanceId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for computeInstanceId. */ public com.google.protobuf.ByteString getComputeInstanceIdBytes() { java.lang.Object ref = computeInstanceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); computeInstanceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The computeInstanceId to set. * @return This builder for chaining. */ public Builder setComputeInstanceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } computeInstanceId_ = value; onChanged(); return this; } /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearComputeInstanceId() { computeInstanceId_ = getDefaultInstance().getComputeInstanceId(); onChanged(); return this; } /** * string compute_instance_id = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @param value The bytes for computeInstanceId to set. * @return This builder for chaining. */ public Builder setComputeInstanceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); computeInstanceId_ = 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.backup.v1.RevokeRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.RevokeRequest) private static final yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest(); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RevokeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RevokeRequest(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.backup.v1.PolicyServiceOuterClass.RevokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RevokeMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.backup.v1.RevokeMetadata) com.google.protobuf.MessageOrBuilder { /** * string policy_id = 1; * @return The policyId. */ java.lang.String getPolicyId(); /** * string policy_id = 1; * @return The bytes for policyId. */ com.google.protobuf.ByteString getPolicyIdBytes(); /** * string compute_instance_id = 2; * @return The computeInstanceId. */ java.lang.String getComputeInstanceId(); /** * string compute_instance_id = 2; * @return The bytes for computeInstanceId. */ com.google.protobuf.ByteString getComputeInstanceIdBytes(); } /** * Protobuf type {@code yandex.cloud.backup.v1.RevokeMetadata} */ public static final class RevokeMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.backup.v1.RevokeMetadata) RevokeMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use RevokeMetadata.newBuilder() to construct. private RevokeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RevokeMetadata() { policyId_ = ""; computeInstanceId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RevokeMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RevokeMetadata( 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(); policyId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); computeInstanceId_ = 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.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_RevokeMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_RevokeMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata.Builder.class); } public static final int POLICY_ID_FIELD_NUMBER = 1; private volatile java.lang.Object policyId_; /** * string policy_id = 1; * @return The policyId. */ @java.lang.Override public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } } /** * string policy_id = 1; * @return The bytes for policyId. */ @java.lang.Override public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMPUTE_INSTANCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object computeInstanceId_; /** * string compute_instance_id = 2; * @return The computeInstanceId. */ @java.lang.Override public java.lang.String getComputeInstanceId() { java.lang.Object ref = computeInstanceId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); computeInstanceId_ = s; return s; } } /** * string compute_instance_id = 2; * @return The bytes for computeInstanceId. */ @java.lang.Override public com.google.protobuf.ByteString getComputeInstanceIdBytes() { java.lang.Object ref = computeInstanceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); computeInstanceId_ = 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(policyId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(computeInstanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, computeInstanceId_); } 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(policyId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(computeInstanceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, computeInstanceId_); } 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.backup.v1.PolicyServiceOuterClass.RevokeMetadata)) { return super.equals(obj); } yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata other = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata) obj; if (!getPolicyId() .equals(other.getPolicyId())) return false; if (!getComputeInstanceId() .equals(other.getComputeInstanceId())) 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) + POLICY_ID_FIELD_NUMBER; hash = (53 * hash) + getPolicyId().hashCode(); hash = (37 * hash) + COMPUTE_INSTANCE_ID_FIELD_NUMBER; hash = (53 * hash) + getComputeInstanceId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata 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.backup.v1.PolicyServiceOuterClass.RevokeMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata 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.backup.v1.PolicyServiceOuterClass.RevokeMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata 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.backup.v1.PolicyServiceOuterClass.RevokeMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata 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.backup.v1.PolicyServiceOuterClass.RevokeMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata 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.backup.v1.PolicyServiceOuterClass.RevokeMetadata 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.backup.v1.RevokeMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.backup.v1.RevokeMetadata) yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_RevokeMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_RevokeMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata.class, yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata.Builder.class); } // Construct using yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata.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(); policyId_ = ""; computeInstanceId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.internal_static_yandex_cloud_backup_v1_RevokeMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata getDefaultInstanceForType() { return yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata build() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata buildPartial() { yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata result = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata(this); result.policyId_ = policyId_; result.computeInstanceId_ = computeInstanceId_; 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.backup.v1.PolicyServiceOuterClass.RevokeMetadata) { return mergeFrom((yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata other) { if (other == yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata.getDefaultInstance()) return this; if (!other.getPolicyId().isEmpty()) { policyId_ = other.policyId_; onChanged(); } if (!other.getComputeInstanceId().isEmpty()) { computeInstanceId_ = other.computeInstanceId_; 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.backup.v1.PolicyServiceOuterClass.RevokeMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object policyId_ = ""; /** * string policy_id = 1; * @return The policyId. */ public java.lang.String getPolicyId() { java.lang.Object ref = policyId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string policy_id = 1; * @return The bytes for policyId. */ public com.google.protobuf.ByteString getPolicyIdBytes() { java.lang.Object ref = policyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); policyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string policy_id = 1; * @param value The policyId to set. * @return This builder for chaining. */ public Builder setPolicyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } policyId_ = value; onChanged(); return this; } /** * string policy_id = 1; * @return This builder for chaining. */ public Builder clearPolicyId() { policyId_ = getDefaultInstance().getPolicyId(); onChanged(); return this; } /** * string policy_id = 1; * @param value The bytes for policyId to set. * @return This builder for chaining. */ public Builder setPolicyIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); policyId_ = value; onChanged(); return this; } private java.lang.Object computeInstanceId_ = ""; /** * string compute_instance_id = 2; * @return The computeInstanceId. */ public java.lang.String getComputeInstanceId() { java.lang.Object ref = computeInstanceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); computeInstanceId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string compute_instance_id = 2; * @return The bytes for computeInstanceId. */ public com.google.protobuf.ByteString getComputeInstanceIdBytes() { java.lang.Object ref = computeInstanceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); computeInstanceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string compute_instance_id = 2; * @param value The computeInstanceId to set. * @return This builder for chaining. */ public Builder setComputeInstanceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } computeInstanceId_ = value; onChanged(); return this; } /** * string compute_instance_id = 2; * @return This builder for chaining. */ public Builder clearComputeInstanceId() { computeInstanceId_ = getDefaultInstance().getComputeInstanceId(); onChanged(); return this; } /** * string compute_instance_id = 2; * @param value The bytes for computeInstanceId to set. * @return This builder for chaining. */ public Builder setComputeInstanceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); computeInstanceId_ = 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.backup.v1.RevokeMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.backup.v1.RevokeMetadata) private static final yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata(); } public static yandex.cloud.api.backup.v1.PolicyServiceOuterClass.RevokeMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RevokeMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RevokeMetadata(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.backup.v1.PolicyServiceOuterClass.RevokeMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_backup_v1_ListPoliciesRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_backup_v1_ListPoliciesRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_backup_v1_ListPoliciesResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_backup_v1_ListPoliciesResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_backup_v1_CreatePolicyRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_backup_v1_CreatePolicyRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_backup_v1_CreatePolicyMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_backup_v1_CreatePolicyMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_backup_v1_GetPolicyRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_backup_v1_GetPolicyRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_backup_v1_UpdatePolicyRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_backup_v1_UpdatePolicyRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_backup_v1_UpdatePolicyMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_backup_v1_UpdatePolicyMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_backup_v1_DeletePolicyRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_backup_v1_DeletePolicyRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_backup_v1_DeletePolicyMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_backup_v1_DeletePolicyMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_backup_v1_ApplyPolicyRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_backup_v1_ApplyPolicyRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_backup_v1_ApplyPolicyMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_backup_v1_ApplyPolicyMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_backup_v1_ListApplicationsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_backup_v1_ListApplicationsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_backup_v1_ListApplicationsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_backup_v1_ListApplicationsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_backup_v1_ExecuteRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_backup_v1_ExecuteRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_backup_v1_ExecuteMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_backup_v1_ExecuteMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_backup_v1_RevokeRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_backup_v1_RevokeRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_backup_v1_RevokeMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_backup_v1_RevokeMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n+yandex/cloud/backup/v1/policy_service." + "proto\022\026yandex.cloud.backup.v1\032\034google/ap" + "i/annotations.proto\032 yandex/cloud/api/op" + "eration.proto\032#yandex/cloud/backup/v1/po" + "licy.proto\032&yandex/cloud/operation/opera" + "tion.proto\032\035yandex/cloud/validation.prot" + "o\"O\n\023ListPoliciesRequest\022\033\n\tfolder_id\030\001 " + "\001(\tB\010\212\3101\004<=50\022\033\n\023compute_instance_id\030\002 \001" + "(\t\"H\n\024ListPoliciesResponse\0220\n\010policies\030\001" + " \003(\0132\036.yandex.cloud.backup.v1.Policy\"\222\001\n" + "\023CreatePolicyRequest\022\037\n\tfolder_id\030\001 \001(\tB" + "\014\350\3071\001\212\3101\004<=50\022\032\n\004name\030\002 \001(\tB\014\350\3071\001\212\3101\004<=5" + "0\022>\n\010settings\030\003 \001(\0132&.yandex.cloud.backu" + "p.v1.PolicySettingsB\004\350\3071\001\"7\n\024CreatePolic" + "yMetadata\022\037\n\tpolicy_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=" + "50\"3\n\020GetPolicyRequest\022\037\n\tpolicy_id\030\001 \001(" + "\tB\014\350\3071\001\212\3101\004<=50\"v\n\023UpdatePolicyRequest\022\037" + "\n\tpolicy_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\022>\n\010setti" + "ngs\030\002 \001(\0132&.yandex.cloud.backup.v1.Polic" + "ySettingsB\004\350\3071\001\"7\n\024UpdatePolicyMetadata\022" + "\037\n\tpolicy_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\"6\n\023Dele" + "tePolicyRequest\022\037\n\tpolicy_id\030\001 \001(\tB\014\350\3071\001" + "\212\3101\004<=50\"7\n\024DeletePolicyMetadata\022\037\n\tpoli" + "cy_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50\"`\n\022ApplyPolicy" + "Request\022\037\n\tpolicy_id\030\001 \001(\tB\014\350\3071\001\212\3101\004<=50" + "\022)\n\023compute_instance_id\030\002 \001(\tB\014\350\3071\001\212\3101\004<" + "=50\"E\n\023ApplyPolicyMetadata\022\021\n\tpolicy_id\030" + "\001 \001(\t\022\033\n\023compute_instance_id\030\002 \001(\t\"n\n\027Li" + "stApplicationsRequest\022\023\n\tfolder_id\030\001 \001(\t" + "H\000\022\023\n\tpolicy_id\030\002 \001(\tH\000\022\035\n\023compute_insta" + "nce_id\030\003 \001(\tH\000B\n\n\002id\022\004\300\3011\001\"[\n\030ListApplic" + "ationsResponse\022?\n\014applications\030\001 \003(\0132).y" + "andex.cloud.backup.v1.PolicyApplication\"" + "\\\n\016ExecuteRequest\022\037\n\tpolicy_id\030\001 \001(\tB\014\350\307" + "1\001\212\3101\004<=50\022)\n\023compute_instance_id\030\002 \001(\tB" + "\014\350\3071\001\212\3101\004<=50\"A\n\017ExecuteMetadata\022\021\n\tpoli" + "cy_id\030\001 \001(\t\022\033\n\023compute_instance_id\030\002 \001(\t" + "\"[\n\rRevokeRequest\022\037\n\tpolicy_id\030\001 \001(\tB\014\350\307" + "1\001\212\3101\004<=50\022)\n\023compute_instance_id\030\002 \001(\tB" + "\014\350\3071\001\212\3101\004<=50\"@\n\016RevokeMetadata\022\021\n\tpolic" + "y_id\030\001 \001(\t\022\033\n\023compute_instance_id\030\002 \001(\t2" + "\327\013\n\rPolicyService\022~\n\004List\022+.yandex.cloud" + ".backup.v1.ListPoliciesRequest\032,.yandex." + "cloud.backup.v1.ListPoliciesResponse\"\033\202\323" + "\344\223\002\025\022\023/backup/v1/policies\022\232\001\n\006Create\022+.y" + "andex.cloud.backup.v1.CreatePolicyReques" + "t\032!.yandex.cloud.operation.Operation\"@\202\323" + "\344\223\002\030\"\023/backup/v1/policies:\001*\262\322*\036\n\024Create" + "PolicyMetadata\022\006Policy\022x\n\003Get\022(.yandex.c" + "loud.backup.v1.GetPolicyRequest\032\036.yandex" + ".cloud.backup.v1.Policy\"\'\202\323\344\223\002!\022\037/backup" + "/v1/policies/{policy_id}\022\246\001\n\006Update\022+.ya" + "ndex.cloud.backup.v1.UpdatePolicyRequest" + "\032!.yandex.cloud.operation.Operation\"L\202\323\344" + "\223\002$2\037/backup/v1/policies/{policy_id}:\001*\262" + "\322*\036\n\024UpdatePolicyMetadata\022\006Policy\022\262\001\n\006De" + "lete\022+.yandex.cloud.backup.v1.DeletePoli" + "cyRequest\032!.yandex.cloud.operation.Opera" + "tion\"X\202\323\344\223\002!*\037/backup/v1/policies/{polic" + "y_id}\262\322*-\n\024DeletePolicyMetadata\022\025google." + "protobuf.Empty\022\270\001\n\005Apply\022*.yandex.cloud." + "backup.v1.ApplyPolicyRequest\032!.yandex.cl" + "oud.operation.Operation\"`\202\323\344\223\002*\"%/backup" + "/v1/policies/{policy_id}:apply:\001*\262\322*,\n\023A" + "pplyPolicyMetadata\022\025google.protobuf.Empt" + "y\022\253\001\n\020ListApplications\022/.yandex.cloud.ba" + "ckup.v1.ListApplicationsRequest\0320.yandex" + ".cloud.backup.v1.ListApplicationsRespons" + "e\"4\202\323\344\223\002.\022,/backup/v1/policies/{policy_i" + "d}/applications\022\264\001\n\007Execute\022&.yandex.clo" + "ud.backup.v1.ExecuteRequest\032!.yandex.clo" + "ud.operation.Operation\"^\202\323\344\223\002,\"\'/backup/" + "v1/policies/{policy_id}:execute:\001*\262\322*(\n\017" + "ExecuteMetadata\022\025google.protobuf.Empty\022\260" + "\001\n\006Revoke\022%.yandex.cloud.backup.v1.Revok" + "eRequest\032!.yandex.cloud.operation.Operat" + "ion\"\\\202\323\344\223\002+\"&/backup/v1/policies/{policy" + "_id}:revoke:\001*\262\322*\'\n\016RevokeMetadata\022\025goog" + "le.protobuf.EmptyB_\n\032yandex.cloud.api.ba" + "ckup.v1ZAgithub.com/yandex-cloud/go-genp" + "roto/yandex/cloud/backup/v1;backupb\006prot" + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), yandex.cloud.api.OperationOuterClass.getDescriptor(), yandex.cloud.api.backup.v1.PolicyOuterClass.getDescriptor(), yandex.cloud.api.operation.OperationOuterClass.getDescriptor(), yandex.cloud.api.Validation.getDescriptor(), }); internal_static_yandex_cloud_backup_v1_ListPoliciesRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_backup_v1_ListPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_backup_v1_ListPoliciesRequest_descriptor, new java.lang.String[] { "FolderId", "ComputeInstanceId", }); internal_static_yandex_cloud_backup_v1_ListPoliciesResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_backup_v1_ListPoliciesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_backup_v1_ListPoliciesResponse_descriptor, new java.lang.String[] { "Policies", }); internal_static_yandex_cloud_backup_v1_CreatePolicyRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_backup_v1_CreatePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_backup_v1_CreatePolicyRequest_descriptor, new java.lang.String[] { "FolderId", "Name", "Settings", }); internal_static_yandex_cloud_backup_v1_CreatePolicyMetadata_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_yandex_cloud_backup_v1_CreatePolicyMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_backup_v1_CreatePolicyMetadata_descriptor, new java.lang.String[] { "PolicyId", }); internal_static_yandex_cloud_backup_v1_GetPolicyRequest_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_yandex_cloud_backup_v1_GetPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_backup_v1_GetPolicyRequest_descriptor, new java.lang.String[] { "PolicyId", }); internal_static_yandex_cloud_backup_v1_UpdatePolicyRequest_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_yandex_cloud_backup_v1_UpdatePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_backup_v1_UpdatePolicyRequest_descriptor, new java.lang.String[] { "PolicyId", "Settings", }); internal_static_yandex_cloud_backup_v1_UpdatePolicyMetadata_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_yandex_cloud_backup_v1_UpdatePolicyMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_backup_v1_UpdatePolicyMetadata_descriptor, new java.lang.String[] { "PolicyId", }); internal_static_yandex_cloud_backup_v1_DeletePolicyRequest_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_yandex_cloud_backup_v1_DeletePolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_backup_v1_DeletePolicyRequest_descriptor, new java.lang.String[] { "PolicyId", }); internal_static_yandex_cloud_backup_v1_DeletePolicyMetadata_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_yandex_cloud_backup_v1_DeletePolicyMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_backup_v1_DeletePolicyMetadata_descriptor, new java.lang.String[] { "PolicyId", }); internal_static_yandex_cloud_backup_v1_ApplyPolicyRequest_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_yandex_cloud_backup_v1_ApplyPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_backup_v1_ApplyPolicyRequest_descriptor, new java.lang.String[] { "PolicyId", "ComputeInstanceId", }); internal_static_yandex_cloud_backup_v1_ApplyPolicyMetadata_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_yandex_cloud_backup_v1_ApplyPolicyMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_backup_v1_ApplyPolicyMetadata_descriptor, new java.lang.String[] { "PolicyId", "ComputeInstanceId", }); internal_static_yandex_cloud_backup_v1_ListApplicationsRequest_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_yandex_cloud_backup_v1_ListApplicationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_backup_v1_ListApplicationsRequest_descriptor, new java.lang.String[] { "FolderId", "PolicyId", "ComputeInstanceId", "Id", }); internal_static_yandex_cloud_backup_v1_ListApplicationsResponse_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_yandex_cloud_backup_v1_ListApplicationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_backup_v1_ListApplicationsResponse_descriptor, new java.lang.String[] { "Applications", }); internal_static_yandex_cloud_backup_v1_ExecuteRequest_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_yandex_cloud_backup_v1_ExecuteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_backup_v1_ExecuteRequest_descriptor, new java.lang.String[] { "PolicyId", "ComputeInstanceId", }); internal_static_yandex_cloud_backup_v1_ExecuteMetadata_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_yandex_cloud_backup_v1_ExecuteMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_backup_v1_ExecuteMetadata_descriptor, new java.lang.String[] { "PolicyId", "ComputeInstanceId", }); internal_static_yandex_cloud_backup_v1_RevokeRequest_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_yandex_cloud_backup_v1_RevokeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_backup_v1_RevokeRequest_descriptor, new java.lang.String[] { "PolicyId", "ComputeInstanceId", }); internal_static_yandex_cloud_backup_v1_RevokeMetadata_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_yandex_cloud_backup_v1_RevokeMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_backup_v1_RevokeMetadata_descriptor, new java.lang.String[] { "PolicyId", "ComputeInstanceId", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.AnnotationsProto.http); registry.add(yandex.cloud.api.OperationOuterClass.operation); registry.add(yandex.cloud.api.Validation.exactlyOne); registry.add(yandex.cloud.api.Validation.length); registry.add(yandex.cloud.api.Validation.required); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); yandex.cloud.api.OperationOuterClass.getDescriptor(); yandex.cloud.api.backup.v1.PolicyOuterClass.getDescriptor(); yandex.cloud.api.operation.OperationOuterClass.getDescriptor(); yandex.cloud.api.Validation.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy