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

yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/serverless/functions/v1/function_service.proto

package yandex.cloud.api.serverless.functions.v1;

public final class FunctionServiceOuterClass {
  private FunctionServiceOuterClass() {}
  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 GetFunctionRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.GetFunctionRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * ID of the function to return.
     * To get a function ID make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ java.lang.String getFunctionId(); /** *
     * ID of the function to return.
     * To get a function ID make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ com.google.protobuf.ByteString getFunctionIdBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.GetFunctionRequest} */ public static final class GetFunctionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.GetFunctionRequest) GetFunctionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetFunctionRequest.newBuilder() to construct. private GetFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetFunctionRequest() { functionId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetFunctionRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetFunctionRequest( 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(); functionId_ = 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.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_GetFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_GetFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest.Builder.class); } public static final int FUNCTION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object functionId_; /** *
     * ID of the function to return.
     * To get a function ID make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ @java.lang.Override public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; 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(); functionId_ = s; return s; } } /** *
     * ID of the function to return.
     * To get a function ID make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = 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(functionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionId_); } 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(functionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionId_); } 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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest) obj; if (!getFunctionId() .equals(other.getFunctionId())) 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) + FUNCTION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest 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.serverless.functions.v1.GetFunctionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.GetFunctionRequest) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_GetFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_GetFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest.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(); functionId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_GetFunctionRequest_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest(this); result.functionId_ = functionId_; 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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest.getDefaultInstance()) return this; if (!other.getFunctionId().isEmpty()) { functionId_ = other.functionId_; 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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object functionId_ = ""; /** *
       * ID of the function to return.
       * To get a function ID make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the function to return.
       * To get a function ID make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the function to return.
       * To get a function ID make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @param value The functionId to set. * @return This builder for chaining. */ public Builder setFunctionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionId_ = value; onChanged(); return this; } /** *
       * ID of the function to return.
       * To get a function ID make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearFunctionId() { functionId_ = getDefaultInstance().getFunctionId(); onChanged(); return this; } /** *
       * ID of the function to return.
       * To get a function ID make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for functionId to set. * @return This builder for chaining. */ public Builder setFunctionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionId_ = 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.serverless.functions.v1.GetFunctionRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.GetFunctionRequest) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetFunctionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetFunctionRequest(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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetFunctionVersionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.GetFunctionVersionRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the version to return.
     * To get a version ID make a [FunctionService.ListVersions] request.
     * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @return The functionVersionId. */ java.lang.String getFunctionVersionId(); /** *
     * ID of the version to return.
     * To get a version ID make a [FunctionService.ListVersions] request.
     * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionVersionId. */ com.google.protobuf.ByteString getFunctionVersionIdBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.GetFunctionVersionRequest} */ public static final class GetFunctionVersionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.GetFunctionVersionRequest) GetFunctionVersionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetFunctionVersionRequest.newBuilder() to construct. private GetFunctionVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetFunctionVersionRequest() { functionVersionId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetFunctionVersionRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetFunctionVersionRequest( 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(); functionVersionId_ = 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.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_GetFunctionVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_GetFunctionVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest.Builder.class); } public static final int FUNCTION_VERSION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object functionVersionId_; /** *
     * ID of the version to return.
     * To get a version ID make a [FunctionService.ListVersions] request.
     * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @return The functionVersionId. */ @java.lang.Override public java.lang.String getFunctionVersionId() { java.lang.Object ref = functionVersionId_; 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(); functionVersionId_ = s; return s; } } /** *
     * ID of the version to return.
     * To get a version ID make a [FunctionService.ListVersions] request.
     * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionVersionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionVersionIdBytes() { java.lang.Object ref = functionVersionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionVersionId_ = 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(functionVersionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionVersionId_); } 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(functionVersionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionVersionId_); } 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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest) obj; if (!getFunctionVersionId() .equals(other.getFunctionVersionId())) 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) + FUNCTION_VERSION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionVersionId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest 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.serverless.functions.v1.GetFunctionVersionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.GetFunctionVersionRequest) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_GetFunctionVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_GetFunctionVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest.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(); functionVersionId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_GetFunctionVersionRequest_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest(this); result.functionVersionId_ = functionVersionId_; 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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest.getDefaultInstance()) return this; if (!other.getFunctionVersionId().isEmpty()) { functionVersionId_ = other.functionVersionId_; 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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object functionVersionId_ = ""; /** *
       * ID of the version to return.
       * To get a version ID make a [FunctionService.ListVersions] request.
       * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @return The functionVersionId. */ public java.lang.String getFunctionVersionId() { java.lang.Object ref = functionVersionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionVersionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the version to return.
       * To get a version ID make a [FunctionService.ListVersions] request.
       * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionVersionId. */ public com.google.protobuf.ByteString getFunctionVersionIdBytes() { java.lang.Object ref = functionVersionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionVersionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the version to return.
       * To get a version ID make a [FunctionService.ListVersions] request.
       * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @param value The functionVersionId to set. * @return This builder for chaining. */ public Builder setFunctionVersionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionVersionId_ = value; onChanged(); return this; } /** *
       * ID of the version to return.
       * To get a version ID make a [FunctionService.ListVersions] request.
       * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearFunctionVersionId() { functionVersionId_ = getDefaultInstance().getFunctionVersionId(); onChanged(); return this; } /** *
       * ID of the version to return.
       * To get a version ID make a [FunctionService.ListVersions] request.
       * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for functionVersionId to set. * @return This builder for chaining. */ public Builder setFunctionVersionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionVersionId_ = 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.serverless.functions.v1.GetFunctionVersionRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.GetFunctionVersionRequest) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetFunctionVersionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetFunctionVersionRequest(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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetFunctionVersionByTagRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.GetFunctionVersionByTagRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the function whose versions should be listed.
     * To get a function ID use a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ java.lang.String getFunctionId(); /** *
     * ID of the function whose versions should be listed.
     * To get a function ID use a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ com.google.protobuf.ByteString getFunctionIdBytes(); /** *
     * Version tag.
     * To get the history of version tags make a [FunctionService.ListTagHistory] request.
     * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return The tag. */ java.lang.String getTag(); /** *
     * Version tag.
     * To get the history of version tags make a [FunctionService.ListTagHistory] request.
     * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return The bytes for tag. */ com.google.protobuf.ByteString getTagBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.GetFunctionVersionByTagRequest} */ public static final class GetFunctionVersionByTagRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.GetFunctionVersionByTagRequest) GetFunctionVersionByTagRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetFunctionVersionByTagRequest.newBuilder() to construct. private GetFunctionVersionByTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetFunctionVersionByTagRequest() { functionId_ = ""; tag_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GetFunctionVersionByTagRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetFunctionVersionByTagRequest( 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(); functionId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); tag_ = 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.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_GetFunctionVersionByTagRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_GetFunctionVersionByTagRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest.Builder.class); } public static final int FUNCTION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object functionId_; /** *
     * ID of the function whose versions should be listed.
     * To get a function ID use a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ @java.lang.Override public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; 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(); functionId_ = s; return s; } } /** *
     * ID of the function whose versions should be listed.
     * To get a function ID use a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TAG_FIELD_NUMBER = 2; private volatile java.lang.Object tag_; /** *
     * Version tag.
     * To get the history of version tags make a [FunctionService.ListTagHistory] request.
     * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return The tag. */ @java.lang.Override public java.lang.String getTag() { java.lang.Object ref = tag_; 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(); tag_ = s; return s; } } /** *
     * Version tag.
     * To get the history of version tags make a [FunctionService.ListTagHistory] request.
     * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return The bytes for tag. */ @java.lang.Override public com.google.protobuf.ByteString getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tag_ = 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(functionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); } 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(functionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); } 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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest) obj; if (!getFunctionId() .equals(other.getFunctionId())) return false; if (!getTag() .equals(other.getTag())) 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) + FUNCTION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionId().hashCode(); hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + getTag().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest 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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest 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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest 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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest 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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest 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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest 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.serverless.functions.v1.GetFunctionVersionByTagRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.GetFunctionVersionByTagRequest) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_GetFunctionVersionByTagRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_GetFunctionVersionByTagRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest.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(); functionId_ = ""; tag_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_GetFunctionVersionByTagRequest_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest(this); result.functionId_ = functionId_; result.tag_ = tag_; 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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest.getDefaultInstance()) return this; if (!other.getFunctionId().isEmpty()) { functionId_ = other.functionId_; onChanged(); } if (!other.getTag().isEmpty()) { tag_ = other.tag_; 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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object functionId_ = ""; /** *
       * ID of the function whose versions should be listed.
       * To get a function ID use a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the function whose versions should be listed.
       * To get a function ID use a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the function whose versions should be listed.
       * To get a function ID use a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @param value The functionId to set. * @return This builder for chaining. */ public Builder setFunctionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionId_ = value; onChanged(); return this; } /** *
       * ID of the function whose versions should be listed.
       * To get a function ID use a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearFunctionId() { functionId_ = getDefaultInstance().getFunctionId(); onChanged(); return this; } /** *
       * ID of the function whose versions should be listed.
       * To get a function ID use a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for functionId to set. * @return This builder for chaining. */ public Builder setFunctionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionId_ = value; onChanged(); return this; } private java.lang.Object tag_ = ""; /** *
       * Version tag.
       * To get the history of version tags make a [FunctionService.ListTagHistory] request.
       * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return The tag. */ public java.lang.String getTag() { java.lang.Object ref = tag_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tag_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Version tag.
       * To get the history of version tags make a [FunctionService.ListTagHistory] request.
       * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return The bytes for tag. */ public com.google.protobuf.ByteString getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Version tag.
       * To get the history of version tags make a [FunctionService.ListTagHistory] request.
       * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @param value The tag to set. * @return This builder for chaining. */ public Builder setTag( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tag_ = value; onChanged(); return this; } /** *
       * Version tag.
       * To get the history of version tags make a [FunctionService.ListTagHistory] request.
       * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return This builder for chaining. */ public Builder clearTag() { tag_ = getDefaultInstance().getTag(); onChanged(); return this; } /** *
       * Version tag.
       * To get the history of version tags make a [FunctionService.ListTagHistory] request.
       * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @param value The bytes for tag to set. * @return This builder for chaining. */ public Builder setTagBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tag_ = 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.serverless.functions.v1.GetFunctionVersionByTagRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.GetFunctionVersionByTagRequest) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GetFunctionVersionByTagRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetFunctionVersionByTagRequest(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.serverless.functions.v1.FunctionServiceOuterClass.GetFunctionVersionByTagRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListFunctionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.ListFunctionsRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the folder to list functions in.
     * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * ID of the folder to list functions in.
     * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
     * The maximum number of results per page to return. If the number of available
     * results is larger than `pageSize`, the service returns a [ListFunctionsResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * Default value: 100.
     * 
* * int64 page_size = 2; * @return The pageSize. */ long getPageSize(); /** *
     * Page token. To get the next page of results, set `pageToken` to the
     * [ListFunctionsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3; * @return The pageToken. */ java.lang.String getPageToken(); /** *
     * Page token. To get the next page of results, set `pageToken` to the
     * [ListFunctionsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3; * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); /** *
     * A filter expression that filters functions listed in the response.
     * The expression must specify:
     * 1. The field name. Currently filtering can only be applied to the [Function.name] field.
     * 2. An `=` operator.
     * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     * Example of a filter: `name="my-function"`.
     * 
* * string filter = 4; * @return The filter. */ java.lang.String getFilter(); /** *
     * A filter expression that filters functions listed in the response.
     * The expression must specify:
     * 1. The field name. Currently filtering can only be applied to the [Function.name] field.
     * 2. An `=` operator.
     * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     * Example of a filter: `name="my-function"`.
     * 
* * string filter = 4; * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.ListFunctionsRequest} */ public static final class ListFunctionsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.ListFunctionsRequest) ListFunctionsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListFunctionsRequest.newBuilder() to construct. private ListFunctionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListFunctionsRequest() { folderId_ = ""; pageToken_ = ""; filter_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListFunctionsRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListFunctionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); folderId_ = s; break; } case 16: { pageSize_ = input.readInt64(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); pageToken_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); filter_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest.Builder.class); } public static final int FOLDER_ID_FIELD_NUMBER = 1; private volatile java.lang.Object folderId_; /** *
     * ID of the folder to list functions in.
     * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @return The folderId. */ @java.lang.Override public java.lang.String getFolderId() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderId_ = s; return s; } } /** *
     * ID of the folder to list functions in.
     * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for folderId. */ @java.lang.Override public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PAGE_SIZE_FIELD_NUMBER = 2; private long pageSize_; /** *
     * The maximum number of results per page to return. If the number of available
     * results is larger than `pageSize`, the service returns a [ListFunctionsResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * Default value: 100.
     * 
* * int64 page_size = 2; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** *
     * Page token. To get the next page of results, set `pageToken` to the
     * [ListFunctionsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3; * @return The pageToken. */ @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** *
     * Page token. To get the next page of results, set `pageToken` to the
     * [ListFunctionsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3; * @return The bytes for pageToken. */ @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** *
     * A filter expression that filters functions listed in the response.
     * The expression must specify:
     * 1. The field name. Currently filtering can only be applied to the [Function.name] field.
     * 2. An `=` operator.
     * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     * Example of a filter: `name="my-function"`.
     * 
* * string filter = 4; * @return The filter. */ @java.lang.Override public java.lang.String getFilter() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** *
     * A filter expression that filters functions listed in the response.
     * The expression must specify:
     * 1. The field name. Currently filtering can only be applied to the [Function.name] field.
     * 2. An `=` operator.
     * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     * Example of a filter: `name="my-function"`.
     * 
* * string filter = 4; * @return The bytes for filter. */ @java.lang.Override public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, folderId_); } if (pageSize_ != 0L) { output.writeInt64(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, folderId_); } if (pageSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest) obj; if (!getFolderId() .equals(other.getFolderId())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken() .equals(other.getPageToken())) return false; if (!getFilter() .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPageSize()); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest 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.serverless.functions.v1.ListFunctionsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.ListFunctionsRequest) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); folderId_ = ""; pageSize_ = 0L; pageToken_ = ""; filter_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsRequest_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest(this); result.folderId_ = folderId_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; result.filter_ = filter_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest.getDefaultInstance()) return this; if (!other.getFolderId().isEmpty()) { folderId_ = other.folderId_; onChanged(); } if (other.getPageSize() != 0L) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object folderId_ = ""; /** *
       * ID of the folder to list functions in.
       * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @return The folderId. */ public java.lang.String getFolderId() { java.lang.Object ref = folderId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the folder to list functions in.
       * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for folderId. */ public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the folder to list functions in.
       * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @param value The folderId to set. * @return This builder for chaining. */ public Builder setFolderId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } folderId_ = value; onChanged(); return this; } /** *
       * ID of the folder to list functions in.
       * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** *
       * ID of the folder to list functions in.
       * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for folderId to set. * @return This builder for chaining. */ public Builder setFolderIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); folderId_ = value; onChanged(); return this; } private long pageSize_ ; /** *
       * The maximum number of results per page to return. If the number of available
       * results is larger than `pageSize`, the service returns a [ListFunctionsResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 2; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } /** *
       * The maximum number of results per page to return. If the number of available
       * results is larger than `pageSize`, the service returns a [ListFunctionsResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 2; * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(long value) { pageSize_ = value; onChanged(); return this; } /** *
       * The maximum number of results per page to return. If the number of available
       * results is larger than `pageSize`, the service returns a [ListFunctionsResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 2; * @return This builder for chaining. */ public Builder clearPageSize() { pageSize_ = 0L; onChanged(); return this; } private java.lang.Object pageToken_ = ""; /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListFunctionsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3; * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListFunctionsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3; * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListFunctionsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3; * @param value The pageToken to set. * @return This builder for chaining. */ public Builder setPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pageToken_ = value; onChanged(); return this; } /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListFunctionsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3; * @return This builder for chaining. */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListFunctionsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3; * @param value The bytes for pageToken to set. * @return This builder for chaining. */ public Builder setPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; onChanged(); return this; } private java.lang.Object filter_ = ""; /** *
       * A filter expression that filters functions listed in the response.
       * The expression must specify:
       * 1. The field name. Currently filtering can only be applied to the [Function.name] field.
       * 2. An `=` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * Example of a filter: `name="my-function"`.
       * 
* * string filter = 4; * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A filter expression that filters functions listed in the response.
       * The expression must specify:
       * 1. The field name. Currently filtering can only be applied to the [Function.name] field.
       * 2. An `=` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * Example of a filter: `name="my-function"`.
       * 
* * string filter = 4; * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A filter expression that filters functions listed in the response.
       * The expression must specify:
       * 1. The field name. Currently filtering can only be applied to the [Function.name] field.
       * 2. An `=` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * Example of a filter: `name="my-function"`.
       * 
* * string filter = 4; * @param value The filter to set. * @return This builder for chaining. */ public Builder setFilter( java.lang.String value) { if (value == null) { throw new NullPointerException(); } filter_ = value; onChanged(); return this; } /** *
       * A filter expression that filters functions listed in the response.
       * The expression must specify:
       * 1. The field name. Currently filtering can only be applied to the [Function.name] field.
       * 2. An `=` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * Example of a filter: `name="my-function"`.
       * 
* * string filter = 4; * @return This builder for chaining. */ public Builder clearFilter() { filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** *
       * A filter expression that filters functions listed in the response.
       * The expression must specify:
       * 1. The field name. Currently filtering can only be applied to the [Function.name] field.
       * 2. An `=` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * Example of a filter: `name="my-function"`.
       * 
* * string filter = 4; * @param value The bytes for filter to set. * @return This builder for chaining. */ public Builder setFilterBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.functions.v1.ListFunctionsRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.ListFunctionsRequest) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListFunctionsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListFunctionsRequest(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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListFunctionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.ListFunctionsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * List of functions in the specified folder.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ java.util.List getFunctionsList(); /** *
     * List of functions in the specified folder.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function getFunctions(int index); /** *
     * List of functions in the specified folder.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ int getFunctionsCount(); /** *
     * List of functions in the specified folder.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ java.util.List getFunctionsOrBuilderList(); /** *
     * List of functions in the specified folder.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.FunctionOrBuilder getFunctionsOrBuilder( int index); /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListFunctionsRequest.page_size], use `nextPageToken` as the value
     * for the [ListFunctionsRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListFunctionsRequest.page_size], use `nextPageToken` as the value
     * for the [ListFunctionsRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.ListFunctionsResponse} */ public static final class ListFunctionsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.ListFunctionsResponse) ListFunctionsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListFunctionsResponse.newBuilder() to construct. private ListFunctionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListFunctionsResponse() { functions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListFunctionsResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListFunctionsResponse( 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)) { functions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } functions_.add( input.readMessage(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.parser(), extensionRegistry)); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); nextPageToken_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { functions_ = java.util.Collections.unmodifiableList(functions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse.Builder.class); } public static final int FUNCTIONS_FIELD_NUMBER = 1; private java.util.List functions_; /** *
     * List of functions in the specified folder.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ @java.lang.Override public java.util.List getFunctionsList() { return functions_; } /** *
     * List of functions in the specified folder.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ @java.lang.Override public java.util.List getFunctionsOrBuilderList() { return functions_; } /** *
     * List of functions in the specified folder.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ @java.lang.Override public int getFunctionsCount() { return functions_.size(); } /** *
     * List of functions in the specified folder.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function getFunctions(int index) { return functions_.get(index); } /** *
     * List of functions in the specified folder.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.FunctionOrBuilder getFunctionsOrBuilder( int index) { return functions_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListFunctionsRequest.page_size], use `nextPageToken` as the value
     * for the [ListFunctionsRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The nextPageToken. */ @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListFunctionsRequest.page_size], use `nextPageToken` as the value
     * for the [ListFunctionsRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < functions_.size(); i++) { output.writeMessage(1, functions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < functions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, functions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse) obj; if (!getFunctionsList() .equals(other.getFunctionsList())) return false; if (!getNextPageToken() .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getFunctionsCount() > 0) { hash = (37 * hash) + FUNCTIONS_FIELD_NUMBER; hash = (53 * hash) + getFunctionsList().hashCode(); } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse 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.serverless.functions.v1.ListFunctionsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.ListFunctionsResponse) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFunctionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (functionsBuilder_ == null) { functions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { functionsBuilder_.clear(); } nextPageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsResponse_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse(this); int from_bitField0_ = bitField0_; if (functionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { functions_ = java.util.Collections.unmodifiableList(functions_); bitField0_ = (bitField0_ & ~0x00000001); } result.functions_ = functions_; } else { result.functions_ = functionsBuilder_.build(); } result.nextPageToken_ = nextPageToken_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse.getDefaultInstance()) return this; if (functionsBuilder_ == null) { if (!other.functions_.isEmpty()) { if (functions_.isEmpty()) { functions_ = other.functions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFunctionsIsMutable(); functions_.addAll(other.functions_); } onChanged(); } } else { if (!other.functions_.isEmpty()) { if (functionsBuilder_.isEmpty()) { functionsBuilder_.dispose(); functionsBuilder_ = null; functions_ = other.functions_; bitField0_ = (bitField0_ & ~0x00000001); functionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFunctionsFieldBuilder() : null; } else { functionsBuilder_.addAllMessages(other.functions_); } } } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List functions_ = java.util.Collections.emptyList(); private void ensureFunctionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { functions_ = new java.util.ArrayList(functions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.FunctionOrBuilder> functionsBuilder_; /** *
       * List of functions in the specified folder.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ public java.util.List getFunctionsList() { if (functionsBuilder_ == null) { return java.util.Collections.unmodifiableList(functions_); } else { return functionsBuilder_.getMessageList(); } } /** *
       * List of functions in the specified folder.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ public int getFunctionsCount() { if (functionsBuilder_ == null) { return functions_.size(); } else { return functionsBuilder_.getCount(); } } /** *
       * List of functions in the specified folder.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function getFunctions(int index) { if (functionsBuilder_ == null) { return functions_.get(index); } else { return functionsBuilder_.getMessage(index); } } /** *
       * List of functions in the specified folder.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ public Builder setFunctions( int index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function value) { if (functionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFunctionsIsMutable(); functions_.set(index, value); onChanged(); } else { functionsBuilder_.setMessage(index, value); } return this; } /** *
       * List of functions in the specified folder.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ public Builder setFunctions( int index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.Builder builderForValue) { if (functionsBuilder_ == null) { ensureFunctionsIsMutable(); functions_.set(index, builderForValue.build()); onChanged(); } else { functionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of functions in the specified folder.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ public Builder addFunctions(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function value) { if (functionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFunctionsIsMutable(); functions_.add(value); onChanged(); } else { functionsBuilder_.addMessage(value); } return this; } /** *
       * List of functions in the specified folder.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ public Builder addFunctions( int index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function value) { if (functionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFunctionsIsMutable(); functions_.add(index, value); onChanged(); } else { functionsBuilder_.addMessage(index, value); } return this; } /** *
       * List of functions in the specified folder.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ public Builder addFunctions( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.Builder builderForValue) { if (functionsBuilder_ == null) { ensureFunctionsIsMutable(); functions_.add(builderForValue.build()); onChanged(); } else { functionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of functions in the specified folder.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ public Builder addFunctions( int index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.Builder builderForValue) { if (functionsBuilder_ == null) { ensureFunctionsIsMutable(); functions_.add(index, builderForValue.build()); onChanged(); } else { functionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of functions in the specified folder.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ public Builder addAllFunctions( java.lang.Iterable values) { if (functionsBuilder_ == null) { ensureFunctionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, functions_); onChanged(); } else { functionsBuilder_.addAllMessages(values); } return this; } /** *
       * List of functions in the specified folder.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ public Builder clearFunctions() { if (functionsBuilder_ == null) { functions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { functionsBuilder_.clear(); } return this; } /** *
       * List of functions in the specified folder.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ public Builder removeFunctions(int index) { if (functionsBuilder_ == null) { ensureFunctionsIsMutable(); functions_.remove(index); onChanged(); } else { functionsBuilder_.remove(index); } return this; } /** *
       * List of functions in the specified folder.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.Builder getFunctionsBuilder( int index) { return getFunctionsFieldBuilder().getBuilder(index); } /** *
       * List of functions in the specified folder.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.FunctionOrBuilder getFunctionsOrBuilder( int index) { if (functionsBuilder_ == null) { return functions_.get(index); } else { return functionsBuilder_.getMessageOrBuilder(index); } } /** *
       * List of functions in the specified folder.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ public java.util.List getFunctionsOrBuilderList() { if (functionsBuilder_ != null) { return functionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(functions_); } } /** *
       * List of functions in the specified folder.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.Builder addFunctionsBuilder() { return getFunctionsFieldBuilder().addBuilder( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.getDefaultInstance()); } /** *
       * List of functions in the specified folder.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.Builder addFunctionsBuilder( int index) { return getFunctionsFieldBuilder().addBuilder( index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.getDefaultInstance()); } /** *
       * List of functions in the specified folder.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Function functions = 1; */ public java.util.List getFunctionsBuilderList() { return getFunctionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.FunctionOrBuilder> getFunctionsFieldBuilder() { if (functionsBuilder_ == null) { functionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.FunctionOrBuilder>( functions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); functions_ = null; } return functionsBuilder_; } private java.lang.Object nextPageToken_ = ""; /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListFunctionsRequest.page_size], use `nextPageToken` as the value
       * for the [ListFunctionsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListFunctionsRequest.page_size], use `nextPageToken` as the value
       * for the [ListFunctionsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListFunctionsRequest.page_size], use `nextPageToken` as the value
       * for the [ListFunctionsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @param value The nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; onChanged(); return this; } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListFunctionsRequest.page_size], use `nextPageToken` as the value
       * for the [ListFunctionsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return This builder for chaining. */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListFunctionsRequest.page_size], use `nextPageToken` as the value
       * for the [ListFunctionsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.functions.v1.ListFunctionsResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.ListFunctionsResponse) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListFunctionsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListFunctionsResponse(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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateFunctionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.CreateFunctionRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the folder to create a function in.
     * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * ID of the folder to create a function in.
     * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
     * Name of the function.
     * The name must be unique within the folder.
     * 
* * string name = 2 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"]; * @return The name. */ java.lang.String getName(); /** *
     * Name of the function.
     * The name must be unique within the folder.
     * 
* * string name = 2 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"]; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the function.
     * 
* * string description = 3 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the function.
     * 
* * string description = 3 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ int getLabelsCount(); /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ java.util.Map getLabelsMap(); /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ java.lang.String getLabelsOrThrow( java.lang.String key); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.CreateFunctionRequest} */ public static final class CreateFunctionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.CreateFunctionRequest) CreateFunctionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CreateFunctionRequest.newBuilder() to construct. private CreateFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateFunctionRequest() { folderId_ = ""; name_ = ""; description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateFunctionRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); folderId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 34: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); labels_.getMutableMap().put( labels__.getKey(), labels__.getValue()); break; } 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.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 4: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest.Builder.class); } public static final int FOLDER_ID_FIELD_NUMBER = 1; private volatile java.lang.Object folderId_; /** *
     * ID of the folder to create a function in.
     * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @return The folderId. */ @java.lang.Override public java.lang.String getFolderId() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderId_ = s; return s; } } /** *
     * ID of the folder to create a function in.
     * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for folderId. */ @java.lang.Override public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
     * Name of the function.
     * The name must be unique within the folder.
     * 
* * string name = 2 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"]; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * Name of the function.
     * The name must be unique within the folder.
     * 
* * string name = 2 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"]; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** *
     * Description of the function.
     * 
* * string description = 3 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** *
     * Description of the function.
     * 
* * string description = 3 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABELS_FIELD_NUMBER = 4; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionRequest_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Resource labels as `key:value` pairs.
     * 
* * map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, folderId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, folderId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, labels__); } 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest) obj; if (!getFolderId() .equals(other.getFolderId())) return false; if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!internalGetLabels().equals( other.internalGetLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest 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.serverless.functions.v1.CreateFunctionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.CreateFunctionRequest) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionRequest_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 4: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 4: return internalGetMutableLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); folderId_ = ""; name_ = ""; description_ = ""; internalGetMutableLabels().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionRequest_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest(this); int from_bitField0_ = bitField0_; result.folderId_ = folderId_; result.name_ = name_; result.description_ = description_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest.getDefaultInstance()) return this; if (!other.getFolderId().isEmpty()) { folderId_ = other.folderId_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object folderId_ = ""; /** *
       * ID of the folder to create a function in.
       * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @return The folderId. */ public java.lang.String getFolderId() { java.lang.Object ref = folderId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the folder to create a function in.
       * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for folderId. */ public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); folderId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the folder to create a function in.
       * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @param value The folderId to set. * @return This builder for chaining. */ public Builder setFolderId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } folderId_ = value; onChanged(); return this; } /** *
       * ID of the folder to create a function in.
       * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** *
       * ID of the folder to create a function in.
       * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for folderId to set. * @return This builder for chaining. */ public Builder setFolderIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); folderId_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * Name of the function.
       * The name must be unique within the folder.
       * 
* * string name = 2 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"]; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the function.
       * The name must be unique within the folder.
       * 
* * string name = 2 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"]; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the function.
       * The name must be unique within the folder.
       * 
* * string name = 2 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"]; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name of the function.
       * The name must be unique within the folder.
       * 
* * string name = 2 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the function.
       * The name must be unique within the folder.
       * 
* * string name = 2 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"]; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * Description of the function.
       * 
* * string description = 3 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Description of the function.
       * 
* * string description = 3 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Description of the function.
       * 
* * string description = 3 [(.yandex.cloud.length) = "<=256"]; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * Description of the function.
       * 
* * string description = 3 [(.yandex.cloud.length) = "<=256"]; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the function.
       * 
* * string description = 3 [(.yandex.cloud.length) = "<=256"]; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { onChanged();; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
       * Resource labels as `key:value` pairs.
       * 
* * map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
       * Resource labels as `key:value` pairs.
       * 
* * map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * Resource labels as `key:value` pairs.
       * 
* * map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Resource labels as `key:value` pairs.
       * 
* * map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { internalGetMutableLabels().getMutableMap() .clear(); return this; } /** *
       * Resource labels as `key:value` pairs.
       * 
* * map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ public Builder removeLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** *
       * Resource labels as `key:value` pairs.
       * 
* * map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ public Builder putLabels( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap() .put(key, value); return this; } /** *
       * Resource labels as `key:value` pairs.
       * 
* * map<string, string> labels = 4 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } @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.serverless.functions.v1.CreateFunctionRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.CreateFunctionRequest) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateFunctionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateFunctionRequest(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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateFunctionMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.CreateFunctionMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the function that is being created.
     * 
* * string function_id = 1; * @return The functionId. */ java.lang.String getFunctionId(); /** *
     * ID of the function that is being created.
     * 
* * string function_id = 1; * @return The bytes for functionId. */ com.google.protobuf.ByteString getFunctionIdBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.CreateFunctionMetadata} */ public static final class CreateFunctionMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.CreateFunctionMetadata) CreateFunctionMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use CreateFunctionMetadata.newBuilder() to construct. private CreateFunctionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateFunctionMetadata() { functionId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateFunctionMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateFunctionMetadata( 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(); functionId_ = 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.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata.Builder.class); } public static final int FUNCTION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object functionId_; /** *
     * ID of the function that is being created.
     * 
* * string function_id = 1; * @return The functionId. */ @java.lang.Override public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; 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(); functionId_ = s; return s; } } /** *
     * ID of the function that is being created.
     * 
* * string function_id = 1; * @return The bytes for functionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = 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(functionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionId_); } 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(functionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionId_); } 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata) obj; if (!getFunctionId() .equals(other.getFunctionId())) 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) + FUNCTION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata 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.serverless.functions.v1.CreateFunctionMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.CreateFunctionMetadata) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata.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(); functionId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata(this); result.functionId_ = functionId_; 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata.getDefaultInstance()) return this; if (!other.getFunctionId().isEmpty()) { functionId_ = other.functionId_; 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object functionId_ = ""; /** *
       * ID of the function that is being created.
       * 
* * string function_id = 1; * @return The functionId. */ public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the function that is being created.
       * 
* * string function_id = 1; * @return The bytes for functionId. */ public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the function that is being created.
       * 
* * string function_id = 1; * @param value The functionId to set. * @return This builder for chaining. */ public Builder setFunctionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionId_ = value; onChanged(); return this; } /** *
       * ID of the function that is being created.
       * 
* * string function_id = 1; * @return This builder for chaining. */ public Builder clearFunctionId() { functionId_ = getDefaultInstance().getFunctionId(); onChanged(); return this; } /** *
       * ID of the function that is being created.
       * 
* * string function_id = 1; * @param value The bytes for functionId to set. * @return This builder for chaining. */ public Builder setFunctionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionId_ = 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.serverless.functions.v1.CreateFunctionMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.CreateFunctionMetadata) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateFunctionMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateFunctionMetadata(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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateFunctionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.UpdateFunctionRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the function to update.
     * To get a function ID make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ java.lang.String getFunctionId(); /** *
     * ID of the function to update.
     * To get a function ID make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ com.google.protobuf.ByteString getFunctionIdBytes(); /** *
     * Field mask that specifies which attributes of the function should be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** *
     * Field mask that specifies which attributes of the function should be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** *
     * Field mask that specifies which attributes of the function should be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** *
     * New name for the function.
     * The name must be unique within the folder.
     * 
* * string name = 3 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"]; * @return The name. */ java.lang.String getName(); /** *
     * New name for the function.
     * The name must be unique within the folder.
     * 
* * string name = 3 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"]; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * New description for the function.
     * 
* * string description = 4 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ java.lang.String getDescription(); /** *
     * New description for the function.
     * 
* * string description = 4 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Function labels as `key:value` pairs.
     * Existing set of labels is completely replaced by the provided set, so if you just want
     * to add or remove a label, request the current set of labels with a [FunctionService.Get] request.
     * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ int getLabelsCount(); /** *
     * Function labels as `key:value` pairs.
     * Existing set of labels is completely replaced by the provided set, so if you just want
     * to add or remove a label, request the current set of labels with a [FunctionService.Get] request.
     * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * Function labels as `key:value` pairs.
     * Existing set of labels is completely replaced by the provided set, so if you just want
     * to add or remove a label, request the current set of labels with a [FunctionService.Get] request.
     * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ java.util.Map getLabelsMap(); /** *
     * Function labels as `key:value` pairs.
     * Existing set of labels is completely replaced by the provided set, so if you just want
     * to add or remove a label, request the current set of labels with a [FunctionService.Get] request.
     * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Function labels as `key:value` pairs.
     * Existing set of labels is completely replaced by the provided set, so if you just want
     * to add or remove a label, request the current set of labels with a [FunctionService.Get] request.
     * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ java.lang.String getLabelsOrThrow( java.lang.String key); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.UpdateFunctionRequest} */ public static final class UpdateFunctionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.UpdateFunctionRequest) UpdateFunctionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateFunctionRequest.newBuilder() to construct. private UpdateFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateFunctionRequest() { functionId_ = ""; name_ = ""; description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateFunctionRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateFunctionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); functionId_ = s; break; } case 18: { com.google.protobuf.FieldMask.Builder subBuilder = null; if (updateMask_ != null) { subBuilder = updateMask_.toBuilder(); } updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(updateMask_); updateMask_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 42: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); labels_.getMutableMap().put( labels__.getKey(), labels__.getValue()); break; } 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.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest.Builder.class); } public static final int FUNCTION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object functionId_; /** *
     * ID of the function to update.
     * To get a function ID make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ @java.lang.Override public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; 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(); functionId_ = s; return s; } } /** *
     * ID of the function to update.
     * To get a function ID make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** *
     * Field mask that specifies which attributes of the function should be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; * @return Whether the updateMask field is set. */ @java.lang.Override public boolean hasUpdateMask() { return updateMask_ != null; } /** *
     * Field mask that specifies which attributes of the function should be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; * @return The updateMask. */ @java.lang.Override public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** *
     * Field mask that specifies which attributes of the function should be updated.
     * 
* * .google.protobuf.FieldMask update_mask = 2; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return getUpdateMask(); } public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** *
     * New name for the function.
     * The name must be unique within the folder.
     * 
* * string name = 3 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"]; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * New name for the function.
     * The name must be unique within the folder.
     * 
* * string name = 3 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"]; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 4; private volatile java.lang.Object description_; /** *
     * New description for the function.
     * 
* * string description = 4 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** *
     * New description for the function.
     * 
* * string description = 4 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABELS_FIELD_NUMBER = 5; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionRequest_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
     * Function labels as `key:value` pairs.
     * Existing set of labels is completely replaced by the provided set, so if you just want
     * to add or remove a label, request the current set of labels with a [FunctionService.Get] request.
     * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
     * Function labels as `key:value` pairs.
     * Existing set of labels is completely replaced by the provided set, so if you just want
     * to add or remove a label, request the current set of labels with a [FunctionService.Get] request.
     * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * Function labels as `key:value` pairs.
     * Existing set of labels is completely replaced by the provided set, so if you just want
     * to add or remove a label, request the current set of labels with a [FunctionService.Get] request.
     * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Function labels as `key:value` pairs.
     * Existing set of labels is completely replaced by the provided set, so if you just want
     * to add or remove a label, request the current set of labels with a [FunctionService.Get] request.
     * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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(functionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionId_); } if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); 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(functionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionId_); } if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, labels__); } 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.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest) obj; if (!getFunctionId() .equals(other.getFunctionId())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { if (!getUpdateMask() .equals(other.getUpdateMask())) return false; } if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!internalGetLabels().equals( other.internalGetLabels())) return false; if (!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) + FUNCTION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionId().hashCode(); if (hasUpdateMask()) { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest 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.serverless.functions.v1.UpdateFunctionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.UpdateFunctionRequest) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionRequest_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 5: return internalGetMutableLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest.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(); functionId_ = ""; if (updateMaskBuilder_ == null) { updateMask_ = null; } else { updateMask_ = null; updateMaskBuilder_ = null; } name_ = ""; description_ = ""; internalGetMutableLabels().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionRequest_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest(this); int from_bitField0_ = bitField0_; result.functionId_ = functionId_; if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { result.updateMask_ = updateMaskBuilder_.build(); } result.name_ = name_; result.description_ = description_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); 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.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest.getDefaultInstance()) return this; if (!other.getFunctionId().isEmpty()) { functionId_ = other.functionId_; onChanged(); } if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); 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.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object functionId_ = ""; /** *
       * ID of the function to update.
       * To get a function ID make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the function to update.
       * To get a function ID make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the function to update.
       * To get a function ID make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @param value The functionId to set. * @return This builder for chaining. */ public Builder setFunctionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionId_ = value; onChanged(); return this; } /** *
       * ID of the function to update.
       * To get a function ID make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearFunctionId() { functionId_ = getDefaultInstance().getFunctionId(); onChanged(); return this; } /** *
       * ID of the function to update.
       * To get a function ID make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for functionId to set. * @return This builder for chaining. */ public Builder setFunctionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionId_ = value; onChanged(); return this; } private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** *
       * Field mask that specifies which attributes of the function should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** *
       * Field mask that specifies which attributes of the function should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** *
       * Field mask that specifies which attributes of the function should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateMask_ = value; onChanged(); } else { updateMaskBuilder_.setMessage(value); } return this; } /** *
       * Field mask that specifies which attributes of the function should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public Builder setUpdateMask( com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Field mask that specifies which attributes of the function should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } return this; } /** *
       * Field mask that specifies which attributes of the function should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { updateMask_ = null; onChanged(); } else { updateMask_ = null; updateMaskBuilder_ = null; } return this; } /** *
       * Field mask that specifies which attributes of the function should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** *
       * Field mask that specifies which attributes of the function should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** *
       * Field mask that specifies which attributes of the function should be updated.
       * 
* * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } private java.lang.Object name_ = ""; /** *
       * New name for the function.
       * The name must be unique within the folder.
       * 
* * string name = 3 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"]; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * New name for the function.
       * The name must be unique within the folder.
       * 
* * string name = 3 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"]; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * New name for the function.
       * The name must be unique within the folder.
       * 
* * string name = 3 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"]; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * New name for the function.
       * The name must be unique within the folder.
       * 
* * string name = 3 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * New name for the function.
       * The name must be unique within the folder.
       * 
* * string name = 3 [(.yandex.cloud.pattern) = "|[a-z][-a-z0-9]{1,61}[a-z0-9]"]; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * New description for the function.
       * 
* * string description = 4 [(.yandex.cloud.length) = "<=256"]; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * New description for the function.
       * 
* * string description = 4 [(.yandex.cloud.length) = "<=256"]; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * New description for the function.
       * 
* * string description = 4 [(.yandex.cloud.length) = "<=256"]; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * New description for the function.
       * 
* * string description = 4 [(.yandex.cloud.length) = "<=256"]; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * New description for the function.
       * 
* * string description = 4 [(.yandex.cloud.length) = "<=256"]; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { onChanged();; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
       * Function labels as `key:value` pairs.
       * Existing set of labels is completely replaced by the provided set, so if you just want
       * to add or remove a label, request the current set of labels with a [FunctionService.Get] request.
       * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
       * Function labels as `key:value` pairs.
       * Existing set of labels is completely replaced by the provided set, so if you just want
       * to add or remove a label, request the current set of labels with a [FunctionService.Get] request.
       * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * Function labels as `key:value` pairs.
       * Existing set of labels is completely replaced by the provided set, so if you just want
       * to add or remove a label, request the current set of labels with a [FunctionService.Get] request.
       * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Function labels as `key:value` pairs.
       * Existing set of labels is completely replaced by the provided set, so if you just want
       * to add or remove a label, request the current set of labels with a [FunctionService.Get] request.
       * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { internalGetMutableLabels().getMutableMap() .clear(); return this; } /** *
       * Function labels as `key:value` pairs.
       * Existing set of labels is completely replaced by the provided set, so if you just want
       * to add or remove a label, request the current set of labels with a [FunctionService.Get] request.
       * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ public Builder removeLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** *
       * Function labels as `key:value` pairs.
       * Existing set of labels is completely replaced by the provided set, so if you just want
       * to add or remove a label, request the current set of labels with a [FunctionService.Get] request.
       * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ public Builder putLabels( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap() .put(key, value); return this; } /** *
       * Function labels as `key:value` pairs.
       * Existing set of labels is completely replaced by the provided set, so if you just want
       * to add or remove a label, request the current set of labels with a [FunctionService.Get] request.
       * 
* * map<string, string> labels = 5 [(.yandex.cloud.pattern) = "[-_0-9a-z]*", (.yandex.cloud.size) = "<=64", (.yandex.cloud.length) = "<=63", (.yandex.cloud.map_key) = { ... } */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } @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.serverless.functions.v1.UpdateFunctionRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.UpdateFunctionRequest) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateFunctionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateFunctionRequest(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.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpdateFunctionMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.UpdateFunctionMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the function that is being updated.
     * 
* * string function_id = 1; * @return The functionId. */ java.lang.String getFunctionId(); /** *
     * ID of the function that is being updated.
     * 
* * string function_id = 1; * @return The bytes for functionId. */ com.google.protobuf.ByteString getFunctionIdBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.UpdateFunctionMetadata} */ public static final class UpdateFunctionMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.UpdateFunctionMetadata) UpdateFunctionMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use UpdateFunctionMetadata.newBuilder() to construct. private UpdateFunctionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpdateFunctionMetadata() { functionId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpdateFunctionMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UpdateFunctionMetadata( 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(); functionId_ = 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.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata.Builder.class); } public static final int FUNCTION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object functionId_; /** *
     * ID of the function that is being updated.
     * 
* * string function_id = 1; * @return The functionId. */ @java.lang.Override public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; 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(); functionId_ = s; return s; } } /** *
     * ID of the function that is being updated.
     * 
* * string function_id = 1; * @return The bytes for functionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = 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(functionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionId_); } 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(functionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionId_); } 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.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata) obj; if (!getFunctionId() .equals(other.getFunctionId())) 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) + FUNCTION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata 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.serverless.functions.v1.UpdateFunctionMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.UpdateFunctionMetadata) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata.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(); functionId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata(this); result.functionId_ = functionId_; 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.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata.getDefaultInstance()) return this; if (!other.getFunctionId().isEmpty()) { functionId_ = other.functionId_; 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.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object functionId_ = ""; /** *
       * ID of the function that is being updated.
       * 
* * string function_id = 1; * @return The functionId. */ public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the function that is being updated.
       * 
* * string function_id = 1; * @return The bytes for functionId. */ public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the function that is being updated.
       * 
* * string function_id = 1; * @param value The functionId to set. * @return This builder for chaining. */ public Builder setFunctionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionId_ = value; onChanged(); return this; } /** *
       * ID of the function that is being updated.
       * 
* * string function_id = 1; * @return This builder for chaining. */ public Builder clearFunctionId() { functionId_ = getDefaultInstance().getFunctionId(); onChanged(); return this; } /** *
       * ID of the function that is being updated.
       * 
* * string function_id = 1; * @param value The bytes for functionId to set. * @return This builder for chaining. */ public Builder setFunctionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionId_ = 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.serverless.functions.v1.UpdateFunctionMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.UpdateFunctionMetadata) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateFunctionMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateFunctionMetadata(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.serverless.functions.v1.FunctionServiceOuterClass.UpdateFunctionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteFunctionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.DeleteFunctionRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the function to delete.
     * To get a function ID make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ java.lang.String getFunctionId(); /** *
     * ID of the function to delete.
     * To get a function ID make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ com.google.protobuf.ByteString getFunctionIdBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.DeleteFunctionRequest} */ public static final class DeleteFunctionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.DeleteFunctionRequest) DeleteFunctionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteFunctionRequest.newBuilder() to construct. private DeleteFunctionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteFunctionRequest() { functionId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteFunctionRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteFunctionRequest( 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(); functionId_ = 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.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest.Builder.class); } public static final int FUNCTION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object functionId_; /** *
     * ID of the function to delete.
     * To get a function ID make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ @java.lang.Override public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; 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(); functionId_ = s; return s; } } /** *
     * ID of the function to delete.
     * To get a function ID make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = 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(functionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionId_); } 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(functionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionId_); } 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest) obj; if (!getFunctionId() .equals(other.getFunctionId())) 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) + FUNCTION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest 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.serverless.functions.v1.DeleteFunctionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.DeleteFunctionRequest) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest.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(); functionId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionRequest_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest(this); result.functionId_ = functionId_; 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest.getDefaultInstance()) return this; if (!other.getFunctionId().isEmpty()) { functionId_ = other.functionId_; 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object functionId_ = ""; /** *
       * ID of the function to delete.
       * To get a function ID make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the function to delete.
       * To get a function ID make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the function to delete.
       * To get a function ID make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @param value The functionId to set. * @return This builder for chaining. */ public Builder setFunctionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionId_ = value; onChanged(); return this; } /** *
       * ID of the function to delete.
       * To get a function ID make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearFunctionId() { functionId_ = getDefaultInstance().getFunctionId(); onChanged(); return this; } /** *
       * ID of the function to delete.
       * To get a function ID make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for functionId to set. * @return This builder for chaining. */ public Builder setFunctionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionId_ = 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.serverless.functions.v1.DeleteFunctionRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.DeleteFunctionRequest) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteFunctionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteFunctionRequest(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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteFunctionMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.DeleteFunctionMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the function that is being deleted.
     * 
* * string function_id = 1; * @return The functionId. */ java.lang.String getFunctionId(); /** *
     * ID of the function that is being deleted.
     * 
* * string function_id = 1; * @return The bytes for functionId. */ com.google.protobuf.ByteString getFunctionIdBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.DeleteFunctionMetadata} */ public static final class DeleteFunctionMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.DeleteFunctionMetadata) DeleteFunctionMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteFunctionMetadata.newBuilder() to construct. private DeleteFunctionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteFunctionMetadata() { functionId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteFunctionMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteFunctionMetadata( 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(); functionId_ = 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.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata.Builder.class); } public static final int FUNCTION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object functionId_; /** *
     * ID of the function that is being deleted.
     * 
* * string function_id = 1; * @return The functionId. */ @java.lang.Override public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; 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(); functionId_ = s; return s; } } /** *
     * ID of the function that is being deleted.
     * 
* * string function_id = 1; * @return The bytes for functionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = 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(functionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionId_); } 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(functionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionId_); } 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata) obj; if (!getFunctionId() .equals(other.getFunctionId())) 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) + FUNCTION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata 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.serverless.functions.v1.DeleteFunctionMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.DeleteFunctionMetadata) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata.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(); functionId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata(this); result.functionId_ = functionId_; 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata.getDefaultInstance()) return this; if (!other.getFunctionId().isEmpty()) { functionId_ = other.functionId_; 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object functionId_ = ""; /** *
       * ID of the function that is being deleted.
       * 
* * string function_id = 1; * @return The functionId. */ public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the function that is being deleted.
       * 
* * string function_id = 1; * @return The bytes for functionId. */ public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the function that is being deleted.
       * 
* * string function_id = 1; * @param value The functionId to set. * @return This builder for chaining. */ public Builder setFunctionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionId_ = value; onChanged(); return this; } /** *
       * ID of the function that is being deleted.
       * 
* * string function_id = 1; * @return This builder for chaining. */ public Builder clearFunctionId() { functionId_ = getDefaultInstance().getFunctionId(); onChanged(); return this; } /** *
       * ID of the function that is being deleted.
       * 
* * string function_id = 1; * @param value The bytes for functionId to set. * @return This builder for chaining. */ public Builder setFunctionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionId_ = 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.serverless.functions.v1.DeleteFunctionMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.DeleteFunctionMetadata) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteFunctionMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteFunctionMetadata(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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteFunctionVersionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.DeleteFunctionVersionRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the function's version to delete.
     * 
* * string function_version_id = 2 [(.yandex.cloud.required) = true]; * @return The functionVersionId. */ java.lang.String getFunctionVersionId(); /** *
     * ID of the function's version to delete.
     * 
* * string function_version_id = 2 [(.yandex.cloud.required) = true]; * @return The bytes for functionVersionId. */ com.google.protobuf.ByteString getFunctionVersionIdBytes(); /** *
     * Forces deletion of the version tags.
     * If the value equals false and the function has tags with the selected version then request returns an error.
     * 
* * bool force = 3; * @return The force. */ boolean getForce(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.DeleteFunctionVersionRequest} */ public static final class DeleteFunctionVersionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.DeleteFunctionVersionRequest) DeleteFunctionVersionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteFunctionVersionRequest.newBuilder() to construct. private DeleteFunctionVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteFunctionVersionRequest() { functionVersionId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteFunctionVersionRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteFunctionVersionRequest( 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 18: { java.lang.String s = input.readStringRequireUtf8(); functionVersionId_ = s; break; } case 24: { force_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest.Builder.class); } public static final int FUNCTION_VERSION_ID_FIELD_NUMBER = 2; private volatile java.lang.Object functionVersionId_; /** *
     * ID of the function's version to delete.
     * 
* * string function_version_id = 2 [(.yandex.cloud.required) = true]; * @return The functionVersionId. */ @java.lang.Override public java.lang.String getFunctionVersionId() { java.lang.Object ref = functionVersionId_; 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(); functionVersionId_ = s; return s; } } /** *
     * ID of the function's version to delete.
     * 
* * string function_version_id = 2 [(.yandex.cloud.required) = true]; * @return The bytes for functionVersionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionVersionIdBytes() { java.lang.Object ref = functionVersionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionVersionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FORCE_FIELD_NUMBER = 3; private boolean force_; /** *
     * Forces deletion of the version tags.
     * If the value equals false and the function has tags with the selected version then request returns an error.
     * 
* * bool force = 3; * @return The force. */ @java.lang.Override public boolean getForce() { return force_; } 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(functionVersionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, functionVersionId_); } if (force_ != false) { output.writeBool(3, force_); } 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(functionVersionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, functionVersionId_); } if (force_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, force_); } 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest) obj; if (!getFunctionVersionId() .equals(other.getFunctionVersionId())) return false; if (getForce() != other.getForce()) 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) + FUNCTION_VERSION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionVersionId().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getForce()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest 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.serverless.functions.v1.DeleteFunctionVersionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.DeleteFunctionVersionRequest) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionVersionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest.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(); functionVersionId_ = ""; force_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionVersionRequest_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest(this); result.functionVersionId_ = functionVersionId_; result.force_ = force_; 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest.getDefaultInstance()) return this; if (!other.getFunctionVersionId().isEmpty()) { functionVersionId_ = other.functionVersionId_; onChanged(); } if (other.getForce() != false) { setForce(other.getForce()); } 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object functionVersionId_ = ""; /** *
       * ID of the function's version to delete.
       * 
* * string function_version_id = 2 [(.yandex.cloud.required) = true]; * @return The functionVersionId. */ public java.lang.String getFunctionVersionId() { java.lang.Object ref = functionVersionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionVersionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the function's version to delete.
       * 
* * string function_version_id = 2 [(.yandex.cloud.required) = true]; * @return The bytes for functionVersionId. */ public com.google.protobuf.ByteString getFunctionVersionIdBytes() { java.lang.Object ref = functionVersionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionVersionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the function's version to delete.
       * 
* * string function_version_id = 2 [(.yandex.cloud.required) = true]; * @param value The functionVersionId to set. * @return This builder for chaining. */ public Builder setFunctionVersionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionVersionId_ = value; onChanged(); return this; } /** *
       * ID of the function's version to delete.
       * 
* * string function_version_id = 2 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearFunctionVersionId() { functionVersionId_ = getDefaultInstance().getFunctionVersionId(); onChanged(); return this; } /** *
       * ID of the function's version to delete.
       * 
* * string function_version_id = 2 [(.yandex.cloud.required) = true]; * @param value The bytes for functionVersionId to set. * @return This builder for chaining. */ public Builder setFunctionVersionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionVersionId_ = value; onChanged(); return this; } private boolean force_ ; /** *
       * Forces deletion of the version tags.
       * If the value equals false and the function has tags with the selected version then request returns an error.
       * 
* * bool force = 3; * @return The force. */ @java.lang.Override public boolean getForce() { return force_; } /** *
       * Forces deletion of the version tags.
       * If the value equals false and the function has tags with the selected version then request returns an error.
       * 
* * bool force = 3; * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { force_ = value; onChanged(); return this; } /** *
       * Forces deletion of the version tags.
       * If the value equals false and the function has tags with the selected version then request returns an error.
       * 
* * bool force = 3; * @return This builder for chaining. */ public Builder clearForce() { force_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.functions.v1.DeleteFunctionVersionRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.DeleteFunctionVersionRequest) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteFunctionVersionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteFunctionVersionRequest(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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteFunctionVersionMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.DeleteFunctionVersionMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the function's version is being deleted.
     * 
* * string function_version_id = 2; * @return The functionVersionId. */ java.lang.String getFunctionVersionId(); /** *
     * ID of the function's version is being deleted.
     * 
* * string function_version_id = 2; * @return The bytes for functionVersionId. */ com.google.protobuf.ByteString getFunctionVersionIdBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.DeleteFunctionVersionMetadata} */ public static final class DeleteFunctionVersionMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.DeleteFunctionVersionMetadata) DeleteFunctionVersionMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteFunctionVersionMetadata.newBuilder() to construct. private DeleteFunctionVersionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteFunctionVersionMetadata() { functionVersionId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DeleteFunctionVersionMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteFunctionVersionMetadata( 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 18: { java.lang.String s = input.readStringRequireUtf8(); functionVersionId_ = 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.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionVersionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionVersionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata.Builder.class); } public static final int FUNCTION_VERSION_ID_FIELD_NUMBER = 2; private volatile java.lang.Object functionVersionId_; /** *
     * ID of the function's version is being deleted.
     * 
* * string function_version_id = 2; * @return The functionVersionId. */ @java.lang.Override public java.lang.String getFunctionVersionId() { java.lang.Object ref = functionVersionId_; 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(); functionVersionId_ = s; return s; } } /** *
     * ID of the function's version is being deleted.
     * 
* * string function_version_id = 2; * @return The bytes for functionVersionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionVersionIdBytes() { java.lang.Object ref = functionVersionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionVersionId_ = 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(functionVersionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, functionVersionId_); } 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(functionVersionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, functionVersionId_); } 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata) obj; if (!getFunctionVersionId() .equals(other.getFunctionVersionId())) 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) + FUNCTION_VERSION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionVersionId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata 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.serverless.functions.v1.DeleteFunctionVersionMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.DeleteFunctionVersionMetadata) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionVersionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionVersionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata.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(); functionVersionId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionVersionMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata(this); result.functionVersionId_ = functionVersionId_; 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata.getDefaultInstance()) return this; if (!other.getFunctionVersionId().isEmpty()) { functionVersionId_ = other.functionVersionId_; 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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object functionVersionId_ = ""; /** *
       * ID of the function's version is being deleted.
       * 
* * string function_version_id = 2; * @return The functionVersionId. */ public java.lang.String getFunctionVersionId() { java.lang.Object ref = functionVersionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionVersionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the function's version is being deleted.
       * 
* * string function_version_id = 2; * @return The bytes for functionVersionId. */ public com.google.protobuf.ByteString getFunctionVersionIdBytes() { java.lang.Object ref = functionVersionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionVersionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the function's version is being deleted.
       * 
* * string function_version_id = 2; * @param value The functionVersionId to set. * @return This builder for chaining. */ public Builder setFunctionVersionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionVersionId_ = value; onChanged(); return this; } /** *
       * ID of the function's version is being deleted.
       * 
* * string function_version_id = 2; * @return This builder for chaining. */ public Builder clearFunctionVersionId() { functionVersionId_ = getDefaultInstance().getFunctionVersionId(); onChanged(); return this; } /** *
       * ID of the function's version is being deleted.
       * 
* * string function_version_id = 2; * @param value The bytes for functionVersionId to set. * @return This builder for chaining. */ public Builder setFunctionVersionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionVersionId_ = 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.serverless.functions.v1.DeleteFunctionVersionMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.DeleteFunctionVersionMetadata) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeleteFunctionVersionMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteFunctionVersionMetadata(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.serverless.functions.v1.FunctionServiceOuterClass.DeleteFunctionVersionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListRuntimesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.ListRuntimesRequest) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.ListRuntimesRequest} */ public static final class ListRuntimesRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.ListRuntimesRequest) ListRuntimesRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListRuntimesRequest.newBuilder() to construct. private ListRuntimesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListRuntimesRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListRuntimesRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListRuntimesRequest( 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; 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.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListRuntimesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListRuntimesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest.Builder.class); } 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 { unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest) obj; 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest 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.serverless.functions.v1.ListRuntimesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.ListRuntimesRequest) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListRuntimesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListRuntimesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest.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(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListRuntimesRequest_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest(this); 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.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest.getDefaultInstance()) return this; 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.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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.serverless.functions.v1.ListRuntimesRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.ListRuntimesRequest) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListRuntimesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListRuntimesRequest(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.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListRuntimesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.ListRuntimesResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Runtime environments available for the specified function.
     * 
* * repeated string runtimes = 1; * @return A list containing the runtimes. */ java.util.List getRuntimesList(); /** *
     * Runtime environments available for the specified function.
     * 
* * repeated string runtimes = 1; * @return The count of runtimes. */ int getRuntimesCount(); /** *
     * Runtime environments available for the specified function.
     * 
* * repeated string runtimes = 1; * @param index The index of the element to return. * @return The runtimes at the given index. */ java.lang.String getRuntimes(int index); /** *
     * Runtime environments available for the specified function.
     * 
* * repeated string runtimes = 1; * @param index The index of the value to return. * @return The bytes of the runtimes at the given index. */ com.google.protobuf.ByteString getRuntimesBytes(int index); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.ListRuntimesResponse} */ public static final class ListRuntimesResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.ListRuntimesResponse) ListRuntimesResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListRuntimesResponse.newBuilder() to construct. private ListRuntimesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListRuntimesResponse() { runtimes_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListRuntimesResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListRuntimesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { runtimes_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } runtimes_.add(s); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { runtimes_ = runtimes_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListRuntimesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListRuntimesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse.Builder.class); } public static final int RUNTIMES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList runtimes_; /** *
     * Runtime environments available for the specified function.
     * 
* * repeated string runtimes = 1; * @return A list containing the runtimes. */ public com.google.protobuf.ProtocolStringList getRuntimesList() { return runtimes_; } /** *
     * Runtime environments available for the specified function.
     * 
* * repeated string runtimes = 1; * @return The count of runtimes. */ public int getRuntimesCount() { return runtimes_.size(); } /** *
     * Runtime environments available for the specified function.
     * 
* * repeated string runtimes = 1; * @param index The index of the element to return. * @return The runtimes at the given index. */ public java.lang.String getRuntimes(int index) { return runtimes_.get(index); } /** *
     * Runtime environments available for the specified function.
     * 
* * repeated string runtimes = 1; * @param index The index of the value to return. * @return The bytes of the runtimes at the given index. */ public com.google.protobuf.ByteString getRuntimesBytes(int index) { return runtimes_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < runtimes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, runtimes_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < runtimes_.size(); i++) { dataSize += computeStringSizeNoTag(runtimes_.getRaw(i)); } size += dataSize; size += 1 * getRuntimesList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse) obj; if (!getRuntimesList() .equals(other.getRuntimesList())) 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 (getRuntimesCount() > 0) { hash = (37 * hash) + RUNTIMES_FIELD_NUMBER; hash = (53 * hash) + getRuntimesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse 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.serverless.functions.v1.ListRuntimesResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.ListRuntimesResponse) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListRuntimesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListRuntimesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse.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(); runtimes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListRuntimesResponse_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { runtimes_ = runtimes_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.runtimes_ = runtimes_; 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.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse.getDefaultInstance()) return this; if (!other.runtimes_.isEmpty()) { if (runtimes_.isEmpty()) { runtimes_ = other.runtimes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRuntimesIsMutable(); runtimes_.addAll(other.runtimes_); } 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.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList runtimes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRuntimesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { runtimes_ = new com.google.protobuf.LazyStringArrayList(runtimes_); bitField0_ |= 0x00000001; } } /** *
       * Runtime environments available for the specified function.
       * 
* * repeated string runtimes = 1; * @return A list containing the runtimes. */ public com.google.protobuf.ProtocolStringList getRuntimesList() { return runtimes_.getUnmodifiableView(); } /** *
       * Runtime environments available for the specified function.
       * 
* * repeated string runtimes = 1; * @return The count of runtimes. */ public int getRuntimesCount() { return runtimes_.size(); } /** *
       * Runtime environments available for the specified function.
       * 
* * repeated string runtimes = 1; * @param index The index of the element to return. * @return The runtimes at the given index. */ public java.lang.String getRuntimes(int index) { return runtimes_.get(index); } /** *
       * Runtime environments available for the specified function.
       * 
* * repeated string runtimes = 1; * @param index The index of the value to return. * @return The bytes of the runtimes at the given index. */ public com.google.protobuf.ByteString getRuntimesBytes(int index) { return runtimes_.getByteString(index); } /** *
       * Runtime environments available for the specified function.
       * 
* * repeated string runtimes = 1; * @param index The index to set the value at. * @param value The runtimes to set. * @return This builder for chaining. */ public Builder setRuntimes( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRuntimesIsMutable(); runtimes_.set(index, value); onChanged(); return this; } /** *
       * Runtime environments available for the specified function.
       * 
* * repeated string runtimes = 1; * @param value The runtimes to add. * @return This builder for chaining. */ public Builder addRuntimes( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRuntimesIsMutable(); runtimes_.add(value); onChanged(); return this; } /** *
       * Runtime environments available for the specified function.
       * 
* * repeated string runtimes = 1; * @param values The runtimes to add. * @return This builder for chaining. */ public Builder addAllRuntimes( java.lang.Iterable values) { ensureRuntimesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, runtimes_); onChanged(); return this; } /** *
       * Runtime environments available for the specified function.
       * 
* * repeated string runtimes = 1; * @return This builder for chaining. */ public Builder clearRuntimes() { runtimes_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Runtime environments available for the specified function.
       * 
* * repeated string runtimes = 1; * @param value The bytes of the runtimes to add. * @return This builder for chaining. */ public Builder addRuntimesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRuntimesIsMutable(); runtimes_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.functions.v1.ListRuntimesResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.ListRuntimesResponse) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListRuntimesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListRuntimesResponse(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.serverless.functions.v1.FunctionServiceOuterClass.ListRuntimesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListFunctionsVersionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.ListFunctionsVersionsRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the folder to list function versions for.
     * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1; * @return Whether the folderId field is set. */ boolean hasFolderId(); /** *
     * ID of the folder to list function versions for.
     * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * ID of the folder to list function versions for.
     * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
     * ID of the function to list versions for.
     * To get a function ID use a [FunctionService.List] request.
     * 
* * string function_id = 2; * @return Whether the functionId field is set. */ boolean hasFunctionId(); /** *
     * ID of the function to list versions for.
     * To get a function ID use a [FunctionService.List] request.
     * 
* * string function_id = 2; * @return The functionId. */ java.lang.String getFunctionId(); /** *
     * ID of the function to list versions for.
     * To get a function ID use a [FunctionService.List] request.
     * 
* * string function_id = 2; * @return The bytes for functionId. */ com.google.protobuf.ByteString getFunctionIdBytes(); /** *
     * The maximum number of results per page to return. If the number of available results
     * is larger than `pageSize`, the service returns a [ListFunctionsVersionsResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * Default value: 100.
     * 
* * int64 page_size = 3 [(.yandex.cloud.value) = "0-1000"]; * @return The pageSize. */ long getPageSize(); /** *
     * Page token. To get the next page of results, set `pageToken` to the
     * [ListFunctionsVersionsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ java.lang.String getPageToken(); /** *
     * Page token. To get the next page of results, set `pageToken` to the
     * [ListFunctionsVersionsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); /** *
     * A filter expression that filters resources listed in the response.
     * The expression must specify:
     * 1. The field name. Currently filtering can only be applied to the [Version.status] and [Version.runtime] fields.
     * 2. An `=` operator.
     * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     * Example of a filter: `status="ACTIVE"`.
     * 
* * string filter = 5 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ java.lang.String getFilter(); /** *
     * A filter expression that filters resources listed in the response.
     * The expression must specify:
     * 1. The field name. Currently filtering can only be applied to the [Version.status] and [Version.runtime] fields.
     * 2. An `=` operator.
     * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     * Example of a filter: `status="ACTIVE"`.
     * 
* * string filter = 5 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest.IdCase getIdCase(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.ListFunctionsVersionsRequest} */ public static final class ListFunctionsVersionsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.ListFunctionsVersionsRequest) ListFunctionsVersionsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListFunctionsVersionsRequest.newBuilder() to construct. private ListFunctionsVersionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListFunctionsVersionsRequest() { pageToken_ = ""; filter_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListFunctionsVersionsRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListFunctionsVersionsRequest( 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 24: { pageSize_ = input.readInt64(); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); pageToken_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); filter_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsVersionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsVersionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest.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), FUNCTION_ID(2), 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 FUNCTION_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; /** *
     * ID of the folder to list function versions for.
     * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * string folder_id = 1; * @return Whether the folderId field is set. */ public boolean hasFolderId() { return idCase_ == 1; } /** *
     * ID of the folder to list function versions for.
     * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * 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; } } /** *
     * ID of the folder to list function versions for.
     * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
     * 
* * 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 FUNCTION_ID_FIELD_NUMBER = 2; /** *
     * ID of the function to list versions for.
     * To get a function ID use a [FunctionService.List] request.
     * 
* * string function_id = 2; * @return Whether the functionId field is set. */ public boolean hasFunctionId() { return idCase_ == 2; } /** *
     * ID of the function to list versions for.
     * To get a function ID use a [FunctionService.List] request.
     * 
* * string function_id = 2; * @return The functionId. */ public java.lang.String getFunctionId() { 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; } } /** *
     * ID of the function to list versions for.
     * To get a function ID use a [FunctionService.List] request.
     * 
* * string function_id = 2; * @return The bytes for functionId. */ public com.google.protobuf.ByteString getFunctionIdBytes() { 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 PAGE_SIZE_FIELD_NUMBER = 3; private long pageSize_; /** *
     * The maximum number of results per page to return. If the number of available results
     * is larger than `pageSize`, the service returns a [ListFunctionsVersionsResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * Default value: 100.
     * 
* * int64 page_size = 3 [(.yandex.cloud.value) = "0-1000"]; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** *
     * Page token. To get the next page of results, set `pageToken` to the
     * [ListFunctionsVersionsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** *
     * Page token. To get the next page of results, set `pageToken` to the
     * [ListFunctionsVersionsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** *
     * A filter expression that filters resources listed in the response.
     * The expression must specify:
     * 1. The field name. Currently filtering can only be applied to the [Version.status] and [Version.runtime] fields.
     * 2. An `=` operator.
     * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     * Example of a filter: `status="ACTIVE"`.
     * 
* * string filter = 5 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ @java.lang.Override public java.lang.String getFilter() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** *
     * A filter expression that filters resources listed in the response.
     * The expression must specify:
     * 1. The field name. Currently filtering can only be applied to the [Version.status] and [Version.runtime] fields.
     * 2. An `=` operator.
     * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     * Example of a filter: `status="ACTIVE"`.
     * 
* * string filter = 5 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ @java.lang.Override public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (idCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (idCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); } if (pageSize_ != 0L) { output.writeInt64(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); } 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 (pageSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest) obj; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken() .equals(other.getPageToken())) return false; if (!getFilter() .equals(other.getFilter())) return false; if (!getIdCase().equals(other.getIdCase())) return false; switch (idCase_) { case 1: if (!getFolderId() .equals(other.getFolderId())) return false; break; case 2: if (!getFunctionId() .equals(other.getFunctionId())) 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(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPageSize()); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); switch (idCase_) { case 1: hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); break; case 2: hash = (37 * hash) + FUNCTION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionId().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest 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.serverless.functions.v1.ListFunctionsVersionsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.ListFunctionsVersionsRequest) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsVersionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsVersionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest.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(); pageSize_ = 0L; pageToken_ = ""; filter_ = ""; idCase_ = 0; id_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsVersionsRequest_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest(this); if (idCase_ == 1) { result.id_ = id_; } if (idCase_ == 2) { result.id_ = id_; } result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; result.filter_ = filter_; 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest.getDefaultInstance()) return this; if (other.getPageSize() != 0L) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; onChanged(); } switch (other.getIdCase()) { case FOLDER_ID: { idCase_ = 1; id_ = other.id_; onChanged(); break; } case FUNCTION_ID: { idCase_ = 2; 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest) 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; } /** *
       * ID of the folder to list function versions for.
       * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1; * @return Whether the folderId field is set. */ @java.lang.Override public boolean hasFolderId() { return idCase_ == 1; } /** *
       * ID of the folder to list function versions for.
       * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * 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; } } /** *
       * ID of the folder to list function versions for.
       * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * 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; } } /** *
       * ID of the folder to list function versions for.
       * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * 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; } /** *
       * ID of the folder to list function versions for.
       * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * string folder_id = 1; * @return This builder for chaining. */ public Builder clearFolderId() { if (idCase_ == 1) { idCase_ = 0; id_ = null; onChanged(); } return this; } /** *
       * ID of the folder to list function versions for.
       * To get a folder ID make a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
       * 
* * 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; } /** *
       * ID of the function to list versions for.
       * To get a function ID use a [FunctionService.List] request.
       * 
* * string function_id = 2; * @return Whether the functionId field is set. */ @java.lang.Override public boolean hasFunctionId() { return idCase_ == 2; } /** *
       * ID of the function to list versions for.
       * To get a function ID use a [FunctionService.List] request.
       * 
* * string function_id = 2; * @return The functionId. */ @java.lang.Override public java.lang.String getFunctionId() { 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; } } /** *
       * ID of the function to list versions for.
       * To get a function ID use a [FunctionService.List] request.
       * 
* * string function_id = 2; * @return The bytes for functionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionIdBytes() { 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; } } /** *
       * ID of the function to list versions for.
       * To get a function ID use a [FunctionService.List] request.
       * 
* * string function_id = 2; * @param value The functionId to set. * @return This builder for chaining. */ public Builder setFunctionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } idCase_ = 2; id_ = value; onChanged(); return this; } /** *
       * ID of the function to list versions for.
       * To get a function ID use a [FunctionService.List] request.
       * 
* * string function_id = 2; * @return This builder for chaining. */ public Builder clearFunctionId() { if (idCase_ == 2) { idCase_ = 0; id_ = null; onChanged(); } return this; } /** *
       * ID of the function to list versions for.
       * To get a function ID use a [FunctionService.List] request.
       * 
* * string function_id = 2; * @param value The bytes for functionId to set. * @return This builder for chaining. */ public Builder setFunctionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); idCase_ = 2; id_ = value; onChanged(); return this; } private long pageSize_ ; /** *
       * The maximum number of results per page to return. If the number of available results
       * is larger than `pageSize`, the service returns a [ListFunctionsVersionsResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 3 [(.yandex.cloud.value) = "0-1000"]; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } /** *
       * The maximum number of results per page to return. If the number of available results
       * is larger than `pageSize`, the service returns a [ListFunctionsVersionsResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 3 [(.yandex.cloud.value) = "0-1000"]; * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(long value) { pageSize_ = value; onChanged(); return this; } /** *
       * The maximum number of results per page to return. If the number of available results
       * is larger than `pageSize`, the service returns a [ListFunctionsVersionsResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 3 [(.yandex.cloud.value) = "0-1000"]; * @return This builder for chaining. */ public Builder clearPageSize() { pageSize_ = 0L; onChanged(); return this; } private java.lang.Object pageToken_ = ""; /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListFunctionsVersionsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListFunctionsVersionsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListFunctionsVersionsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @param value The pageToken to set. * @return This builder for chaining. */ public Builder setPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pageToken_ = value; onChanged(); return this; } /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListFunctionsVersionsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @return This builder for chaining. */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListFunctionsVersionsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @param value The bytes for pageToken to set. * @return This builder for chaining. */ public Builder setPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; onChanged(); return this; } private java.lang.Object filter_ = ""; /** *
       * A filter expression that filters resources listed in the response.
       * The expression must specify:
       * 1. The field name. Currently filtering can only be applied to the [Version.status] and [Version.runtime] fields.
       * 2. An `=` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * Example of a filter: `status="ACTIVE"`.
       * 
* * string filter = 5 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A filter expression that filters resources listed in the response.
       * The expression must specify:
       * 1. The field name. Currently filtering can only be applied to the [Version.status] and [Version.runtime] fields.
       * 2. An `=` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * Example of a filter: `status="ACTIVE"`.
       * 
* * string filter = 5 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A filter expression that filters resources listed in the response.
       * The expression must specify:
       * 1. The field name. Currently filtering can only be applied to the [Version.status] and [Version.runtime] fields.
       * 2. An `=` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * Example of a filter: `status="ACTIVE"`.
       * 
* * string filter = 5 [(.yandex.cloud.length) = "<=1000"]; * @param value The filter to set. * @return This builder for chaining. */ public Builder setFilter( java.lang.String value) { if (value == null) { throw new NullPointerException(); } filter_ = value; onChanged(); return this; } /** *
       * A filter expression that filters resources listed in the response.
       * The expression must specify:
       * 1. The field name. Currently filtering can only be applied to the [Version.status] and [Version.runtime] fields.
       * 2. An `=` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * Example of a filter: `status="ACTIVE"`.
       * 
* * string filter = 5 [(.yandex.cloud.length) = "<=1000"]; * @return This builder for chaining. */ public Builder clearFilter() { filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** *
       * A filter expression that filters resources listed in the response.
       * The expression must specify:
       * 1. The field name. Currently filtering can only be applied to the [Version.status] and [Version.runtime] fields.
       * 2. An `=` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * Example of a filter: `status="ACTIVE"`.
       * 
* * string filter = 5 [(.yandex.cloud.length) = "<=1000"]; * @param value The bytes for filter to set. * @return This builder for chaining. */ public Builder setFilterBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.functions.v1.ListFunctionsVersionsRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.ListFunctionsVersionsRequest) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListFunctionsVersionsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListFunctionsVersionsRequest(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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListFunctionsVersionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.ListFunctionsVersionsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * List of versions for the specified folder or function.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ java.util.List getVersionsList(); /** *
     * List of versions for the specified folder or function.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version getVersions(int index); /** *
     * List of versions for the specified folder or function.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ int getVersionsCount(); /** *
     * List of versions for the specified folder or function.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ java.util.List getVersionsOrBuilderList(); /** *
     * List of versions for the specified folder or function.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.VersionOrBuilder getVersionsOrBuilder( int index); /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListFunctionsVersionsRequest.page_size], use `nextPageToken` as the value
     * for the [ListFunctionsVersionsRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListFunctionsVersionsRequest.page_size], use `nextPageToken` as the value
     * for the [ListFunctionsVersionsRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.ListFunctionsVersionsResponse} */ public static final class ListFunctionsVersionsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.ListFunctionsVersionsResponse) ListFunctionsVersionsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListFunctionsVersionsResponse.newBuilder() to construct. private ListFunctionsVersionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListFunctionsVersionsResponse() { versions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListFunctionsVersionsResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListFunctionsVersionsResponse( 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)) { versions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } versions_.add( input.readMessage(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.parser(), extensionRegistry)); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); nextPageToken_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { versions_ = java.util.Collections.unmodifiableList(versions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsVersionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsVersionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse.Builder.class); } public static final int VERSIONS_FIELD_NUMBER = 1; private java.util.List versions_; /** *
     * List of versions for the specified folder or function.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ @java.lang.Override public java.util.List getVersionsList() { return versions_; } /** *
     * List of versions for the specified folder or function.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ @java.lang.Override public java.util.List getVersionsOrBuilderList() { return versions_; } /** *
     * List of versions for the specified folder or function.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ @java.lang.Override public int getVersionsCount() { return versions_.size(); } /** *
     * List of versions for the specified folder or function.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version getVersions(int index) { return versions_.get(index); } /** *
     * List of versions for the specified folder or function.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.VersionOrBuilder getVersionsOrBuilder( int index) { return versions_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListFunctionsVersionsRequest.page_size], use `nextPageToken` as the value
     * for the [ListFunctionsVersionsRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The nextPageToken. */ @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListFunctionsVersionsRequest.page_size], use `nextPageToken` as the value
     * for the [ListFunctionsVersionsRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < versions_.size(); i++) { output.writeMessage(1, versions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < versions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, versions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse) obj; if (!getVersionsList() .equals(other.getVersionsList())) return false; if (!getNextPageToken() .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getVersionsCount() > 0) { hash = (37 * hash) + VERSIONS_FIELD_NUMBER; hash = (53 * hash) + getVersionsList().hashCode(); } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse 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.serverless.functions.v1.ListFunctionsVersionsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.ListFunctionsVersionsResponse) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsVersionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsVersionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getVersionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (versionsBuilder_ == null) { versions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { versionsBuilder_.clear(); } nextPageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsVersionsResponse_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse(this); int from_bitField0_ = bitField0_; if (versionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { versions_ = java.util.Collections.unmodifiableList(versions_); bitField0_ = (bitField0_ & ~0x00000001); } result.versions_ = versions_; } else { result.versions_ = versionsBuilder_.build(); } result.nextPageToken_ = nextPageToken_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse.getDefaultInstance()) return this; if (versionsBuilder_ == null) { if (!other.versions_.isEmpty()) { if (versions_.isEmpty()) { versions_ = other.versions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureVersionsIsMutable(); versions_.addAll(other.versions_); } onChanged(); } } else { if (!other.versions_.isEmpty()) { if (versionsBuilder_.isEmpty()) { versionsBuilder_.dispose(); versionsBuilder_ = null; versions_ = other.versions_; bitField0_ = (bitField0_ & ~0x00000001); versionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVersionsFieldBuilder() : null; } else { versionsBuilder_.addAllMessages(other.versions_); } } } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List versions_ = java.util.Collections.emptyList(); private void ensureVersionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { versions_ = new java.util.ArrayList(versions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.VersionOrBuilder> versionsBuilder_; /** *
       * List of versions for the specified folder or function.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ public java.util.List getVersionsList() { if (versionsBuilder_ == null) { return java.util.Collections.unmodifiableList(versions_); } else { return versionsBuilder_.getMessageList(); } } /** *
       * List of versions for the specified folder or function.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ public int getVersionsCount() { if (versionsBuilder_ == null) { return versions_.size(); } else { return versionsBuilder_.getCount(); } } /** *
       * List of versions for the specified folder or function.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version getVersions(int index) { if (versionsBuilder_ == null) { return versions_.get(index); } else { return versionsBuilder_.getMessage(index); } } /** *
       * List of versions for the specified folder or function.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ public Builder setVersions( int index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version value) { if (versionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVersionsIsMutable(); versions_.set(index, value); onChanged(); } else { versionsBuilder_.setMessage(index, value); } return this; } /** *
       * List of versions for the specified folder or function.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ public Builder setVersions( int index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.Builder builderForValue) { if (versionsBuilder_ == null) { ensureVersionsIsMutable(); versions_.set(index, builderForValue.build()); onChanged(); } else { versionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of versions for the specified folder or function.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ public Builder addVersions(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version value) { if (versionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVersionsIsMutable(); versions_.add(value); onChanged(); } else { versionsBuilder_.addMessage(value); } return this; } /** *
       * List of versions for the specified folder or function.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ public Builder addVersions( int index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version value) { if (versionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVersionsIsMutable(); versions_.add(index, value); onChanged(); } else { versionsBuilder_.addMessage(index, value); } return this; } /** *
       * List of versions for the specified folder or function.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ public Builder addVersions( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.Builder builderForValue) { if (versionsBuilder_ == null) { ensureVersionsIsMutable(); versions_.add(builderForValue.build()); onChanged(); } else { versionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of versions for the specified folder or function.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ public Builder addVersions( int index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.Builder builderForValue) { if (versionsBuilder_ == null) { ensureVersionsIsMutable(); versions_.add(index, builderForValue.build()); onChanged(); } else { versionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of versions for the specified folder or function.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ public Builder addAllVersions( java.lang.Iterable values) { if (versionsBuilder_ == null) { ensureVersionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, versions_); onChanged(); } else { versionsBuilder_.addAllMessages(values); } return this; } /** *
       * List of versions for the specified folder or function.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ public Builder clearVersions() { if (versionsBuilder_ == null) { versions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { versionsBuilder_.clear(); } return this; } /** *
       * List of versions for the specified folder or function.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ public Builder removeVersions(int index) { if (versionsBuilder_ == null) { ensureVersionsIsMutable(); versions_.remove(index); onChanged(); } else { versionsBuilder_.remove(index); } return this; } /** *
       * List of versions for the specified folder or function.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.Builder getVersionsBuilder( int index) { return getVersionsFieldBuilder().getBuilder(index); } /** *
       * List of versions for the specified folder or function.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.VersionOrBuilder getVersionsOrBuilder( int index) { if (versionsBuilder_ == null) { return versions_.get(index); } else { return versionsBuilder_.getMessageOrBuilder(index); } } /** *
       * List of versions for the specified folder or function.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ public java.util.List getVersionsOrBuilderList() { if (versionsBuilder_ != null) { return versionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(versions_); } } /** *
       * List of versions for the specified folder or function.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.Builder addVersionsBuilder() { return getVersionsFieldBuilder().addBuilder( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.getDefaultInstance()); } /** *
       * List of versions for the specified folder or function.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.Builder addVersionsBuilder( int index) { return getVersionsFieldBuilder().addBuilder( index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.getDefaultInstance()); } /** *
       * List of versions for the specified folder or function.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Version versions = 1; */ public java.util.List getVersionsBuilderList() { return getVersionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.VersionOrBuilder> getVersionsFieldBuilder() { if (versionsBuilder_ == null) { versionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.VersionOrBuilder>( versions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); versions_ = null; } return versionsBuilder_; } private java.lang.Object nextPageToken_ = ""; /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListFunctionsVersionsRequest.page_size], use `nextPageToken` as the value
       * for the [ListFunctionsVersionsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListFunctionsVersionsRequest.page_size], use `nextPageToken` as the value
       * for the [ListFunctionsVersionsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListFunctionsVersionsRequest.page_size], use `nextPageToken` as the value
       * for the [ListFunctionsVersionsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @param value The nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; onChanged(); return this; } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListFunctionsVersionsRequest.page_size], use `nextPageToken` as the value
       * for the [ListFunctionsVersionsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return This builder for chaining. */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListFunctionsVersionsRequest.page_size], use `nextPageToken` as the value
       * for the [ListFunctionsVersionsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.functions.v1.ListFunctionsVersionsResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.ListFunctionsVersionsResponse) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListFunctionsVersionsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListFunctionsVersionsResponse(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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionsVersionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListFunctionOperationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.ListFunctionOperationsRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the function to list operations for.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ java.lang.String getFunctionId(); /** *
     * ID of the function to list operations for.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ com.google.protobuf.ByteString getFunctionIdBytes(); /** *
     * The maximum number of results per page that should be returned. If the number of available
     * results is larger than `pageSize`, the service returns a [ListFunctionOperationsResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * Default value: 100.
     * 
* * int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"]; * @return The pageSize. */ long getPageSize(); /** *
     * Page token. To get the next page of results, set `pageToken` to the
     * [ListFunctionOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ java.lang.String getPageToken(); /** *
     * Page token. To get the next page of results, set `pageToken` to the
     * [ListFunctionOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); /** *
     * A filter expression that filters resources listed in the response.
     * The expression must specify:
     * 1. The field name. Currently filtering can be applied to the [operation.Operation.done], [operation.Operation.created_by] field.
     * 2. An `=` operator.
     * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     * Examples of a filter: `done=false`, `created_by='John.Doe'`.
     * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ java.lang.String getFilter(); /** *
     * A filter expression that filters resources listed in the response.
     * The expression must specify:
     * 1. The field name. Currently filtering can be applied to the [operation.Operation.done], [operation.Operation.created_by] field.
     * 2. An `=` operator.
     * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     * Examples of a filter: `done=false`, `created_by='John.Doe'`.
     * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.ListFunctionOperationsRequest} */ public static final class ListFunctionOperationsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.ListFunctionOperationsRequest) ListFunctionOperationsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListFunctionOperationsRequest.newBuilder() to construct. private ListFunctionOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListFunctionOperationsRequest() { functionId_ = ""; pageToken_ = ""; filter_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListFunctionOperationsRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListFunctionOperationsRequest( 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(); functionId_ = s; break; } case 16: { pageSize_ = input.readInt64(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); pageToken_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); filter_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionOperationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionOperationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest.Builder.class); } public static final int FUNCTION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object functionId_; /** *
     * ID of the function to list operations for.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ @java.lang.Override public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; 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(); functionId_ = s; return s; } } /** *
     * ID of the function to list operations for.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PAGE_SIZE_FIELD_NUMBER = 2; private long pageSize_; /** *
     * The maximum number of results per page that should be returned. If the number of available
     * results is larger than `pageSize`, the service returns a [ListFunctionOperationsResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * Default value: 100.
     * 
* * int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"]; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** *
     * Page token. To get the next page of results, set `pageToken` to the
     * [ListFunctionOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** *
     * Page token. To get the next page of results, set `pageToken` to the
     * [ListFunctionOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** *
     * A filter expression that filters resources listed in the response.
     * The expression must specify:
     * 1. The field name. Currently filtering can be applied to the [operation.Operation.done], [operation.Operation.created_by] field.
     * 2. An `=` operator.
     * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     * Examples of a filter: `done=false`, `created_by='John.Doe'`.
     * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ @java.lang.Override public java.lang.String getFilter() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** *
     * A filter expression that filters resources listed in the response.
     * The expression must specify:
     * 1. The field name. Currently filtering can be applied to the [operation.Operation.done], [operation.Operation.created_by] field.
     * 2. An `=` operator.
     * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     * Examples of a filter: `done=false`, `created_by='John.Doe'`.
     * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ @java.lang.Override public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionId_); } if (pageSize_ != 0L) { output.writeInt64(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionId_); } if (pageSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest) obj; if (!getFunctionId() .equals(other.getFunctionId())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken() .equals(other.getPageToken())) return false; if (!getFilter() .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FUNCTION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionId().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPageSize()); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest 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.serverless.functions.v1.ListFunctionOperationsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.ListFunctionOperationsRequest) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionOperationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionOperationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest.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(); functionId_ = ""; pageSize_ = 0L; pageToken_ = ""; filter_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionOperationsRequest_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest(this); result.functionId_ = functionId_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; result.filter_ = filter_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest.getDefaultInstance()) return this; if (!other.getFunctionId().isEmpty()) { functionId_ = other.functionId_; onChanged(); } if (other.getPageSize() != 0L) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object functionId_ = ""; /** *
       * ID of the function to list operations for.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the function to list operations for.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the function to list operations for.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @param value The functionId to set. * @return This builder for chaining. */ public Builder setFunctionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionId_ = value; onChanged(); return this; } /** *
       * ID of the function to list operations for.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearFunctionId() { functionId_ = getDefaultInstance().getFunctionId(); onChanged(); return this; } /** *
       * ID of the function to list operations for.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for functionId to set. * @return This builder for chaining. */ public Builder setFunctionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionId_ = value; onChanged(); return this; } private long pageSize_ ; /** *
       * The maximum number of results per page that should be returned. If the number of available
       * results is larger than `pageSize`, the service returns a [ListFunctionOperationsResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"]; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } /** *
       * The maximum number of results per page that should be returned. If the number of available
       * results is larger than `pageSize`, the service returns a [ListFunctionOperationsResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"]; * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(long value) { pageSize_ = value; onChanged(); return this; } /** *
       * The maximum number of results per page that should be returned. If the number of available
       * results is larger than `pageSize`, the service returns a [ListFunctionOperationsResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"]; * @return This builder for chaining. */ public Builder clearPageSize() { pageSize_ = 0L; onChanged(); return this; } private java.lang.Object pageToken_ = ""; /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListFunctionOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListFunctionOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListFunctionOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @param value The pageToken to set. * @return This builder for chaining. */ public Builder setPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pageToken_ = value; onChanged(); return this; } /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListFunctionOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return This builder for chaining. */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListFunctionOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @param value The bytes for pageToken to set. * @return This builder for chaining. */ public Builder setPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; onChanged(); return this; } private java.lang.Object filter_ = ""; /** *
       * A filter expression that filters resources listed in the response.
       * The expression must specify:
       * 1. The field name. Currently filtering can be applied to the [operation.Operation.done], [operation.Operation.created_by] field.
       * 2. An `=` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * Examples of a filter: `done=false`, `created_by='John.Doe'`.
       * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A filter expression that filters resources listed in the response.
       * The expression must specify:
       * 1. The field name. Currently filtering can be applied to the [operation.Operation.done], [operation.Operation.created_by] field.
       * 2. An `=` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * Examples of a filter: `done=false`, `created_by='John.Doe'`.
       * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A filter expression that filters resources listed in the response.
       * The expression must specify:
       * 1. The field name. Currently filtering can be applied to the [operation.Operation.done], [operation.Operation.created_by] field.
       * 2. An `=` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * Examples of a filter: `done=false`, `created_by='John.Doe'`.
       * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @param value The filter to set. * @return This builder for chaining. */ public Builder setFilter( java.lang.String value) { if (value == null) { throw new NullPointerException(); } filter_ = value; onChanged(); return this; } /** *
       * A filter expression that filters resources listed in the response.
       * The expression must specify:
       * 1. The field name. Currently filtering can be applied to the [operation.Operation.done], [operation.Operation.created_by] field.
       * 2. An `=` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * Examples of a filter: `done=false`, `created_by='John.Doe'`.
       * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @return This builder for chaining. */ public Builder clearFilter() { filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** *
       * A filter expression that filters resources listed in the response.
       * The expression must specify:
       * 1. The field name. Currently filtering can be applied to the [operation.Operation.done], [operation.Operation.created_by] field.
       * 2. An `=` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * Examples of a filter: `done=false`, `created_by='John.Doe'`.
       * 
* * string filter = 4 [(.yandex.cloud.length) = "<=1000"]; * @param value The bytes for filter to set. * @return This builder for chaining. */ public Builder setFilterBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.functions.v1.ListFunctionOperationsRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.ListFunctionOperationsRequest) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListFunctionOperationsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListFunctionOperationsRequest(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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListFunctionOperationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.ListFunctionOperationsResponse) com.google.protobuf.MessageOrBuilder { /** *
     * List of operations for the specified function.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ java.util.List getOperationsList(); /** *
     * List of operations for the specified function.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index); /** *
     * List of operations for the specified function.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ int getOperationsCount(); /** *
     * List of operations for the specified function.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ java.util.List getOperationsOrBuilderList(); /** *
     * List of operations for the specified function.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder( int index); /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListFunctionOperationsRequest.page_size], use `nextPageToken` as the value
     * for the [ListFunctionOperationsRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListFunctionOperationsRequest.page_size], use `nextPageToken` as the value
     * for the [ListFunctionOperationsRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.ListFunctionOperationsResponse} */ public static final class ListFunctionOperationsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.ListFunctionOperationsResponse) ListFunctionOperationsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListFunctionOperationsResponse.newBuilder() to construct. private ListFunctionOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListFunctionOperationsResponse() { operations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListFunctionOperationsResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListFunctionOperationsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { operations_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } operations_.add( input.readMessage(yandex.cloud.api.operation.OperationOuterClass.Operation.parser(), extensionRegistry)); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); nextPageToken_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { operations_ = java.util.Collections.unmodifiableList(operations_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionOperationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionOperationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse.Builder.class); } public static final int OPERATIONS_FIELD_NUMBER = 1; private java.util.List operations_; /** *
     * List of operations for the specified function.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ @java.lang.Override public java.util.List getOperationsList() { return operations_; } /** *
     * List of operations for the specified function.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ @java.lang.Override public java.util.List getOperationsOrBuilderList() { return operations_; } /** *
     * List of operations for the specified function.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ @java.lang.Override public int getOperationsCount() { return operations_.size(); } /** *
     * List of operations for the specified function.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ @java.lang.Override public yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index) { return operations_.get(index); } /** *
     * List of operations for the specified function.
     * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ @java.lang.Override public yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder( int index) { return operations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListFunctionOperationsRequest.page_size], use `nextPageToken` as the value
     * for the [ListFunctionOperationsRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The nextPageToken. */ @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListFunctionOperationsRequest.page_size], use `nextPageToken` as the value
     * for the [ListFunctionOperationsRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < operations_.size(); i++) { output.writeMessage(1, operations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < operations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, operations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse) obj; if (!getOperationsList() .equals(other.getOperationsList())) return false; if (!getNextPageToken() .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getOperationsCount() > 0) { hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; hash = (53 * hash) + getOperationsList().hashCode(); } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse 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.serverless.functions.v1.ListFunctionOperationsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.ListFunctionOperationsResponse) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionOperationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionOperationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOperationsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (operationsBuilder_ == null) { operations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { operationsBuilder_.clear(); } nextPageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionOperationsResponse_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse(this); int from_bitField0_ = bitField0_; if (operationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { operations_ = java.util.Collections.unmodifiableList(operations_); bitField0_ = (bitField0_ & ~0x00000001); } result.operations_ = operations_; } else { result.operations_ = operationsBuilder_.build(); } result.nextPageToken_ = nextPageToken_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse.getDefaultInstance()) return this; if (operationsBuilder_ == null) { if (!other.operations_.isEmpty()) { if (operations_.isEmpty()) { operations_ = other.operations_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureOperationsIsMutable(); operations_.addAll(other.operations_); } onChanged(); } } else { if (!other.operations_.isEmpty()) { if (operationsBuilder_.isEmpty()) { operationsBuilder_.dispose(); operationsBuilder_ = null; operations_ = other.operations_; bitField0_ = (bitField0_ & ~0x00000001); operationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOperationsFieldBuilder() : null; } else { operationsBuilder_.addAllMessages(other.operations_); } } } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List operations_ = java.util.Collections.emptyList(); private void ensureOperationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { operations_ = new java.util.ArrayList(operations_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder> operationsBuilder_; /** *
       * List of operations for the specified function.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public java.util.List getOperationsList() { if (operationsBuilder_ == null) { return java.util.Collections.unmodifiableList(operations_); } else { return operationsBuilder_.getMessageList(); } } /** *
       * List of operations for the specified function.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public int getOperationsCount() { if (operationsBuilder_ == null) { return operations_.size(); } else { return operationsBuilder_.getCount(); } } /** *
       * List of operations for the specified function.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public yandex.cloud.api.operation.OperationOuterClass.Operation getOperations(int index) { if (operationsBuilder_ == null) { return operations_.get(index); } else { return operationsBuilder_.getMessage(index); } } /** *
       * List of operations for the specified function.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder setOperations( int index, yandex.cloud.api.operation.OperationOuterClass.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOperationsIsMutable(); operations_.set(index, value); onChanged(); } else { operationsBuilder_.setMessage(index, value); } return this; } /** *
       * List of operations for the specified function.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder setOperations( int index, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.set(index, builderForValue.build()); onChanged(); } else { operationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of operations for the specified function.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder addOperations(yandex.cloud.api.operation.OperationOuterClass.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOperationsIsMutable(); operations_.add(value); onChanged(); } else { operationsBuilder_.addMessage(value); } return this; } /** *
       * List of operations for the specified function.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder addOperations( int index, yandex.cloud.api.operation.OperationOuterClass.Operation value) { if (operationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOperationsIsMutable(); operations_.add(index, value); onChanged(); } else { operationsBuilder_.addMessage(index, value); } return this; } /** *
       * List of operations for the specified function.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder addOperations( yandex.cloud.api.operation.OperationOuterClass.Operation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.add(builderForValue.build()); onChanged(); } else { operationsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of operations for the specified function.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder addOperations( int index, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder builderForValue) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.add(index, builderForValue.build()); onChanged(); } else { operationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of operations for the specified function.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder addAllOperations( java.lang.Iterable values) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, operations_); onChanged(); } else { operationsBuilder_.addAllMessages(values); } return this; } /** *
       * List of operations for the specified function.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder clearOperations() { if (operationsBuilder_ == null) { operations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { operationsBuilder_.clear(); } return this; } /** *
       * List of operations for the specified function.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public Builder removeOperations(int index) { if (operationsBuilder_ == null) { ensureOperationsIsMutable(); operations_.remove(index); onChanged(); } else { operationsBuilder_.remove(index); } return this; } /** *
       * List of operations for the specified function.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder getOperationsBuilder( int index) { return getOperationsFieldBuilder().getBuilder(index); } /** *
       * List of operations for the specified function.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder getOperationsOrBuilder( int index) { if (operationsBuilder_ == null) { return operations_.get(index); } else { return operationsBuilder_.getMessageOrBuilder(index); } } /** *
       * List of operations for the specified function.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public java.util.List getOperationsOrBuilderList() { if (operationsBuilder_ != null) { return operationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(operations_); } } /** *
       * List of operations for the specified function.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder addOperationsBuilder() { return getOperationsFieldBuilder().addBuilder( yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()); } /** *
       * List of operations for the specified function.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public yandex.cloud.api.operation.OperationOuterClass.Operation.Builder addOperationsBuilder( int index) { return getOperationsFieldBuilder().addBuilder( index, yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()); } /** *
       * List of operations for the specified function.
       * 
* * repeated .yandex.cloud.operation.Operation operations = 1; */ public java.util.List getOperationsBuilderList() { return getOperationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder> getOperationsFieldBuilder() { if (operationsBuilder_ == null) { operationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.operation.OperationOuterClass.Operation, yandex.cloud.api.operation.OperationOuterClass.Operation.Builder, yandex.cloud.api.operation.OperationOuterClass.OperationOrBuilder>( operations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); operations_ = null; } return operationsBuilder_; } private java.lang.Object nextPageToken_ = ""; /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListFunctionOperationsRequest.page_size], use `nextPageToken` as the value
       * for the [ListFunctionOperationsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListFunctionOperationsRequest.page_size], use `nextPageToken` as the value
       * for the [ListFunctionOperationsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListFunctionOperationsRequest.page_size], use `nextPageToken` as the value
       * for the [ListFunctionOperationsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @param value The nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; onChanged(); return this; } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListFunctionOperationsRequest.page_size], use `nextPageToken` as the value
       * for the [ListFunctionOperationsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return This builder for chaining. */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListFunctionOperationsRequest.page_size], use `nextPageToken` as the value
       * for the [ListFunctionOperationsRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.functions.v1.ListFunctionOperationsResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.ListFunctionOperationsResponse) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListFunctionOperationsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListFunctionOperationsResponse(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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionOperationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateFunctionVersionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.CreateFunctionVersionRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the function to create a version for.
     * To get a function ID, make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ java.lang.String getFunctionId(); /** *
     * ID of the function to create a version for.
     * To get a function ID, make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ com.google.protobuf.ByteString getFunctionIdBytes(); /** *
     * Runtime environment for the version.
     * 
* * string runtime = 2 [(.yandex.cloud.required) = true]; * @return The runtime. */ java.lang.String getRuntime(); /** *
     * Runtime environment for the version.
     * 
* * string runtime = 2 [(.yandex.cloud.required) = true]; * @return The bytes for runtime. */ com.google.protobuf.ByteString getRuntimeBytes(); /** *
     * Description of the version
     * 
* * string description = 3 [(.yandex.cloud.length) = "0-256"]; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the version
     * 
* * string description = 3 [(.yandex.cloud.length) = "0-256"]; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Entrypoint of the version.
     * 
* * string entrypoint = 4 [(.yandex.cloud.required) = true]; * @return The entrypoint. */ java.lang.String getEntrypoint(); /** *
     * Entrypoint of the version.
     * 
* * string entrypoint = 4 [(.yandex.cloud.required) = true]; * @return The bytes for entrypoint. */ com.google.protobuf.ByteString getEntrypointBytes(); /** *
     * Resources allocated to the version.
     * 
* * .yandex.cloud.serverless.functions.v1.Resources resources = 5 [(.yandex.cloud.required) = true]; * @return Whether the resources field is set. */ boolean hasResources(); /** *
     * Resources allocated to the version.
     * 
* * .yandex.cloud.serverless.functions.v1.Resources resources = 5 [(.yandex.cloud.required) = true]; * @return The resources. */ yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources getResources(); /** *
     * Resources allocated to the version.
     * 
* * .yandex.cloud.serverless.functions.v1.Resources resources = 5 [(.yandex.cloud.required) = true]; */ yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ResourcesOrBuilder getResourcesOrBuilder(); /** *
     * Timeout for the execution of the version.
     * If the timeout is exceeded, Cloud Functions responds with a 504 HTTP code.
     * 
* * .google.protobuf.Duration execution_timeout = 6 [(.yandex.cloud.required) = true]; * @return Whether the executionTimeout field is set. */ boolean hasExecutionTimeout(); /** *
     * Timeout for the execution of the version.
     * If the timeout is exceeded, Cloud Functions responds with a 504 HTTP code.
     * 
* * .google.protobuf.Duration execution_timeout = 6 [(.yandex.cloud.required) = true]; * @return The executionTimeout. */ com.google.protobuf.Duration getExecutionTimeout(); /** *
     * Timeout for the execution of the version.
     * If the timeout is exceeded, Cloud Functions responds with a 504 HTTP code.
     * 
* * .google.protobuf.Duration execution_timeout = 6 [(.yandex.cloud.required) = true]; */ com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder(); /** *
     * ID of the service account to associate with the version.
     * 
* * string service_account_id = 7; * @return The serviceAccountId. */ java.lang.String getServiceAccountId(); /** *
     * ID of the service account to associate with the version.
     * 
* * string service_account_id = 7; * @return The bytes for serviceAccountId. */ com.google.protobuf.ByteString getServiceAccountIdBytes(); /** *
     * Functions deployment package.
     * 
* * .yandex.cloud.serverless.functions.v1.Package package = 9; * @return Whether the package field is set. */ boolean hasPackage(); /** *
     * Functions deployment package.
     * 
* * .yandex.cloud.serverless.functions.v1.Package package = 9; * @return The package. */ yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package getPackage(); /** *
     * Functions deployment package.
     * 
* * .yandex.cloud.serverless.functions.v1.Package package = 9; */ yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.PackageOrBuilder getPackageOrBuilder(); /** *
     * Content of the deployment package.
     * 
* * bytes content = 10 [(.yandex.cloud.length) = "<=52428800"]; * @return Whether the content field is set. */ boolean hasContent(); /** *
     * Content of the deployment package.
     * 
* * bytes content = 10 [(.yandex.cloud.length) = "<=52428800"]; * @return The content. */ com.google.protobuf.ByteString getContent(); /** *
     * ID of the version to be copied from. Source version must belong to the same folder as the created version
     * and the user must have read permissions to the source version.
     * 
* * string version_id = 11; * @return Whether the versionId field is set. */ boolean hasVersionId(); /** *
     * ID of the version to be copied from. Source version must belong to the same folder as the created version
     * and the user must have read permissions to the source version.
     * 
* * string version_id = 11; * @return The versionId. */ java.lang.String getVersionId(); /** *
     * ID of the version to be copied from. Source version must belong to the same folder as the created version
     * and the user must have read permissions to the source version.
     * 
* * string version_id = 11; * @return The bytes for versionId. */ com.google.protobuf.ByteString getVersionIdBytes(); /** *
     * Environment settings for the version.
     * 
* * map<string, string> environment = 12 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... } */ int getEnvironmentCount(); /** *
     * Environment settings for the version.
     * 
* * map<string, string> environment = 12 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... } */ boolean containsEnvironment( java.lang.String key); /** * Use {@link #getEnvironmentMap()} instead. */ @java.lang.Deprecated java.util.Map getEnvironment(); /** *
     * Environment settings for the version.
     * 
* * map<string, string> environment = 12 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... } */ java.util.Map getEnvironmentMap(); /** *
     * Environment settings for the version.
     * 
* * map<string, string> environment = 12 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... } */ java.lang.String getEnvironmentOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Environment settings for the version.
     * 
* * map<string, string> environment = 12 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... } */ java.lang.String getEnvironmentOrThrow( java.lang.String key); /** *
     * Function version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
     * 
* * repeated string tag = 13 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @return A list containing the tag. */ java.util.List getTagList(); /** *
     * Function version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
     * 
* * repeated string tag = 13 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @return The count of tag. */ int getTagCount(); /** *
     * Function version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
     * 
* * repeated string tag = 13 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @param index The index of the element to return. * @return The tag at the given index. */ java.lang.String getTag(int index); /** *
     * Function version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
     * 
* * repeated string tag = 13 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @param index The index of the value to return. * @return The bytes of the tag at the given index. */ com.google.protobuf.ByteString getTagBytes(int index); /** *
     * Function version connectivity. If specified the version will be attached to specified network/subnet(s).
     * 
* * .yandex.cloud.serverless.functions.v1.Connectivity connectivity = 17; * @return Whether the connectivity field is set. */ boolean hasConnectivity(); /** *
     * Function version connectivity. If specified the version will be attached to specified network/subnet(s).
     * 
* * .yandex.cloud.serverless.functions.v1.Connectivity connectivity = 17; * @return The connectivity. */ yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity getConnectivity(); /** *
     * Function version connectivity. If specified the version will be attached to specified network/subnet(s).
     * 
* * .yandex.cloud.serverless.functions.v1.Connectivity connectivity = 17; */ yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ConnectivityOrBuilder getConnectivityOrBuilder(); /** *
     * Additional service accounts to be used by the version.
     * 
* * map<string, string> named_service_accounts = 15; */ int getNamedServiceAccountsCount(); /** *
     * Additional service accounts to be used by the version.
     * 
* * map<string, string> named_service_accounts = 15; */ boolean containsNamedServiceAccounts( java.lang.String key); /** * Use {@link #getNamedServiceAccountsMap()} instead. */ @java.lang.Deprecated java.util.Map getNamedServiceAccounts(); /** *
     * Additional service accounts to be used by the version.
     * 
* * map<string, string> named_service_accounts = 15; */ java.util.Map getNamedServiceAccountsMap(); /** *
     * Additional service accounts to be used by the version.
     * 
* * map<string, string> named_service_accounts = 15; */ java.lang.String getNamedServiceAccountsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Additional service accounts to be used by the version.
     * 
* * map<string, string> named_service_accounts = 15; */ java.lang.String getNamedServiceAccountsOrThrow( java.lang.String key); /** *
     * Yandex Lockbox secrets to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ java.util.List getSecretsList(); /** *
     * Yandex Lockbox secrets to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret getSecrets(int index); /** *
     * Yandex Lockbox secrets to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ int getSecretsCount(); /** *
     * Yandex Lockbox secrets to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ java.util.List getSecretsOrBuilderList(); /** *
     * Yandex Lockbox secrets to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.SecretOrBuilder getSecretsOrBuilder( int index); /** *
     * Options for logging from the function
     * 
* * .yandex.cloud.serverless.functions.v1.LogOptions log_options = 19; * @return Whether the logOptions field is set. */ boolean hasLogOptions(); /** *
     * Options for logging from the function
     * 
* * .yandex.cloud.serverless.functions.v1.LogOptions log_options = 19; * @return The logOptions. */ yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions getLogOptions(); /** *
     * Options for logging from the function
     * 
* * .yandex.cloud.serverless.functions.v1.LogOptions log_options = 19; */ yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptionsOrBuilder getLogOptionsOrBuilder(); /** *
     * S3 mounts to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ java.util.List getStorageMountsList(); /** *
     * S3 mounts to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount getStorageMounts(int index); /** *
     * S3 mounts to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ int getStorageMountsCount(); /** *
     * S3 mounts to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ java.util.List getStorageMountsOrBuilderList(); /** *
     * S3 mounts to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMountOrBuilder getStorageMountsOrBuilder( int index); public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest.PackageSourceCase getPackageSourceCase(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.CreateFunctionVersionRequest} */ public static final class CreateFunctionVersionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.CreateFunctionVersionRequest) CreateFunctionVersionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CreateFunctionVersionRequest.newBuilder() to construct. private CreateFunctionVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateFunctionVersionRequest() { functionId_ = ""; runtime_ = ""; description_ = ""; entrypoint_ = ""; serviceAccountId_ = ""; tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; secrets_ = java.util.Collections.emptyList(); storageMounts_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateFunctionVersionRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateFunctionVersionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); functionId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); runtime_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); entrypoint_ = s; break; } case 42: { yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources.Builder subBuilder = null; if (resources_ != null) { subBuilder = resources_.toBuilder(); } resources_ = input.readMessage(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(resources_); resources_ = subBuilder.buildPartial(); } break; } case 50: { com.google.protobuf.Duration.Builder subBuilder = null; if (executionTimeout_ != null) { subBuilder = executionTimeout_.toBuilder(); } executionTimeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(executionTimeout_); executionTimeout_ = subBuilder.buildPartial(); } break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); serviceAccountId_ = s; break; } case 74: { yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package.Builder subBuilder = null; if (packageSourceCase_ == 9) { subBuilder = ((yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package) packageSource_).toBuilder(); } packageSource_ = input.readMessage(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package) packageSource_); packageSource_ = subBuilder.buildPartial(); } packageSourceCase_ = 9; break; } case 82: { packageSource_ = input.readBytes(); packageSourceCase_ = 10; break; } case 90: { java.lang.String s = input.readStringRequireUtf8(); packageSourceCase_ = 11; packageSource_ = s; break; } case 98: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { environment_ = com.google.protobuf.MapField.newMapField( EnvironmentDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry environment__ = input.readMessage( EnvironmentDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); environment_.getMutableMap().put( environment__.getKey(), environment__.getValue()); break; } case 106: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) != 0)) { tag_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } tag_.add(s); break; } case 122: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { namedServiceAccounts_ = com.google.protobuf.MapField.newMapField( NamedServiceAccountsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000004; } com.google.protobuf.MapEntry namedServiceAccounts__ = input.readMessage( NamedServiceAccountsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); namedServiceAccounts_.getMutableMap().put( namedServiceAccounts__.getKey(), namedServiceAccounts__.getValue()); break; } case 138: { yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity.Builder subBuilder = null; if (connectivity_ != null) { subBuilder = connectivity_.toBuilder(); } connectivity_ = input.readMessage(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(connectivity_); connectivity_ = subBuilder.buildPartial(); } break; } case 146: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { secrets_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } secrets_.add( input.readMessage(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret.parser(), extensionRegistry)); break; } case 154: { yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions.Builder subBuilder = null; if (logOptions_ != null) { subBuilder = logOptions_.toBuilder(); } logOptions_ = input.readMessage(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(logOptions_); logOptions_ = subBuilder.buildPartial(); } break; } case 162: { if (!((mutable_bitField0_ & 0x00000010) != 0)) { storageMounts_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } storageMounts_.add( input.readMessage(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount.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_ & 0x00000002) != 0)) { tag_ = tag_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000008) != 0)) { secrets_ = java.util.Collections.unmodifiableList(secrets_); } if (((mutable_bitField0_ & 0x00000010) != 0)) { storageMounts_ = java.util.Collections.unmodifiableList(storageMounts_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 12: return internalGetEnvironment(); case 15: return internalGetNamedServiceAccounts(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest.Builder.class); } private int packageSourceCase_ = 0; private java.lang.Object packageSource_; public enum PackageSourceCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PACKAGE(9), CONTENT(10), VERSION_ID(11), PACKAGESOURCE_NOT_SET(0); private final int value; private PackageSourceCase(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 PackageSourceCase valueOf(int value) { return forNumber(value); } public static PackageSourceCase forNumber(int value) { switch (value) { case 9: return PACKAGE; case 10: return CONTENT; case 11: return VERSION_ID; case 0: return PACKAGESOURCE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public PackageSourceCase getPackageSourceCase() { return PackageSourceCase.forNumber( packageSourceCase_); } public static final int FUNCTION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object functionId_; /** *
     * ID of the function to create a version for.
     * To get a function ID, make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ @java.lang.Override public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; 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(); functionId_ = s; return s; } } /** *
     * ID of the function to create a version for.
     * To get a function ID, make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RUNTIME_FIELD_NUMBER = 2; private volatile java.lang.Object runtime_; /** *
     * Runtime environment for the version.
     * 
* * string runtime = 2 [(.yandex.cloud.required) = true]; * @return The runtime. */ @java.lang.Override public java.lang.String getRuntime() { java.lang.Object ref = runtime_; 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(); runtime_ = s; return s; } } /** *
     * Runtime environment for the version.
     * 
* * string runtime = 2 [(.yandex.cloud.required) = true]; * @return The bytes for runtime. */ @java.lang.Override public com.google.protobuf.ByteString getRuntimeBytes() { java.lang.Object ref = runtime_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); runtime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** *
     * Description of the version
     * 
* * string description = 3 [(.yandex.cloud.length) = "0-256"]; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** *
     * Description of the version
     * 
* * string description = 3 [(.yandex.cloud.length) = "0-256"]; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENTRYPOINT_FIELD_NUMBER = 4; private volatile java.lang.Object entrypoint_; /** *
     * Entrypoint of the version.
     * 
* * string entrypoint = 4 [(.yandex.cloud.required) = true]; * @return The entrypoint. */ @java.lang.Override public java.lang.String getEntrypoint() { java.lang.Object ref = entrypoint_; 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(); entrypoint_ = s; return s; } } /** *
     * Entrypoint of the version.
     * 
* * string entrypoint = 4 [(.yandex.cloud.required) = true]; * @return The bytes for entrypoint. */ @java.lang.Override public com.google.protobuf.ByteString getEntrypointBytes() { java.lang.Object ref = entrypoint_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); entrypoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RESOURCES_FIELD_NUMBER = 5; private yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources resources_; /** *
     * Resources allocated to the version.
     * 
* * .yandex.cloud.serverless.functions.v1.Resources resources = 5 [(.yandex.cloud.required) = true]; * @return Whether the resources field is set. */ @java.lang.Override public boolean hasResources() { return resources_ != null; } /** *
     * Resources allocated to the version.
     * 
* * .yandex.cloud.serverless.functions.v1.Resources resources = 5 [(.yandex.cloud.required) = true]; * @return The resources. */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources getResources() { return resources_ == null ? yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources.getDefaultInstance() : resources_; } /** *
     * Resources allocated to the version.
     * 
* * .yandex.cloud.serverless.functions.v1.Resources resources = 5 [(.yandex.cloud.required) = true]; */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ResourcesOrBuilder getResourcesOrBuilder() { return getResources(); } public static final int EXECUTION_TIMEOUT_FIELD_NUMBER = 6; private com.google.protobuf.Duration executionTimeout_; /** *
     * Timeout for the execution of the version.
     * If the timeout is exceeded, Cloud Functions responds with a 504 HTTP code.
     * 
* * .google.protobuf.Duration execution_timeout = 6 [(.yandex.cloud.required) = true]; * @return Whether the executionTimeout field is set. */ @java.lang.Override public boolean hasExecutionTimeout() { return executionTimeout_ != null; } /** *
     * Timeout for the execution of the version.
     * If the timeout is exceeded, Cloud Functions responds with a 504 HTTP code.
     * 
* * .google.protobuf.Duration execution_timeout = 6 [(.yandex.cloud.required) = true]; * @return The executionTimeout. */ @java.lang.Override public com.google.protobuf.Duration getExecutionTimeout() { return executionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : executionTimeout_; } /** *
     * Timeout for the execution of the version.
     * If the timeout is exceeded, Cloud Functions responds with a 504 HTTP code.
     * 
* * .google.protobuf.Duration execution_timeout = 6 [(.yandex.cloud.required) = true]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { return getExecutionTimeout(); } public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 7; private volatile java.lang.Object serviceAccountId_; /** *
     * ID of the service account to associate with the version.
     * 
* * string service_account_id = 7; * @return The serviceAccountId. */ @java.lang.Override public java.lang.String getServiceAccountId() { java.lang.Object ref = serviceAccountId_; 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(); serviceAccountId_ = s; return s; } } /** *
     * ID of the service account to associate with the version.
     * 
* * string service_account_id = 7; * @return The bytes for serviceAccountId. */ @java.lang.Override public com.google.protobuf.ByteString getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serviceAccountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PACKAGE_FIELD_NUMBER = 9; /** *
     * Functions deployment package.
     * 
* * .yandex.cloud.serverless.functions.v1.Package package = 9; * @return Whether the package field is set. */ @java.lang.Override public boolean hasPackage() { return packageSourceCase_ == 9; } /** *
     * Functions deployment package.
     * 
* * .yandex.cloud.serverless.functions.v1.Package package = 9; * @return The package. */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package getPackage() { if (packageSourceCase_ == 9) { return (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package) packageSource_; } return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package.getDefaultInstance(); } /** *
     * Functions deployment package.
     * 
* * .yandex.cloud.serverless.functions.v1.Package package = 9; */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.PackageOrBuilder getPackageOrBuilder() { if (packageSourceCase_ == 9) { return (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package) packageSource_; } return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package.getDefaultInstance(); } public static final int CONTENT_FIELD_NUMBER = 10; /** *
     * Content of the deployment package.
     * 
* * bytes content = 10 [(.yandex.cloud.length) = "<=52428800"]; * @return Whether the content field is set. */ @java.lang.Override public boolean hasContent() { return packageSourceCase_ == 10; } /** *
     * Content of the deployment package.
     * 
* * bytes content = 10 [(.yandex.cloud.length) = "<=52428800"]; * @return The content. */ @java.lang.Override public com.google.protobuf.ByteString getContent() { if (packageSourceCase_ == 10) { return (com.google.protobuf.ByteString) packageSource_; } return com.google.protobuf.ByteString.EMPTY; } public static final int VERSION_ID_FIELD_NUMBER = 11; /** *
     * ID of the version to be copied from. Source version must belong to the same folder as the created version
     * and the user must have read permissions to the source version.
     * 
* * string version_id = 11; * @return Whether the versionId field is set. */ public boolean hasVersionId() { return packageSourceCase_ == 11; } /** *
     * ID of the version to be copied from. Source version must belong to the same folder as the created version
     * and the user must have read permissions to the source version.
     * 
* * string version_id = 11; * @return The versionId. */ public java.lang.String getVersionId() { java.lang.Object ref = ""; if (packageSourceCase_ == 11) { ref = packageSource_; } 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 (packageSourceCase_ == 11) { packageSource_ = s; } return s; } } /** *
     * ID of the version to be copied from. Source version must belong to the same folder as the created version
     * and the user must have read permissions to the source version.
     * 
* * string version_id = 11; * @return The bytes for versionId. */ public com.google.protobuf.ByteString getVersionIdBytes() { java.lang.Object ref = ""; if (packageSourceCase_ == 11) { ref = packageSource_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (packageSourceCase_ == 11) { packageSource_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENVIRONMENT_FIELD_NUMBER = 12; private static final class EnvironmentDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionRequest_EnvironmentEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> environment_; private com.google.protobuf.MapField internalGetEnvironment() { if (environment_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentDefaultEntryHolder.defaultEntry); } return environment_; } public int getEnvironmentCount() { return internalGetEnvironment().getMap().size(); } /** *
     * Environment settings for the version.
     * 
* * map<string, string> environment = 12 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public boolean containsEnvironment( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetEnvironment().getMap().containsKey(key); } /** * Use {@link #getEnvironmentMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironment() { return getEnvironmentMap(); } /** *
     * Environment settings for the version.
     * 
* * map<string, string> environment = 12 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.util.Map getEnvironmentMap() { return internalGetEnvironment().getMap(); } /** *
     * Environment settings for the version.
     * 
* * map<string, string> environment = 12 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.lang.String getEnvironmentOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEnvironment().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Environment settings for the version.
     * 
* * map<string, string> environment = 12 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.lang.String getEnvironmentOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEnvironment().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int TAG_FIELD_NUMBER = 13; private com.google.protobuf.LazyStringList tag_; /** *
     * Function version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
     * 
* * repeated string tag = 13 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @return A list containing the tag. */ public com.google.protobuf.ProtocolStringList getTagList() { return tag_; } /** *
     * Function version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
     * 
* * repeated string tag = 13 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @return The count of tag. */ public int getTagCount() { return tag_.size(); } /** *
     * Function version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
     * 
* * repeated string tag = 13 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @param index The index of the element to return. * @return The tag at the given index. */ public java.lang.String getTag(int index) { return tag_.get(index); } /** *
     * Function version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
     * 
* * repeated string tag = 13 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @param index The index of the value to return. * @return The bytes of the tag at the given index. */ public com.google.protobuf.ByteString getTagBytes(int index) { return tag_.getByteString(index); } public static final int CONNECTIVITY_FIELD_NUMBER = 17; private yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity connectivity_; /** *
     * Function version connectivity. If specified the version will be attached to specified network/subnet(s).
     * 
* * .yandex.cloud.serverless.functions.v1.Connectivity connectivity = 17; * @return Whether the connectivity field is set. */ @java.lang.Override public boolean hasConnectivity() { return connectivity_ != null; } /** *
     * Function version connectivity. If specified the version will be attached to specified network/subnet(s).
     * 
* * .yandex.cloud.serverless.functions.v1.Connectivity connectivity = 17; * @return The connectivity. */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity getConnectivity() { return connectivity_ == null ? yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity.getDefaultInstance() : connectivity_; } /** *
     * Function version connectivity. If specified the version will be attached to specified network/subnet(s).
     * 
* * .yandex.cloud.serverless.functions.v1.Connectivity connectivity = 17; */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ConnectivityOrBuilder getConnectivityOrBuilder() { return getConnectivity(); } public static final int NAMED_SERVICE_ACCOUNTS_FIELD_NUMBER = 15; private static final class NamedServiceAccountsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionRequest_NamedServiceAccountsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> namedServiceAccounts_; private com.google.protobuf.MapField internalGetNamedServiceAccounts() { if (namedServiceAccounts_ == null) { return com.google.protobuf.MapField.emptyMapField( NamedServiceAccountsDefaultEntryHolder.defaultEntry); } return namedServiceAccounts_; } public int getNamedServiceAccountsCount() { return internalGetNamedServiceAccounts().getMap().size(); } /** *
     * Additional service accounts to be used by the version.
     * 
* * map<string, string> named_service_accounts = 15; */ @java.lang.Override public boolean containsNamedServiceAccounts( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetNamedServiceAccounts().getMap().containsKey(key); } /** * Use {@link #getNamedServiceAccountsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getNamedServiceAccounts() { return getNamedServiceAccountsMap(); } /** *
     * Additional service accounts to be used by the version.
     * 
* * map<string, string> named_service_accounts = 15; */ @java.lang.Override public java.util.Map getNamedServiceAccountsMap() { return internalGetNamedServiceAccounts().getMap(); } /** *
     * Additional service accounts to be used by the version.
     * 
* * map<string, string> named_service_accounts = 15; */ @java.lang.Override public java.lang.String getNamedServiceAccountsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetNamedServiceAccounts().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Additional service accounts to be used by the version.
     * 
* * map<string, string> named_service_accounts = 15; */ @java.lang.Override public java.lang.String getNamedServiceAccountsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetNamedServiceAccounts().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int SECRETS_FIELD_NUMBER = 18; private java.util.List secrets_; /** *
     * Yandex Lockbox secrets to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ @java.lang.Override public java.util.List getSecretsList() { return secrets_; } /** *
     * Yandex Lockbox secrets to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ @java.lang.Override public java.util.List getSecretsOrBuilderList() { return secrets_; } /** *
     * Yandex Lockbox secrets to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ @java.lang.Override public int getSecretsCount() { return secrets_.size(); } /** *
     * Yandex Lockbox secrets to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret getSecrets(int index) { return secrets_.get(index); } /** *
     * Yandex Lockbox secrets to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.SecretOrBuilder getSecretsOrBuilder( int index) { return secrets_.get(index); } public static final int LOG_OPTIONS_FIELD_NUMBER = 19; private yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions logOptions_; /** *
     * Options for logging from the function
     * 
* * .yandex.cloud.serverless.functions.v1.LogOptions log_options = 19; * @return Whether the logOptions field is set. */ @java.lang.Override public boolean hasLogOptions() { return logOptions_ != null; } /** *
     * Options for logging from the function
     * 
* * .yandex.cloud.serverless.functions.v1.LogOptions log_options = 19; * @return The logOptions. */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions getLogOptions() { return logOptions_ == null ? yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions.getDefaultInstance() : logOptions_; } /** *
     * Options for logging from the function
     * 
* * .yandex.cloud.serverless.functions.v1.LogOptions log_options = 19; */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptionsOrBuilder getLogOptionsOrBuilder() { return getLogOptions(); } public static final int STORAGE_MOUNTS_FIELD_NUMBER = 20; private java.util.List storageMounts_; /** *
     * S3 mounts to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ @java.lang.Override public java.util.List getStorageMountsList() { return storageMounts_; } /** *
     * S3 mounts to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ @java.lang.Override public java.util.List getStorageMountsOrBuilderList() { return storageMounts_; } /** *
     * S3 mounts to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ @java.lang.Override public int getStorageMountsCount() { return storageMounts_.size(); } /** *
     * S3 mounts to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount getStorageMounts(int index) { return storageMounts_.get(index); } /** *
     * S3 mounts to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMountOrBuilder getStorageMountsOrBuilder( int index) { return storageMounts_.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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtime_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, runtime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entrypoint_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, entrypoint_); } if (resources_ != null) { output.writeMessage(5, getResources()); } if (executionTimeout_ != null) { output.writeMessage(6, getExecutionTimeout()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, serviceAccountId_); } if (packageSourceCase_ == 9) { output.writeMessage(9, (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package) packageSource_); } if (packageSourceCase_ == 10) { output.writeBytes( 10, (com.google.protobuf.ByteString) packageSource_); } if (packageSourceCase_ == 11) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, packageSource_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetEnvironment(), EnvironmentDefaultEntryHolder.defaultEntry, 12); for (int i = 0; i < tag_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, tag_.getRaw(i)); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetNamedServiceAccounts(), NamedServiceAccountsDefaultEntryHolder.defaultEntry, 15); if (connectivity_ != null) { output.writeMessage(17, getConnectivity()); } for (int i = 0; i < secrets_.size(); i++) { output.writeMessage(18, secrets_.get(i)); } if (logOptions_ != null) { output.writeMessage(19, getLogOptions()); } for (int i = 0; i < storageMounts_.size(); i++) { output.writeMessage(20, storageMounts_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtime_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, runtime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entrypoint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, entrypoint_); } if (resources_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getResources()); } if (executionTimeout_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getExecutionTimeout()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, serviceAccountId_); } if (packageSourceCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package) packageSource_); } if (packageSourceCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 10, (com.google.protobuf.ByteString) packageSource_); } if (packageSourceCase_ == 11) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, packageSource_); } for (java.util.Map.Entry entry : internalGetEnvironment().getMap().entrySet()) { com.google.protobuf.MapEntry environment__ = EnvironmentDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, environment__); } { int dataSize = 0; for (int i = 0; i < tag_.size(); i++) { dataSize += computeStringSizeNoTag(tag_.getRaw(i)); } size += dataSize; size += 1 * getTagList().size(); } for (java.util.Map.Entry entry : internalGetNamedServiceAccounts().getMap().entrySet()) { com.google.protobuf.MapEntry namedServiceAccounts__ = NamedServiceAccountsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, namedServiceAccounts__); } if (connectivity_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, getConnectivity()); } for (int i = 0; i < secrets_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, secrets_.get(i)); } if (logOptions_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, getLogOptions()); } for (int i = 0; i < storageMounts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, storageMounts_.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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest) obj; if (!getFunctionId() .equals(other.getFunctionId())) return false; if (!getRuntime() .equals(other.getRuntime())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getEntrypoint() .equals(other.getEntrypoint())) return false; if (hasResources() != other.hasResources()) return false; if (hasResources()) { if (!getResources() .equals(other.getResources())) return false; } if (hasExecutionTimeout() != other.hasExecutionTimeout()) return false; if (hasExecutionTimeout()) { if (!getExecutionTimeout() .equals(other.getExecutionTimeout())) return false; } if (!getServiceAccountId() .equals(other.getServiceAccountId())) return false; if (!internalGetEnvironment().equals( other.internalGetEnvironment())) return false; if (!getTagList() .equals(other.getTagList())) return false; if (hasConnectivity() != other.hasConnectivity()) return false; if (hasConnectivity()) { if (!getConnectivity() .equals(other.getConnectivity())) return false; } if (!internalGetNamedServiceAccounts().equals( other.internalGetNamedServiceAccounts())) return false; if (!getSecretsList() .equals(other.getSecretsList())) return false; if (hasLogOptions() != other.hasLogOptions()) return false; if (hasLogOptions()) { if (!getLogOptions() .equals(other.getLogOptions())) return false; } if (!getStorageMountsList() .equals(other.getStorageMountsList())) return false; if (!getPackageSourceCase().equals(other.getPackageSourceCase())) return false; switch (packageSourceCase_) { case 9: if (!getPackage() .equals(other.getPackage())) return false; break; case 10: if (!getContent() .equals(other.getContent())) return false; break; case 11: if (!getVersionId() .equals(other.getVersionId())) 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(); hash = (37 * hash) + FUNCTION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionId().hashCode(); hash = (37 * hash) + RUNTIME_FIELD_NUMBER; hash = (53 * hash) + getRuntime().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + ENTRYPOINT_FIELD_NUMBER; hash = (53 * hash) + getEntrypoint().hashCode(); if (hasResources()) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResources().hashCode(); } if (hasExecutionTimeout()) { hash = (37 * hash) + EXECUTION_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getExecutionTimeout().hashCode(); } hash = (37 * hash) + SERVICE_ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + getServiceAccountId().hashCode(); if (!internalGetEnvironment().getMap().isEmpty()) { hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; hash = (53 * hash) + internalGetEnvironment().hashCode(); } if (getTagCount() > 0) { hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + getTagList().hashCode(); } if (hasConnectivity()) { hash = (37 * hash) + CONNECTIVITY_FIELD_NUMBER; hash = (53 * hash) + getConnectivity().hashCode(); } if (!internalGetNamedServiceAccounts().getMap().isEmpty()) { hash = (37 * hash) + NAMED_SERVICE_ACCOUNTS_FIELD_NUMBER; hash = (53 * hash) + internalGetNamedServiceAccounts().hashCode(); } if (getSecretsCount() > 0) { hash = (37 * hash) + SECRETS_FIELD_NUMBER; hash = (53 * hash) + getSecretsList().hashCode(); } if (hasLogOptions()) { hash = (37 * hash) + LOG_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getLogOptions().hashCode(); } if (getStorageMountsCount() > 0) { hash = (37 * hash) + STORAGE_MOUNTS_FIELD_NUMBER; hash = (53 * hash) + getStorageMountsList().hashCode(); } switch (packageSourceCase_) { case 9: hash = (37 * hash) + PACKAGE_FIELD_NUMBER; hash = (53 * hash) + getPackage().hashCode(); break; case 10: hash = (37 * hash) + CONTENT_FIELD_NUMBER; hash = (53 * hash) + getContent().hashCode(); break; case 11: hash = (37 * hash) + VERSION_ID_FIELD_NUMBER; hash = (53 * hash) + getVersionId().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest 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.serverless.functions.v1.CreateFunctionVersionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.CreateFunctionVersionRequest) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionRequest_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 12: return internalGetEnvironment(); case 15: return internalGetNamedServiceAccounts(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 12: return internalGetMutableEnvironment(); case 15: return internalGetMutableNamedServiceAccounts(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSecretsFieldBuilder(); getStorageMountsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); functionId_ = ""; runtime_ = ""; description_ = ""; entrypoint_ = ""; if (resourcesBuilder_ == null) { resources_ = null; } else { resources_ = null; resourcesBuilder_ = null; } if (executionTimeoutBuilder_ == null) { executionTimeout_ = null; } else { executionTimeout_ = null; executionTimeoutBuilder_ = null; } serviceAccountId_ = ""; internalGetMutableEnvironment().clear(); tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); if (connectivityBuilder_ == null) { connectivity_ = null; } else { connectivity_ = null; connectivityBuilder_ = null; } internalGetMutableNamedServiceAccounts().clear(); if (secretsBuilder_ == null) { secrets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { secretsBuilder_.clear(); } if (logOptionsBuilder_ == null) { logOptions_ = null; } else { logOptions_ = null; logOptionsBuilder_ = null; } if (storageMountsBuilder_ == null) { storageMounts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { storageMountsBuilder_.clear(); } packageSourceCase_ = 0; packageSource_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionRequest_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest(this); int from_bitField0_ = bitField0_; result.functionId_ = functionId_; result.runtime_ = runtime_; result.description_ = description_; result.entrypoint_ = entrypoint_; if (resourcesBuilder_ == null) { result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } if (executionTimeoutBuilder_ == null) { result.executionTimeout_ = executionTimeout_; } else { result.executionTimeout_ = executionTimeoutBuilder_.build(); } result.serviceAccountId_ = serviceAccountId_; if (packageSourceCase_ == 9) { if (packageBuilder_ == null) { result.packageSource_ = packageSource_; } else { result.packageSource_ = packageBuilder_.build(); } } if (packageSourceCase_ == 10) { result.packageSource_ = packageSource_; } if (packageSourceCase_ == 11) { result.packageSource_ = packageSource_; } result.environment_ = internalGetEnvironment(); result.environment_.makeImmutable(); if (((bitField0_ & 0x00000002) != 0)) { tag_ = tag_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.tag_ = tag_; if (connectivityBuilder_ == null) { result.connectivity_ = connectivity_; } else { result.connectivity_ = connectivityBuilder_.build(); } result.namedServiceAccounts_ = internalGetNamedServiceAccounts(); result.namedServiceAccounts_.makeImmutable(); if (secretsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { secrets_ = java.util.Collections.unmodifiableList(secrets_); bitField0_ = (bitField0_ & ~0x00000008); } result.secrets_ = secrets_; } else { result.secrets_ = secretsBuilder_.build(); } if (logOptionsBuilder_ == null) { result.logOptions_ = logOptions_; } else { result.logOptions_ = logOptionsBuilder_.build(); } if (storageMountsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { storageMounts_ = java.util.Collections.unmodifiableList(storageMounts_); bitField0_ = (bitField0_ & ~0x00000010); } result.storageMounts_ = storageMounts_; } else { result.storageMounts_ = storageMountsBuilder_.build(); } result.packageSourceCase_ = packageSourceCase_; 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest.getDefaultInstance()) return this; if (!other.getFunctionId().isEmpty()) { functionId_ = other.functionId_; onChanged(); } if (!other.getRuntime().isEmpty()) { runtime_ = other.runtime_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (!other.getEntrypoint().isEmpty()) { entrypoint_ = other.entrypoint_; onChanged(); } if (other.hasResources()) { mergeResources(other.getResources()); } if (other.hasExecutionTimeout()) { mergeExecutionTimeout(other.getExecutionTimeout()); } if (!other.getServiceAccountId().isEmpty()) { serviceAccountId_ = other.serviceAccountId_; onChanged(); } internalGetMutableEnvironment().mergeFrom( other.internalGetEnvironment()); if (!other.tag_.isEmpty()) { if (tag_.isEmpty()) { tag_ = other.tag_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTagIsMutable(); tag_.addAll(other.tag_); } onChanged(); } if (other.hasConnectivity()) { mergeConnectivity(other.getConnectivity()); } internalGetMutableNamedServiceAccounts().mergeFrom( other.internalGetNamedServiceAccounts()); if (secretsBuilder_ == null) { if (!other.secrets_.isEmpty()) { if (secrets_.isEmpty()) { secrets_ = other.secrets_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureSecretsIsMutable(); secrets_.addAll(other.secrets_); } onChanged(); } } else { if (!other.secrets_.isEmpty()) { if (secretsBuilder_.isEmpty()) { secretsBuilder_.dispose(); secretsBuilder_ = null; secrets_ = other.secrets_; bitField0_ = (bitField0_ & ~0x00000008); secretsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSecretsFieldBuilder() : null; } else { secretsBuilder_.addAllMessages(other.secrets_); } } } if (other.hasLogOptions()) { mergeLogOptions(other.getLogOptions()); } if (storageMountsBuilder_ == null) { if (!other.storageMounts_.isEmpty()) { if (storageMounts_.isEmpty()) { storageMounts_ = other.storageMounts_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureStorageMountsIsMutable(); storageMounts_.addAll(other.storageMounts_); } onChanged(); } } else { if (!other.storageMounts_.isEmpty()) { if (storageMountsBuilder_.isEmpty()) { storageMountsBuilder_.dispose(); storageMountsBuilder_ = null; storageMounts_ = other.storageMounts_; bitField0_ = (bitField0_ & ~0x00000010); storageMountsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStorageMountsFieldBuilder() : null; } else { storageMountsBuilder_.addAllMessages(other.storageMounts_); } } } switch (other.getPackageSourceCase()) { case PACKAGE: { mergePackage(other.getPackage()); break; } case CONTENT: { setContent(other.getContent()); break; } case VERSION_ID: { packageSourceCase_ = 11; packageSource_ = other.packageSource_; onChanged(); break; } case PACKAGESOURCE_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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int packageSourceCase_ = 0; private java.lang.Object packageSource_; public PackageSourceCase getPackageSourceCase() { return PackageSourceCase.forNumber( packageSourceCase_); } public Builder clearPackageSource() { packageSourceCase_ = 0; packageSource_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object functionId_ = ""; /** *
       * ID of the function to create a version for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the function to create a version for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the function to create a version for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @param value The functionId to set. * @return This builder for chaining. */ public Builder setFunctionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionId_ = value; onChanged(); return this; } /** *
       * ID of the function to create a version for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearFunctionId() { functionId_ = getDefaultInstance().getFunctionId(); onChanged(); return this; } /** *
       * ID of the function to create a version for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for functionId to set. * @return This builder for chaining. */ public Builder setFunctionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionId_ = value; onChanged(); return this; } private java.lang.Object runtime_ = ""; /** *
       * Runtime environment for the version.
       * 
* * string runtime = 2 [(.yandex.cloud.required) = true]; * @return The runtime. */ public java.lang.String getRuntime() { java.lang.Object ref = runtime_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); runtime_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Runtime environment for the version.
       * 
* * string runtime = 2 [(.yandex.cloud.required) = true]; * @return The bytes for runtime. */ public com.google.protobuf.ByteString getRuntimeBytes() { java.lang.Object ref = runtime_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); runtime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Runtime environment for the version.
       * 
* * string runtime = 2 [(.yandex.cloud.required) = true]; * @param value The runtime to set. * @return This builder for chaining. */ public Builder setRuntime( java.lang.String value) { if (value == null) { throw new NullPointerException(); } runtime_ = value; onChanged(); return this; } /** *
       * Runtime environment for the version.
       * 
* * string runtime = 2 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearRuntime() { runtime_ = getDefaultInstance().getRuntime(); onChanged(); return this; } /** *
       * Runtime environment for the version.
       * 
* * string runtime = 2 [(.yandex.cloud.required) = true]; * @param value The bytes for runtime to set. * @return This builder for chaining. */ public Builder setRuntimeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); runtime_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * Description of the version
       * 
* * string description = 3 [(.yandex.cloud.length) = "0-256"]; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Description of the version
       * 
* * string description = 3 [(.yandex.cloud.length) = "0-256"]; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Description of the version
       * 
* * string description = 3 [(.yandex.cloud.length) = "0-256"]; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * Description of the version
       * 
* * string description = 3 [(.yandex.cloud.length) = "0-256"]; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the version
       * 
* * string description = 3 [(.yandex.cloud.length) = "0-256"]; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private java.lang.Object entrypoint_ = ""; /** *
       * Entrypoint of the version.
       * 
* * string entrypoint = 4 [(.yandex.cloud.required) = true]; * @return The entrypoint. */ public java.lang.String getEntrypoint() { java.lang.Object ref = entrypoint_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entrypoint_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Entrypoint of the version.
       * 
* * string entrypoint = 4 [(.yandex.cloud.required) = true]; * @return The bytes for entrypoint. */ public com.google.protobuf.ByteString getEntrypointBytes() { java.lang.Object ref = entrypoint_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); entrypoint_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Entrypoint of the version.
       * 
* * string entrypoint = 4 [(.yandex.cloud.required) = true]; * @param value The entrypoint to set. * @return This builder for chaining. */ public Builder setEntrypoint( java.lang.String value) { if (value == null) { throw new NullPointerException(); } entrypoint_ = value; onChanged(); return this; } /** *
       * Entrypoint of the version.
       * 
* * string entrypoint = 4 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearEntrypoint() { entrypoint_ = getDefaultInstance().getEntrypoint(); onChanged(); return this; } /** *
       * Entrypoint of the version.
       * 
* * string entrypoint = 4 [(.yandex.cloud.required) = true]; * @param value The bytes for entrypoint to set. * @return This builder for chaining. */ public Builder setEntrypointBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); entrypoint_ = value; onChanged(); return this; } private yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources resources_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ResourcesOrBuilder> resourcesBuilder_; /** *
       * Resources allocated to the version.
       * 
* * .yandex.cloud.serverless.functions.v1.Resources resources = 5 [(.yandex.cloud.required) = true]; * @return Whether the resources field is set. */ public boolean hasResources() { return resourcesBuilder_ != null || resources_ != null; } /** *
       * Resources allocated to the version.
       * 
* * .yandex.cloud.serverless.functions.v1.Resources resources = 5 [(.yandex.cloud.required) = true]; * @return The resources. */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources getResources() { if (resourcesBuilder_ == null) { return resources_ == null ? yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources.getDefaultInstance() : resources_; } else { return resourcesBuilder_.getMessage(); } } /** *
       * Resources allocated to the version.
       * 
* * .yandex.cloud.serverless.functions.v1.Resources resources = 5 [(.yandex.cloud.required) = true]; */ public Builder setResources(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resources_ = value; onChanged(); } else { resourcesBuilder_.setMessage(value); } return this; } /** *
       * Resources allocated to the version.
       * 
* * .yandex.cloud.serverless.functions.v1.Resources resources = 5 [(.yandex.cloud.required) = true]; */ public Builder setResources( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources.Builder builderForValue) { if (resourcesBuilder_ == null) { resources_ = builderForValue.build(); onChanged(); } else { resourcesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Resources allocated to the version.
       * 
* * .yandex.cloud.serverless.functions.v1.Resources resources = 5 [(.yandex.cloud.required) = true]; */ public Builder mergeResources(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources value) { if (resourcesBuilder_ == null) { if (resources_ != null) { resources_ = yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); } else { resources_ = value; } onChanged(); } else { resourcesBuilder_.mergeFrom(value); } return this; } /** *
       * Resources allocated to the version.
       * 
* * .yandex.cloud.serverless.functions.v1.Resources resources = 5 [(.yandex.cloud.required) = true]; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = null; onChanged(); } else { resources_ = null; resourcesBuilder_ = null; } return this; } /** *
       * Resources allocated to the version.
       * 
* * .yandex.cloud.serverless.functions.v1.Resources resources = 5 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources.Builder getResourcesBuilder() { onChanged(); return getResourcesFieldBuilder().getBuilder(); } /** *
       * Resources allocated to the version.
       * 
* * .yandex.cloud.serverless.functions.v1.Resources resources = 5 [(.yandex.cloud.required) = true]; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ResourcesOrBuilder getResourcesOrBuilder() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilder(); } else { return resources_ == null ? yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources.getDefaultInstance() : resources_; } } /** *
       * Resources allocated to the version.
       * 
* * .yandex.cloud.serverless.functions.v1.Resources resources = 5 [(.yandex.cloud.required) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ResourcesOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ResourcesOrBuilder>( getResources(), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private com.google.protobuf.Duration executionTimeout_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> executionTimeoutBuilder_; /** *
       * Timeout for the execution of the version.
       * If the timeout is exceeded, Cloud Functions responds with a 504 HTTP code.
       * 
* * .google.protobuf.Duration execution_timeout = 6 [(.yandex.cloud.required) = true]; * @return Whether the executionTimeout field is set. */ public boolean hasExecutionTimeout() { return executionTimeoutBuilder_ != null || executionTimeout_ != null; } /** *
       * Timeout for the execution of the version.
       * If the timeout is exceeded, Cloud Functions responds with a 504 HTTP code.
       * 
* * .google.protobuf.Duration execution_timeout = 6 [(.yandex.cloud.required) = true]; * @return The executionTimeout. */ public com.google.protobuf.Duration getExecutionTimeout() { if (executionTimeoutBuilder_ == null) { return executionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : executionTimeout_; } else { return executionTimeoutBuilder_.getMessage(); } } /** *
       * Timeout for the execution of the version.
       * If the timeout is exceeded, Cloud Functions responds with a 504 HTTP code.
       * 
* * .google.protobuf.Duration execution_timeout = 6 [(.yandex.cloud.required) = true]; */ public Builder setExecutionTimeout(com.google.protobuf.Duration value) { if (executionTimeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } executionTimeout_ = value; onChanged(); } else { executionTimeoutBuilder_.setMessage(value); } return this; } /** *
       * Timeout for the execution of the version.
       * If the timeout is exceeded, Cloud Functions responds with a 504 HTTP code.
       * 
* * .google.protobuf.Duration execution_timeout = 6 [(.yandex.cloud.required) = true]; */ public Builder setExecutionTimeout( com.google.protobuf.Duration.Builder builderForValue) { if (executionTimeoutBuilder_ == null) { executionTimeout_ = builderForValue.build(); onChanged(); } else { executionTimeoutBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Timeout for the execution of the version.
       * If the timeout is exceeded, Cloud Functions responds with a 504 HTTP code.
       * 
* * .google.protobuf.Duration execution_timeout = 6 [(.yandex.cloud.required) = true]; */ public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { if (executionTimeoutBuilder_ == null) { if (executionTimeout_ != null) { executionTimeout_ = com.google.protobuf.Duration.newBuilder(executionTimeout_).mergeFrom(value).buildPartial(); } else { executionTimeout_ = value; } onChanged(); } else { executionTimeoutBuilder_.mergeFrom(value); } return this; } /** *
       * Timeout for the execution of the version.
       * If the timeout is exceeded, Cloud Functions responds with a 504 HTTP code.
       * 
* * .google.protobuf.Duration execution_timeout = 6 [(.yandex.cloud.required) = true]; */ public Builder clearExecutionTimeout() { if (executionTimeoutBuilder_ == null) { executionTimeout_ = null; onChanged(); } else { executionTimeout_ = null; executionTimeoutBuilder_ = null; } return this; } /** *
       * Timeout for the execution of the version.
       * If the timeout is exceeded, Cloud Functions responds with a 504 HTTP code.
       * 
* * .google.protobuf.Duration execution_timeout = 6 [(.yandex.cloud.required) = true]; */ public com.google.protobuf.Duration.Builder getExecutionTimeoutBuilder() { onChanged(); return getExecutionTimeoutFieldBuilder().getBuilder(); } /** *
       * Timeout for the execution of the version.
       * If the timeout is exceeded, Cloud Functions responds with a 504 HTTP code.
       * 
* * .google.protobuf.Duration execution_timeout = 6 [(.yandex.cloud.required) = true]; */ public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { if (executionTimeoutBuilder_ != null) { return executionTimeoutBuilder_.getMessageOrBuilder(); } else { return executionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : executionTimeout_; } } /** *
       * Timeout for the execution of the version.
       * If the timeout is exceeded, Cloud Functions responds with a 504 HTTP code.
       * 
* * .google.protobuf.Duration execution_timeout = 6 [(.yandex.cloud.required) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getExecutionTimeoutFieldBuilder() { if (executionTimeoutBuilder_ == null) { executionTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getExecutionTimeout(), getParentForChildren(), isClean()); executionTimeout_ = null; } return executionTimeoutBuilder_; } private java.lang.Object serviceAccountId_ = ""; /** *
       * ID of the service account to associate with the version.
       * 
* * string service_account_id = 7; * @return The serviceAccountId. */ public java.lang.String getServiceAccountId() { java.lang.Object ref = serviceAccountId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the service account to associate with the version.
       * 
* * string service_account_id = 7; * @return The bytes for serviceAccountId. */ public com.google.protobuf.ByteString getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serviceAccountId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the service account to associate with the version.
       * 
* * string service_account_id = 7; * @param value The serviceAccountId to set. * @return This builder for chaining. */ public Builder setServiceAccountId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } serviceAccountId_ = value; onChanged(); return this; } /** *
       * ID of the service account to associate with the version.
       * 
* * string service_account_id = 7; * @return This builder for chaining. */ public Builder clearServiceAccountId() { serviceAccountId_ = getDefaultInstance().getServiceAccountId(); onChanged(); return this; } /** *
       * ID of the service account to associate with the version.
       * 
* * string service_account_id = 7; * @param value The bytes for serviceAccountId to set. * @return This builder for chaining. */ public Builder setServiceAccountIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceAccountId_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.PackageOrBuilder> packageBuilder_; /** *
       * Functions deployment package.
       * 
* * .yandex.cloud.serverless.functions.v1.Package package = 9; * @return Whether the package field is set. */ @java.lang.Override public boolean hasPackage() { return packageSourceCase_ == 9; } /** *
       * Functions deployment package.
       * 
* * .yandex.cloud.serverless.functions.v1.Package package = 9; * @return The package. */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package getPackage() { if (packageBuilder_ == null) { if (packageSourceCase_ == 9) { return (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package) packageSource_; } return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package.getDefaultInstance(); } else { if (packageSourceCase_ == 9) { return packageBuilder_.getMessage(); } return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package.getDefaultInstance(); } } /** *
       * Functions deployment package.
       * 
* * .yandex.cloud.serverless.functions.v1.Package package = 9; */ public Builder setPackage(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package value) { if (packageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } packageSource_ = value; onChanged(); } else { packageBuilder_.setMessage(value); } packageSourceCase_ = 9; return this; } /** *
       * Functions deployment package.
       * 
* * .yandex.cloud.serverless.functions.v1.Package package = 9; */ public Builder setPackage( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package.Builder builderForValue) { if (packageBuilder_ == null) { packageSource_ = builderForValue.build(); onChanged(); } else { packageBuilder_.setMessage(builderForValue.build()); } packageSourceCase_ = 9; return this; } /** *
       * Functions deployment package.
       * 
* * .yandex.cloud.serverless.functions.v1.Package package = 9; */ public Builder mergePackage(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package value) { if (packageBuilder_ == null) { if (packageSourceCase_ == 9 && packageSource_ != yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package.getDefaultInstance()) { packageSource_ = yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package.newBuilder((yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package) packageSource_) .mergeFrom(value).buildPartial(); } else { packageSource_ = value; } onChanged(); } else { if (packageSourceCase_ == 9) { packageBuilder_.mergeFrom(value); } packageBuilder_.setMessage(value); } packageSourceCase_ = 9; return this; } /** *
       * Functions deployment package.
       * 
* * .yandex.cloud.serverless.functions.v1.Package package = 9; */ public Builder clearPackage() { if (packageBuilder_ == null) { if (packageSourceCase_ == 9) { packageSourceCase_ = 0; packageSource_ = null; onChanged(); } } else { if (packageSourceCase_ == 9) { packageSourceCase_ = 0; packageSource_ = null; } packageBuilder_.clear(); } return this; } /** *
       * Functions deployment package.
       * 
* * .yandex.cloud.serverless.functions.v1.Package package = 9; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package.Builder getPackageBuilder() { return getPackageFieldBuilder().getBuilder(); } /** *
       * Functions deployment package.
       * 
* * .yandex.cloud.serverless.functions.v1.Package package = 9; */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.PackageOrBuilder getPackageOrBuilder() { if ((packageSourceCase_ == 9) && (packageBuilder_ != null)) { return packageBuilder_.getMessageOrBuilder(); } else { if (packageSourceCase_ == 9) { return (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package) packageSource_; } return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package.getDefaultInstance(); } } /** *
       * Functions deployment package.
       * 
* * .yandex.cloud.serverless.functions.v1.Package package = 9; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.PackageOrBuilder> getPackageFieldBuilder() { if (packageBuilder_ == null) { if (!(packageSourceCase_ == 9)) { packageSource_ = yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package.getDefaultInstance(); } packageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.PackageOrBuilder>( (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package) packageSource_, getParentForChildren(), isClean()); packageSource_ = null; } packageSourceCase_ = 9; onChanged();; return packageBuilder_; } /** *
       * Content of the deployment package.
       * 
* * bytes content = 10 [(.yandex.cloud.length) = "<=52428800"]; * @return Whether the content field is set. */ public boolean hasContent() { return packageSourceCase_ == 10; } /** *
       * Content of the deployment package.
       * 
* * bytes content = 10 [(.yandex.cloud.length) = "<=52428800"]; * @return The content. */ public com.google.protobuf.ByteString getContent() { if (packageSourceCase_ == 10) { return (com.google.protobuf.ByteString) packageSource_; } return com.google.protobuf.ByteString.EMPTY; } /** *
       * Content of the deployment package.
       * 
* * bytes content = 10 [(.yandex.cloud.length) = "<=52428800"]; * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } packageSourceCase_ = 10; packageSource_ = value; onChanged(); return this; } /** *
       * Content of the deployment package.
       * 
* * bytes content = 10 [(.yandex.cloud.length) = "<=52428800"]; * @return This builder for chaining. */ public Builder clearContent() { if (packageSourceCase_ == 10) { packageSourceCase_ = 0; packageSource_ = null; onChanged(); } return this; } /** *
       * ID of the version to be copied from. Source version must belong to the same folder as the created version
       * and the user must have read permissions to the source version.
       * 
* * string version_id = 11; * @return Whether the versionId field is set. */ @java.lang.Override public boolean hasVersionId() { return packageSourceCase_ == 11; } /** *
       * ID of the version to be copied from. Source version must belong to the same folder as the created version
       * and the user must have read permissions to the source version.
       * 
* * string version_id = 11; * @return The versionId. */ @java.lang.Override public java.lang.String getVersionId() { java.lang.Object ref = ""; if (packageSourceCase_ == 11) { ref = packageSource_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (packageSourceCase_ == 11) { packageSource_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the version to be copied from. Source version must belong to the same folder as the created version
       * and the user must have read permissions to the source version.
       * 
* * string version_id = 11; * @return The bytes for versionId. */ @java.lang.Override public com.google.protobuf.ByteString getVersionIdBytes() { java.lang.Object ref = ""; if (packageSourceCase_ == 11) { ref = packageSource_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (packageSourceCase_ == 11) { packageSource_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the version to be copied from. Source version must belong to the same folder as the created version
       * and the user must have read permissions to the source version.
       * 
* * string version_id = 11; * @param value The versionId to set. * @return This builder for chaining. */ public Builder setVersionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } packageSourceCase_ = 11; packageSource_ = value; onChanged(); return this; } /** *
       * ID of the version to be copied from. Source version must belong to the same folder as the created version
       * and the user must have read permissions to the source version.
       * 
* * string version_id = 11; * @return This builder for chaining. */ public Builder clearVersionId() { if (packageSourceCase_ == 11) { packageSourceCase_ = 0; packageSource_ = null; onChanged(); } return this; } /** *
       * ID of the version to be copied from. Source version must belong to the same folder as the created version
       * and the user must have read permissions to the source version.
       * 
* * string version_id = 11; * @param value The bytes for versionId to set. * @return This builder for chaining. */ public Builder setVersionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); packageSourceCase_ = 11; packageSource_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> environment_; private com.google.protobuf.MapField internalGetEnvironment() { if (environment_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentDefaultEntryHolder.defaultEntry); } return environment_; } private com.google.protobuf.MapField internalGetMutableEnvironment() { onChanged();; if (environment_ == null) { environment_ = com.google.protobuf.MapField.newMapField( EnvironmentDefaultEntryHolder.defaultEntry); } if (!environment_.isMutable()) { environment_ = environment_.copy(); } return environment_; } public int getEnvironmentCount() { return internalGetEnvironment().getMap().size(); } /** *
       * Environment settings for the version.
       * 
* * map<string, string> environment = 12 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public boolean containsEnvironment( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetEnvironment().getMap().containsKey(key); } /** * Use {@link #getEnvironmentMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironment() { return getEnvironmentMap(); } /** *
       * Environment settings for the version.
       * 
* * map<string, string> environment = 12 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.util.Map getEnvironmentMap() { return internalGetEnvironment().getMap(); } /** *
       * Environment settings for the version.
       * 
* * map<string, string> environment = 12 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.lang.String getEnvironmentOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEnvironment().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Environment settings for the version.
       * 
* * map<string, string> environment = 12 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... } */ @java.lang.Override public java.lang.String getEnvironmentOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetEnvironment().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearEnvironment() { internalGetMutableEnvironment().getMutableMap() .clear(); return this; } /** *
       * Environment settings for the version.
       * 
* * map<string, string> environment = 12 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... } */ public Builder removeEnvironment( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableEnvironment().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableEnvironment() { return internalGetMutableEnvironment().getMutableMap(); } /** *
       * Environment settings for the version.
       * 
* * map<string, string> environment = 12 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... } */ public Builder putEnvironment( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableEnvironment().getMutableMap() .put(key, value); return this; } /** *
       * Environment settings for the version.
       * 
* * map<string, string> environment = 12 [(.yandex.cloud.length) = "<=4096", (.yandex.cloud.map_key) = { ... } */ public Builder putAllEnvironment( java.util.Map values) { internalGetMutableEnvironment().getMutableMap() .putAll(values); return this; } private com.google.protobuf.LazyStringList tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTagIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { tag_ = new com.google.protobuf.LazyStringArrayList(tag_); bitField0_ |= 0x00000002; } } /** *
       * Function version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
       * 
* * repeated string tag = 13 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @return A list containing the tag. */ public com.google.protobuf.ProtocolStringList getTagList() { return tag_.getUnmodifiableView(); } /** *
       * Function version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
       * 
* * repeated string tag = 13 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @return The count of tag. */ public int getTagCount() { return tag_.size(); } /** *
       * Function version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
       * 
* * repeated string tag = 13 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @param index The index of the element to return. * @return The tag at the given index. */ public java.lang.String getTag(int index) { return tag_.get(index); } /** *
       * Function version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
       * 
* * repeated string tag = 13 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @param index The index of the value to return. * @return The bytes of the tag at the given index. */ public com.google.protobuf.ByteString getTagBytes(int index) { return tag_.getByteString(index); } /** *
       * Function version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
       * 
* * repeated string tag = 13 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @param index The index to set the value at. * @param value The tag to set. * @return This builder for chaining. */ public Builder setTag( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagIsMutable(); tag_.set(index, value); onChanged(); return this; } /** *
       * Function version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
       * 
* * repeated string tag = 13 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @param value The tag to add. * @return This builder for chaining. */ public Builder addTag( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagIsMutable(); tag_.add(value); onChanged(); return this; } /** *
       * Function version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
       * 
* * repeated string tag = 13 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @param values The tag to add. * @return This builder for chaining. */ public Builder addAllTag( java.lang.Iterable values) { ensureTagIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tag_); onChanged(); return this; } /** *
       * Function version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
       * 
* * repeated string tag = 13 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @return This builder for chaining. */ public Builder clearTag() { tag_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Function version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
       * 
* * repeated string tag = 13 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @param value The bytes of the tag to add. * @return This builder for chaining. */ public Builder addTagBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTagIsMutable(); tag_.add(value); onChanged(); return this; } private yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity connectivity_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ConnectivityOrBuilder> connectivityBuilder_; /** *
       * Function version connectivity. If specified the version will be attached to specified network/subnet(s).
       * 
* * .yandex.cloud.serverless.functions.v1.Connectivity connectivity = 17; * @return Whether the connectivity field is set. */ public boolean hasConnectivity() { return connectivityBuilder_ != null || connectivity_ != null; } /** *
       * Function version connectivity. If specified the version will be attached to specified network/subnet(s).
       * 
* * .yandex.cloud.serverless.functions.v1.Connectivity connectivity = 17; * @return The connectivity. */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity getConnectivity() { if (connectivityBuilder_ == null) { return connectivity_ == null ? yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity.getDefaultInstance() : connectivity_; } else { return connectivityBuilder_.getMessage(); } } /** *
       * Function version connectivity. If specified the version will be attached to specified network/subnet(s).
       * 
* * .yandex.cloud.serverless.functions.v1.Connectivity connectivity = 17; */ public Builder setConnectivity(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity value) { if (connectivityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } connectivity_ = value; onChanged(); } else { connectivityBuilder_.setMessage(value); } return this; } /** *
       * Function version connectivity. If specified the version will be attached to specified network/subnet(s).
       * 
* * .yandex.cloud.serverless.functions.v1.Connectivity connectivity = 17; */ public Builder setConnectivity( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity.Builder builderForValue) { if (connectivityBuilder_ == null) { connectivity_ = builderForValue.build(); onChanged(); } else { connectivityBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Function version connectivity. If specified the version will be attached to specified network/subnet(s).
       * 
* * .yandex.cloud.serverless.functions.v1.Connectivity connectivity = 17; */ public Builder mergeConnectivity(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity value) { if (connectivityBuilder_ == null) { if (connectivity_ != null) { connectivity_ = yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity.newBuilder(connectivity_).mergeFrom(value).buildPartial(); } else { connectivity_ = value; } onChanged(); } else { connectivityBuilder_.mergeFrom(value); } return this; } /** *
       * Function version connectivity. If specified the version will be attached to specified network/subnet(s).
       * 
* * .yandex.cloud.serverless.functions.v1.Connectivity connectivity = 17; */ public Builder clearConnectivity() { if (connectivityBuilder_ == null) { connectivity_ = null; onChanged(); } else { connectivity_ = null; connectivityBuilder_ = null; } return this; } /** *
       * Function version connectivity. If specified the version will be attached to specified network/subnet(s).
       * 
* * .yandex.cloud.serverless.functions.v1.Connectivity connectivity = 17; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity.Builder getConnectivityBuilder() { onChanged(); return getConnectivityFieldBuilder().getBuilder(); } /** *
       * Function version connectivity. If specified the version will be attached to specified network/subnet(s).
       * 
* * .yandex.cloud.serverless.functions.v1.Connectivity connectivity = 17; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ConnectivityOrBuilder getConnectivityOrBuilder() { if (connectivityBuilder_ != null) { return connectivityBuilder_.getMessageOrBuilder(); } else { return connectivity_ == null ? yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity.getDefaultInstance() : connectivity_; } } /** *
       * Function version connectivity. If specified the version will be attached to specified network/subnet(s).
       * 
* * .yandex.cloud.serverless.functions.v1.Connectivity connectivity = 17; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ConnectivityOrBuilder> getConnectivityFieldBuilder() { if (connectivityBuilder_ == null) { connectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ConnectivityOrBuilder>( getConnectivity(), getParentForChildren(), isClean()); connectivity_ = null; } return connectivityBuilder_; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> namedServiceAccounts_; private com.google.protobuf.MapField internalGetNamedServiceAccounts() { if (namedServiceAccounts_ == null) { return com.google.protobuf.MapField.emptyMapField( NamedServiceAccountsDefaultEntryHolder.defaultEntry); } return namedServiceAccounts_; } private com.google.protobuf.MapField internalGetMutableNamedServiceAccounts() { onChanged();; if (namedServiceAccounts_ == null) { namedServiceAccounts_ = com.google.protobuf.MapField.newMapField( NamedServiceAccountsDefaultEntryHolder.defaultEntry); } if (!namedServiceAccounts_.isMutable()) { namedServiceAccounts_ = namedServiceAccounts_.copy(); } return namedServiceAccounts_; } public int getNamedServiceAccountsCount() { return internalGetNamedServiceAccounts().getMap().size(); } /** *
       * Additional service accounts to be used by the version.
       * 
* * map<string, string> named_service_accounts = 15; */ @java.lang.Override public boolean containsNamedServiceAccounts( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetNamedServiceAccounts().getMap().containsKey(key); } /** * Use {@link #getNamedServiceAccountsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getNamedServiceAccounts() { return getNamedServiceAccountsMap(); } /** *
       * Additional service accounts to be used by the version.
       * 
* * map<string, string> named_service_accounts = 15; */ @java.lang.Override public java.util.Map getNamedServiceAccountsMap() { return internalGetNamedServiceAccounts().getMap(); } /** *
       * Additional service accounts to be used by the version.
       * 
* * map<string, string> named_service_accounts = 15; */ @java.lang.Override public java.lang.String getNamedServiceAccountsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetNamedServiceAccounts().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Additional service accounts to be used by the version.
       * 
* * map<string, string> named_service_accounts = 15; */ @java.lang.Override public java.lang.String getNamedServiceAccountsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetNamedServiceAccounts().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearNamedServiceAccounts() { internalGetMutableNamedServiceAccounts().getMutableMap() .clear(); return this; } /** *
       * Additional service accounts to be used by the version.
       * 
* * map<string, string> named_service_accounts = 15; */ public Builder removeNamedServiceAccounts( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableNamedServiceAccounts().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableNamedServiceAccounts() { return internalGetMutableNamedServiceAccounts().getMutableMap(); } /** *
       * Additional service accounts to be used by the version.
       * 
* * map<string, string> named_service_accounts = 15; */ public Builder putNamedServiceAccounts( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableNamedServiceAccounts().getMutableMap() .put(key, value); return this; } /** *
       * Additional service accounts to be used by the version.
       * 
* * map<string, string> named_service_accounts = 15; */ public Builder putAllNamedServiceAccounts( java.util.Map values) { internalGetMutableNamedServiceAccounts().getMutableMap() .putAll(values); return this; } private java.util.List secrets_ = java.util.Collections.emptyList(); private void ensureSecretsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { secrets_ = new java.util.ArrayList(secrets_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.SecretOrBuilder> secretsBuilder_; /** *
       * Yandex Lockbox secrets to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ public java.util.List getSecretsList() { if (secretsBuilder_ == null) { return java.util.Collections.unmodifiableList(secrets_); } else { return secretsBuilder_.getMessageList(); } } /** *
       * Yandex Lockbox secrets to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ public int getSecretsCount() { if (secretsBuilder_ == null) { return secrets_.size(); } else { return secretsBuilder_.getCount(); } } /** *
       * Yandex Lockbox secrets to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret getSecrets(int index) { if (secretsBuilder_ == null) { return secrets_.get(index); } else { return secretsBuilder_.getMessage(index); } } /** *
       * Yandex Lockbox secrets to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ public Builder setSecrets( int index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret value) { if (secretsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecretsIsMutable(); secrets_.set(index, value); onChanged(); } else { secretsBuilder_.setMessage(index, value); } return this; } /** *
       * Yandex Lockbox secrets to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ public Builder setSecrets( int index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret.Builder builderForValue) { if (secretsBuilder_ == null) { ensureSecretsIsMutable(); secrets_.set(index, builderForValue.build()); onChanged(); } else { secretsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Yandex Lockbox secrets to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ public Builder addSecrets(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret value) { if (secretsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecretsIsMutable(); secrets_.add(value); onChanged(); } else { secretsBuilder_.addMessage(value); } return this; } /** *
       * Yandex Lockbox secrets to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ public Builder addSecrets( int index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret value) { if (secretsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSecretsIsMutable(); secrets_.add(index, value); onChanged(); } else { secretsBuilder_.addMessage(index, value); } return this; } /** *
       * Yandex Lockbox secrets to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ public Builder addSecrets( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret.Builder builderForValue) { if (secretsBuilder_ == null) { ensureSecretsIsMutable(); secrets_.add(builderForValue.build()); onChanged(); } else { secretsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Yandex Lockbox secrets to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ public Builder addSecrets( int index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret.Builder builderForValue) { if (secretsBuilder_ == null) { ensureSecretsIsMutable(); secrets_.add(index, builderForValue.build()); onChanged(); } else { secretsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Yandex Lockbox secrets to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ public Builder addAllSecrets( java.lang.Iterable values) { if (secretsBuilder_ == null) { ensureSecretsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, secrets_); onChanged(); } else { secretsBuilder_.addAllMessages(values); } return this; } /** *
       * Yandex Lockbox secrets to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ public Builder clearSecrets() { if (secretsBuilder_ == null) { secrets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { secretsBuilder_.clear(); } return this; } /** *
       * Yandex Lockbox secrets to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ public Builder removeSecrets(int index) { if (secretsBuilder_ == null) { ensureSecretsIsMutable(); secrets_.remove(index); onChanged(); } else { secretsBuilder_.remove(index); } return this; } /** *
       * Yandex Lockbox secrets to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret.Builder getSecretsBuilder( int index) { return getSecretsFieldBuilder().getBuilder(index); } /** *
       * Yandex Lockbox secrets to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.SecretOrBuilder getSecretsOrBuilder( int index) { if (secretsBuilder_ == null) { return secrets_.get(index); } else { return secretsBuilder_.getMessageOrBuilder(index); } } /** *
       * Yandex Lockbox secrets to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ public java.util.List getSecretsOrBuilderList() { if (secretsBuilder_ != null) { return secretsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(secrets_); } } /** *
       * Yandex Lockbox secrets to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret.Builder addSecretsBuilder() { return getSecretsFieldBuilder().addBuilder( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret.getDefaultInstance()); } /** *
       * Yandex Lockbox secrets to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret.Builder addSecretsBuilder( int index) { return getSecretsFieldBuilder().addBuilder( index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret.getDefaultInstance()); } /** *
       * Yandex Lockbox secrets to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 18; */ public java.util.List getSecretsBuilderList() { return getSecretsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.SecretOrBuilder> getSecretsFieldBuilder() { if (secretsBuilder_ == null) { secretsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.SecretOrBuilder>( secrets_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); secrets_ = null; } return secretsBuilder_; } private yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions logOptions_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptionsOrBuilder> logOptionsBuilder_; /** *
       * Options for logging from the function
       * 
* * .yandex.cloud.serverless.functions.v1.LogOptions log_options = 19; * @return Whether the logOptions field is set. */ public boolean hasLogOptions() { return logOptionsBuilder_ != null || logOptions_ != null; } /** *
       * Options for logging from the function
       * 
* * .yandex.cloud.serverless.functions.v1.LogOptions log_options = 19; * @return The logOptions. */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions getLogOptions() { if (logOptionsBuilder_ == null) { return logOptions_ == null ? yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions.getDefaultInstance() : logOptions_; } else { return logOptionsBuilder_.getMessage(); } } /** *
       * Options for logging from the function
       * 
* * .yandex.cloud.serverless.functions.v1.LogOptions log_options = 19; */ public Builder setLogOptions(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions value) { if (logOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } logOptions_ = value; onChanged(); } else { logOptionsBuilder_.setMessage(value); } return this; } /** *
       * Options for logging from the function
       * 
* * .yandex.cloud.serverless.functions.v1.LogOptions log_options = 19; */ public Builder setLogOptions( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions.Builder builderForValue) { if (logOptionsBuilder_ == null) { logOptions_ = builderForValue.build(); onChanged(); } else { logOptionsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Options for logging from the function
       * 
* * .yandex.cloud.serverless.functions.v1.LogOptions log_options = 19; */ public Builder mergeLogOptions(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions value) { if (logOptionsBuilder_ == null) { if (logOptions_ != null) { logOptions_ = yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions.newBuilder(logOptions_).mergeFrom(value).buildPartial(); } else { logOptions_ = value; } onChanged(); } else { logOptionsBuilder_.mergeFrom(value); } return this; } /** *
       * Options for logging from the function
       * 
* * .yandex.cloud.serverless.functions.v1.LogOptions log_options = 19; */ public Builder clearLogOptions() { if (logOptionsBuilder_ == null) { logOptions_ = null; onChanged(); } else { logOptions_ = null; logOptionsBuilder_ = null; } return this; } /** *
       * Options for logging from the function
       * 
* * .yandex.cloud.serverless.functions.v1.LogOptions log_options = 19; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions.Builder getLogOptionsBuilder() { onChanged(); return getLogOptionsFieldBuilder().getBuilder(); } /** *
       * Options for logging from the function
       * 
* * .yandex.cloud.serverless.functions.v1.LogOptions log_options = 19; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptionsOrBuilder getLogOptionsOrBuilder() { if (logOptionsBuilder_ != null) { return logOptionsBuilder_.getMessageOrBuilder(); } else { return logOptions_ == null ? yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions.getDefaultInstance() : logOptions_; } } /** *
       * Options for logging from the function
       * 
* * .yandex.cloud.serverless.functions.v1.LogOptions log_options = 19; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptionsOrBuilder> getLogOptionsFieldBuilder() { if (logOptionsBuilder_ == null) { logOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptionsOrBuilder>( getLogOptions(), getParentForChildren(), isClean()); logOptions_ = null; } return logOptionsBuilder_; } private java.util.List storageMounts_ = java.util.Collections.emptyList(); private void ensureStorageMountsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { storageMounts_ = new java.util.ArrayList(storageMounts_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMountOrBuilder> storageMountsBuilder_; /** *
       * S3 mounts to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ public java.util.List getStorageMountsList() { if (storageMountsBuilder_ == null) { return java.util.Collections.unmodifiableList(storageMounts_); } else { return storageMountsBuilder_.getMessageList(); } } /** *
       * S3 mounts to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ public int getStorageMountsCount() { if (storageMountsBuilder_ == null) { return storageMounts_.size(); } else { return storageMountsBuilder_.getCount(); } } /** *
       * S3 mounts to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount getStorageMounts(int index) { if (storageMountsBuilder_ == null) { return storageMounts_.get(index); } else { return storageMountsBuilder_.getMessage(index); } } /** *
       * S3 mounts to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ public Builder setStorageMounts( int index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount value) { if (storageMountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStorageMountsIsMutable(); storageMounts_.set(index, value); onChanged(); } else { storageMountsBuilder_.setMessage(index, value); } return this; } /** *
       * S3 mounts to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ public Builder setStorageMounts( int index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount.Builder builderForValue) { if (storageMountsBuilder_ == null) { ensureStorageMountsIsMutable(); storageMounts_.set(index, builderForValue.build()); onChanged(); } else { storageMountsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * S3 mounts to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ public Builder addStorageMounts(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount value) { if (storageMountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStorageMountsIsMutable(); storageMounts_.add(value); onChanged(); } else { storageMountsBuilder_.addMessage(value); } return this; } /** *
       * S3 mounts to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ public Builder addStorageMounts( int index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount value) { if (storageMountsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStorageMountsIsMutable(); storageMounts_.add(index, value); onChanged(); } else { storageMountsBuilder_.addMessage(index, value); } return this; } /** *
       * S3 mounts to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ public Builder addStorageMounts( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount.Builder builderForValue) { if (storageMountsBuilder_ == null) { ensureStorageMountsIsMutable(); storageMounts_.add(builderForValue.build()); onChanged(); } else { storageMountsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * S3 mounts to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ public Builder addStorageMounts( int index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount.Builder builderForValue) { if (storageMountsBuilder_ == null) { ensureStorageMountsIsMutable(); storageMounts_.add(index, builderForValue.build()); onChanged(); } else { storageMountsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * S3 mounts to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ public Builder addAllStorageMounts( java.lang.Iterable values) { if (storageMountsBuilder_ == null) { ensureStorageMountsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, storageMounts_); onChanged(); } else { storageMountsBuilder_.addAllMessages(values); } return this; } /** *
       * S3 mounts to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ public Builder clearStorageMounts() { if (storageMountsBuilder_ == null) { storageMounts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { storageMountsBuilder_.clear(); } return this; } /** *
       * S3 mounts to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ public Builder removeStorageMounts(int index) { if (storageMountsBuilder_ == null) { ensureStorageMountsIsMutable(); storageMounts_.remove(index); onChanged(); } else { storageMountsBuilder_.remove(index); } return this; } /** *
       * S3 mounts to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount.Builder getStorageMountsBuilder( int index) { return getStorageMountsFieldBuilder().getBuilder(index); } /** *
       * S3 mounts to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMountOrBuilder getStorageMountsOrBuilder( int index) { if (storageMountsBuilder_ == null) { return storageMounts_.get(index); } else { return storageMountsBuilder_.getMessageOrBuilder(index); } } /** *
       * S3 mounts to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ public java.util.List getStorageMountsOrBuilderList() { if (storageMountsBuilder_ != null) { return storageMountsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(storageMounts_); } } /** *
       * S3 mounts to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount.Builder addStorageMountsBuilder() { return getStorageMountsFieldBuilder().addBuilder( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount.getDefaultInstance()); } /** *
       * S3 mounts to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount.Builder addStorageMountsBuilder( int index) { return getStorageMountsFieldBuilder().addBuilder( index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount.getDefaultInstance()); } /** *
       * S3 mounts to be used by the version.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 20; */ public java.util.List getStorageMountsBuilderList() { return getStorageMountsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMountOrBuilder> getStorageMountsFieldBuilder() { if (storageMountsBuilder_ == null) { storageMountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMountOrBuilder>( storageMounts_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); storageMounts_ = null; } return storageMountsBuilder_; } @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.serverless.functions.v1.CreateFunctionVersionRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.CreateFunctionVersionRequest) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateFunctionVersionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateFunctionVersionRequest(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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CreateFunctionVersionMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.CreateFunctionVersionMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the version that is being created.
     * 
* * string function_version_id = 1; * @return The functionVersionId. */ java.lang.String getFunctionVersionId(); /** *
     * ID of the version that is being created.
     * 
* * string function_version_id = 1; * @return The bytes for functionVersionId. */ com.google.protobuf.ByteString getFunctionVersionIdBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.CreateFunctionVersionMetadata} */ public static final class CreateFunctionVersionMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.CreateFunctionVersionMetadata) CreateFunctionVersionMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use CreateFunctionVersionMetadata.newBuilder() to construct. private CreateFunctionVersionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CreateFunctionVersionMetadata() { functionVersionId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CreateFunctionVersionMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreateFunctionVersionMetadata( 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(); functionVersionId_ = 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.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata.Builder.class); } public static final int FUNCTION_VERSION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object functionVersionId_; /** *
     * ID of the version that is being created.
     * 
* * string function_version_id = 1; * @return The functionVersionId. */ @java.lang.Override public java.lang.String getFunctionVersionId() { java.lang.Object ref = functionVersionId_; 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(); functionVersionId_ = s; return s; } } /** *
     * ID of the version that is being created.
     * 
* * string function_version_id = 1; * @return The bytes for functionVersionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionVersionIdBytes() { java.lang.Object ref = functionVersionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionVersionId_ = 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(functionVersionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionVersionId_); } 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(functionVersionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionVersionId_); } 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata) obj; if (!getFunctionVersionId() .equals(other.getFunctionVersionId())) 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) + FUNCTION_VERSION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionVersionId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata 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.serverless.functions.v1.CreateFunctionVersionMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.CreateFunctionVersionMetadata) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata.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(); functionVersionId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata(this); result.functionVersionId_ = functionVersionId_; 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata.getDefaultInstance()) return this; if (!other.getFunctionVersionId().isEmpty()) { functionVersionId_ = other.functionVersionId_; 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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object functionVersionId_ = ""; /** *
       * ID of the version that is being created.
       * 
* * string function_version_id = 1; * @return The functionVersionId. */ public java.lang.String getFunctionVersionId() { java.lang.Object ref = functionVersionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionVersionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the version that is being created.
       * 
* * string function_version_id = 1; * @return The bytes for functionVersionId. */ public com.google.protobuf.ByteString getFunctionVersionIdBytes() { java.lang.Object ref = functionVersionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionVersionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the version that is being created.
       * 
* * string function_version_id = 1; * @param value The functionVersionId to set. * @return This builder for chaining. */ public Builder setFunctionVersionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionVersionId_ = value; onChanged(); return this; } /** *
       * ID of the version that is being created.
       * 
* * string function_version_id = 1; * @return This builder for chaining. */ public Builder clearFunctionVersionId() { functionVersionId_ = getDefaultInstance().getFunctionVersionId(); onChanged(); return this; } /** *
       * ID of the version that is being created.
       * 
* * string function_version_id = 1; * @param value The bytes for functionVersionId to set. * @return This builder for chaining. */ public Builder setFunctionVersionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionVersionId_ = 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.serverless.functions.v1.CreateFunctionVersionMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.CreateFunctionVersionMetadata) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateFunctionVersionMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateFunctionVersionMetadata(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.serverless.functions.v1.FunctionServiceOuterClass.CreateFunctionVersionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SetFunctionTagRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.SetFunctionTagRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the version to set the tag for.
     * To get a version ID make a [FunctionService.ListVersions] request.
     * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @return The functionVersionId. */ java.lang.String getFunctionVersionId(); /** *
     * ID of the version to set the tag for.
     * To get a version ID make a [FunctionService.ListVersions] request.
     * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionVersionId. */ com.google.protobuf.ByteString getFunctionVersionIdBytes(); /** *
     * Tag to set for the version.
     * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @return The tag. */ java.lang.String getTag(); /** *
     * Tag to set for the version.
     * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @return The bytes for tag. */ com.google.protobuf.ByteString getTagBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.SetFunctionTagRequest} */ public static final class SetFunctionTagRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.SetFunctionTagRequest) SetFunctionTagRequestOrBuilder { private static final long serialVersionUID = 0L; // Use SetFunctionTagRequest.newBuilder() to construct. private SetFunctionTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SetFunctionTagRequest() { functionVersionId_ = ""; tag_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SetFunctionTagRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SetFunctionTagRequest( 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(); functionVersionId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); tag_ = 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.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_SetFunctionTagRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_SetFunctionTagRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest.Builder.class); } public static final int FUNCTION_VERSION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object functionVersionId_; /** *
     * ID of the version to set the tag for.
     * To get a version ID make a [FunctionService.ListVersions] request.
     * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @return The functionVersionId. */ @java.lang.Override public java.lang.String getFunctionVersionId() { java.lang.Object ref = functionVersionId_; 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(); functionVersionId_ = s; return s; } } /** *
     * ID of the version to set the tag for.
     * To get a version ID make a [FunctionService.ListVersions] request.
     * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionVersionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionVersionIdBytes() { java.lang.Object ref = functionVersionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionVersionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TAG_FIELD_NUMBER = 2; private volatile java.lang.Object tag_; /** *
     * Tag to set for the version.
     * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @return The tag. */ @java.lang.Override public java.lang.String getTag() { java.lang.Object ref = tag_; 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(); tag_ = s; return s; } } /** *
     * Tag to set for the version.
     * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @return The bytes for tag. */ @java.lang.Override public com.google.protobuf.ByteString getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tag_ = 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(functionVersionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionVersionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); } 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(functionVersionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionVersionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); } 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.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest) obj; if (!getFunctionVersionId() .equals(other.getFunctionVersionId())) return false; if (!getTag() .equals(other.getTag())) 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) + FUNCTION_VERSION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionVersionId().hashCode(); hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + getTag().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest 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.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest 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.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest 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.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest 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.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest 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.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest 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.serverless.functions.v1.SetFunctionTagRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.SetFunctionTagRequest) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_SetFunctionTagRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_SetFunctionTagRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest.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(); functionVersionId_ = ""; tag_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_SetFunctionTagRequest_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest(this); result.functionVersionId_ = functionVersionId_; result.tag_ = tag_; 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.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest.getDefaultInstance()) return this; if (!other.getFunctionVersionId().isEmpty()) { functionVersionId_ = other.functionVersionId_; onChanged(); } if (!other.getTag().isEmpty()) { tag_ = other.tag_; 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.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object functionVersionId_ = ""; /** *
       * ID of the version to set the tag for.
       * To get a version ID make a [FunctionService.ListVersions] request.
       * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @return The functionVersionId. */ public java.lang.String getFunctionVersionId() { java.lang.Object ref = functionVersionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionVersionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the version to set the tag for.
       * To get a version ID make a [FunctionService.ListVersions] request.
       * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionVersionId. */ public com.google.protobuf.ByteString getFunctionVersionIdBytes() { java.lang.Object ref = functionVersionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionVersionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the version to set the tag for.
       * To get a version ID make a [FunctionService.ListVersions] request.
       * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @param value The functionVersionId to set. * @return This builder for chaining. */ public Builder setFunctionVersionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionVersionId_ = value; onChanged(); return this; } /** *
       * ID of the version to set the tag for.
       * To get a version ID make a [FunctionService.ListVersions] request.
       * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearFunctionVersionId() { functionVersionId_ = getDefaultInstance().getFunctionVersionId(); onChanged(); return this; } /** *
       * ID of the version to set the tag for.
       * To get a version ID make a [FunctionService.ListVersions] request.
       * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for functionVersionId to set. * @return This builder for chaining. */ public Builder setFunctionVersionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionVersionId_ = value; onChanged(); return this; } private java.lang.Object tag_ = ""; /** *
       * Tag to set for the version.
       * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @return The tag. */ public java.lang.String getTag() { java.lang.Object ref = tag_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tag_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Tag to set for the version.
       * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @return The bytes for tag. */ public com.google.protobuf.ByteString getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Tag to set for the version.
       * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @param value The tag to set. * @return This builder for chaining. */ public Builder setTag( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tag_ = value; onChanged(); return this; } /** *
       * Tag to set for the version.
       * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @return This builder for chaining. */ public Builder clearTag() { tag_ = getDefaultInstance().getTag(); onChanged(); return this; } /** *
       * Tag to set for the version.
       * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @param value The bytes for tag to set. * @return This builder for chaining. */ public Builder setTagBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tag_ = 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.serverless.functions.v1.SetFunctionTagRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.SetFunctionTagRequest) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SetFunctionTagRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SetFunctionTagRequest(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.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RemoveFunctionTagRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.RemoveFunctionTagRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the version to remove a tag from.
     * To get the a version ID make a [FunctionService.ListVersions] request.
     * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @return The functionVersionId. */ java.lang.String getFunctionVersionId(); /** *
     * ID of the version to remove a tag from.
     * To get the a version ID make a [FunctionService.ListVersions] request.
     * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionVersionId. */ com.google.protobuf.ByteString getFunctionVersionIdBytes(); /** *
     * Tag to remove from the specified version.
     * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @return The tag. */ java.lang.String getTag(); /** *
     * Tag to remove from the specified version.
     * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @return The bytes for tag. */ com.google.protobuf.ByteString getTagBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.RemoveFunctionTagRequest} */ public static final class RemoveFunctionTagRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.RemoveFunctionTagRequest) RemoveFunctionTagRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RemoveFunctionTagRequest.newBuilder() to construct. private RemoveFunctionTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RemoveFunctionTagRequest() { functionVersionId_ = ""; tag_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RemoveFunctionTagRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RemoveFunctionTagRequest( 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(); functionVersionId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); tag_ = 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.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_RemoveFunctionTagRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_RemoveFunctionTagRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest.Builder.class); } public static final int FUNCTION_VERSION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object functionVersionId_; /** *
     * ID of the version to remove a tag from.
     * To get the a version ID make a [FunctionService.ListVersions] request.
     * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @return The functionVersionId. */ @java.lang.Override public java.lang.String getFunctionVersionId() { java.lang.Object ref = functionVersionId_; 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(); functionVersionId_ = s; return s; } } /** *
     * ID of the version to remove a tag from.
     * To get the a version ID make a [FunctionService.ListVersions] request.
     * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionVersionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionVersionIdBytes() { java.lang.Object ref = functionVersionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionVersionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TAG_FIELD_NUMBER = 2; private volatile java.lang.Object tag_; /** *
     * Tag to remove from the specified version.
     * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @return The tag. */ @java.lang.Override public java.lang.String getTag() { java.lang.Object ref = tag_; 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(); tag_ = s; return s; } } /** *
     * Tag to remove from the specified version.
     * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @return The bytes for tag. */ @java.lang.Override public com.google.protobuf.ByteString getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tag_ = 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(functionVersionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionVersionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); } 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(functionVersionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionVersionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); } 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest) obj; if (!getFunctionVersionId() .equals(other.getFunctionVersionId())) return false; if (!getTag() .equals(other.getTag())) 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) + FUNCTION_VERSION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionVersionId().hashCode(); hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + getTag().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest 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.serverless.functions.v1.RemoveFunctionTagRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.RemoveFunctionTagRequest) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_RemoveFunctionTagRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_RemoveFunctionTagRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest.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(); functionVersionId_ = ""; tag_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_RemoveFunctionTagRequest_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest(this); result.functionVersionId_ = functionVersionId_; result.tag_ = tag_; 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest.getDefaultInstance()) return this; if (!other.getFunctionVersionId().isEmpty()) { functionVersionId_ = other.functionVersionId_; onChanged(); } if (!other.getTag().isEmpty()) { tag_ = other.tag_; 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object functionVersionId_ = ""; /** *
       * ID of the version to remove a tag from.
       * To get the a version ID make a [FunctionService.ListVersions] request.
       * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @return The functionVersionId. */ public java.lang.String getFunctionVersionId() { java.lang.Object ref = functionVersionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionVersionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the version to remove a tag from.
       * To get the a version ID make a [FunctionService.ListVersions] request.
       * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionVersionId. */ public com.google.protobuf.ByteString getFunctionVersionIdBytes() { java.lang.Object ref = functionVersionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionVersionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the version to remove a tag from.
       * To get the a version ID make a [FunctionService.ListVersions] request.
       * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @param value The functionVersionId to set. * @return This builder for chaining. */ public Builder setFunctionVersionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionVersionId_ = value; onChanged(); return this; } /** *
       * ID of the version to remove a tag from.
       * To get the a version ID make a [FunctionService.ListVersions] request.
       * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearFunctionVersionId() { functionVersionId_ = getDefaultInstance().getFunctionVersionId(); onChanged(); return this; } /** *
       * ID of the version to remove a tag from.
       * To get the a version ID make a [FunctionService.ListVersions] request.
       * 
* * string function_version_id = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for functionVersionId to set. * @return This builder for chaining. */ public Builder setFunctionVersionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionVersionId_ = value; onChanged(); return this; } private java.lang.Object tag_ = ""; /** *
       * Tag to remove from the specified version.
       * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @return The tag. */ public java.lang.String getTag() { java.lang.Object ref = tag_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tag_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Tag to remove from the specified version.
       * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @return The bytes for tag. */ public com.google.protobuf.ByteString getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Tag to remove from the specified version.
       * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @param value The tag to set. * @return This builder for chaining. */ public Builder setTag( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tag_ = value; onChanged(); return this; } /** *
       * Tag to remove from the specified version.
       * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @return This builder for chaining. */ public Builder clearTag() { tag_ = getDefaultInstance().getTag(); onChanged(); return this; } /** *
       * Tag to remove from the specified version.
       * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*"]; * @param value The bytes for tag to set. * @return This builder for chaining. */ public Builder setTagBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tag_ = 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.serverless.functions.v1.RemoveFunctionTagRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.RemoveFunctionTagRequest) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RemoveFunctionTagRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RemoveFunctionTagRequest(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.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SetFunctionTagMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.SetFunctionTagMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the function versions that is being tagged.
     * 
* * string function_version_id = 1; * @return The functionVersionId. */ java.lang.String getFunctionVersionId(); /** *
     * ID of the function versions that is being tagged.
     * 
* * string function_version_id = 1; * @return The bytes for functionVersionId. */ com.google.protobuf.ByteString getFunctionVersionIdBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.SetFunctionTagMetadata} */ public static final class SetFunctionTagMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.SetFunctionTagMetadata) SetFunctionTagMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use SetFunctionTagMetadata.newBuilder() to construct. private SetFunctionTagMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SetFunctionTagMetadata() { functionVersionId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SetFunctionTagMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SetFunctionTagMetadata( 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(); functionVersionId_ = 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.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_SetFunctionTagMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_SetFunctionTagMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata.Builder.class); } public static final int FUNCTION_VERSION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object functionVersionId_; /** *
     * ID of the function versions that is being tagged.
     * 
* * string function_version_id = 1; * @return The functionVersionId. */ @java.lang.Override public java.lang.String getFunctionVersionId() { java.lang.Object ref = functionVersionId_; 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(); functionVersionId_ = s; return s; } } /** *
     * ID of the function versions that is being tagged.
     * 
* * string function_version_id = 1; * @return The bytes for functionVersionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionVersionIdBytes() { java.lang.Object ref = functionVersionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionVersionId_ = 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(functionVersionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionVersionId_); } 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(functionVersionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionVersionId_); } 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.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata) obj; if (!getFunctionVersionId() .equals(other.getFunctionVersionId())) 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) + FUNCTION_VERSION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionVersionId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata 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.serverless.functions.v1.SetFunctionTagMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.SetFunctionTagMetadata) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_SetFunctionTagMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_SetFunctionTagMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata.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(); functionVersionId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_SetFunctionTagMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata(this); result.functionVersionId_ = functionVersionId_; 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.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata.getDefaultInstance()) return this; if (!other.getFunctionVersionId().isEmpty()) { functionVersionId_ = other.functionVersionId_; 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.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object functionVersionId_ = ""; /** *
       * ID of the function versions that is being tagged.
       * 
* * string function_version_id = 1; * @return The functionVersionId. */ public java.lang.String getFunctionVersionId() { java.lang.Object ref = functionVersionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionVersionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the function versions that is being tagged.
       * 
* * string function_version_id = 1; * @return The bytes for functionVersionId. */ public com.google.protobuf.ByteString getFunctionVersionIdBytes() { java.lang.Object ref = functionVersionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionVersionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the function versions that is being tagged.
       * 
* * string function_version_id = 1; * @param value The functionVersionId to set. * @return This builder for chaining. */ public Builder setFunctionVersionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionVersionId_ = value; onChanged(); return this; } /** *
       * ID of the function versions that is being tagged.
       * 
* * string function_version_id = 1; * @return This builder for chaining. */ public Builder clearFunctionVersionId() { functionVersionId_ = getDefaultInstance().getFunctionVersionId(); onChanged(); return this; } /** *
       * ID of the function versions that is being tagged.
       * 
* * string function_version_id = 1; * @param value The bytes for functionVersionId to set. * @return This builder for chaining. */ public Builder setFunctionVersionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionVersionId_ = 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.serverless.functions.v1.SetFunctionTagMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.SetFunctionTagMetadata) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SetFunctionTagMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SetFunctionTagMetadata(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.serverless.functions.v1.FunctionServiceOuterClass.SetFunctionTagMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RemoveFunctionTagMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.RemoveFunctionTagMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the function versions that is being untagged.
     * 
* * string function_version_id = 1; * @return The functionVersionId. */ java.lang.String getFunctionVersionId(); /** *
     * ID of the function versions that is being untagged.
     * 
* * string function_version_id = 1; * @return The bytes for functionVersionId. */ com.google.protobuf.ByteString getFunctionVersionIdBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.RemoveFunctionTagMetadata} */ public static final class RemoveFunctionTagMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.RemoveFunctionTagMetadata) RemoveFunctionTagMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use RemoveFunctionTagMetadata.newBuilder() to construct. private RemoveFunctionTagMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RemoveFunctionTagMetadata() { functionVersionId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RemoveFunctionTagMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RemoveFunctionTagMetadata( 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(); functionVersionId_ = 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.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_RemoveFunctionTagMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_RemoveFunctionTagMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata.Builder.class); } public static final int FUNCTION_VERSION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object functionVersionId_; /** *
     * ID of the function versions that is being untagged.
     * 
* * string function_version_id = 1; * @return The functionVersionId. */ @java.lang.Override public java.lang.String getFunctionVersionId() { java.lang.Object ref = functionVersionId_; 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(); functionVersionId_ = s; return s; } } /** *
     * ID of the function versions that is being untagged.
     * 
* * string function_version_id = 1; * @return The bytes for functionVersionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionVersionIdBytes() { java.lang.Object ref = functionVersionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionVersionId_ = 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(functionVersionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionVersionId_); } 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(functionVersionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionVersionId_); } 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata) obj; if (!getFunctionVersionId() .equals(other.getFunctionVersionId())) 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) + FUNCTION_VERSION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionVersionId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata 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.serverless.functions.v1.RemoveFunctionTagMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.RemoveFunctionTagMetadata) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_RemoveFunctionTagMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_RemoveFunctionTagMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata.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(); functionVersionId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_RemoveFunctionTagMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata(this); result.functionVersionId_ = functionVersionId_; 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata.getDefaultInstance()) return this; if (!other.getFunctionVersionId().isEmpty()) { functionVersionId_ = other.functionVersionId_; 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object functionVersionId_ = ""; /** *
       * ID of the function versions that is being untagged.
       * 
* * string function_version_id = 1; * @return The functionVersionId. */ public java.lang.String getFunctionVersionId() { java.lang.Object ref = functionVersionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionVersionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the function versions that is being untagged.
       * 
* * string function_version_id = 1; * @return The bytes for functionVersionId. */ public com.google.protobuf.ByteString getFunctionVersionIdBytes() { java.lang.Object ref = functionVersionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionVersionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the function versions that is being untagged.
       * 
* * string function_version_id = 1; * @param value The functionVersionId to set. * @return This builder for chaining. */ public Builder setFunctionVersionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionVersionId_ = value; onChanged(); return this; } /** *
       * ID of the function versions that is being untagged.
       * 
* * string function_version_id = 1; * @return This builder for chaining. */ public Builder clearFunctionVersionId() { functionVersionId_ = getDefaultInstance().getFunctionVersionId(); onChanged(); return this; } /** *
       * ID of the function versions that is being untagged.
       * 
* * string function_version_id = 1; * @param value The bytes for functionVersionId to set. * @return This builder for chaining. */ public Builder setFunctionVersionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionVersionId_ = 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.serverless.functions.v1.RemoveFunctionTagMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.RemoveFunctionTagMetadata) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RemoveFunctionTagMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RemoveFunctionTagMetadata(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.serverless.functions.v1.FunctionServiceOuterClass.RemoveFunctionTagMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListFunctionTagHistoryRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the function to retrieve tag history for.
     * To get a function ID, make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ java.lang.String getFunctionId(); /** *
     * ID of the function to retrieve tag history for.
     * To get a function ID, make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ com.google.protobuf.ByteString getFunctionIdBytes(); /** *
     * Specific tag that history should be limited to.
     * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return The tag. */ java.lang.String getTag(); /** *
     * Specific tag that history should be limited to.
     * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return The bytes for tag. */ com.google.protobuf.ByteString getTagBytes(); /** *
     * The maximum number of results per page that should be returned. If the number of available
     * results is larger than `pageSize`, the service returns a [ListFunctionOperationsResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * Default value: 100.
     * 
* * int64 page_size = 3 [(.yandex.cloud.value) = "0-1000"]; * @return The pageSize. */ long getPageSize(); /** *
     * Page token. To get the next page of results, set `pageToken` to the
     * [ListFunctionOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ java.lang.String getPageToken(); /** *
     * Page token. To get the next page of results, set `pageToken` to the
     * [ListFunctionOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); /** *
     * A filter expression that filters resources listed in the response.
     * The expression must specify:
     * 1. The field name. Currently filtering can only be applied to the [FunctionTagHistoryRecord.effective_from] and [FunctionTagHistoryRecord.effective_to] fields.
     * 2. An `=` or `>` or `<` operator.
     * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     * For example, `effective_to>2021-01-01T12:00:00Z`.
     * 
* * string filter = 5 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ java.lang.String getFilter(); /** *
     * A filter expression that filters resources listed in the response.
     * The expression must specify:
     * 1. The field name. Currently filtering can only be applied to the [FunctionTagHistoryRecord.effective_from] and [FunctionTagHistoryRecord.effective_to] fields.
     * 2. An `=` or `>` or `<` operator.
     * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     * For example, `effective_to>2021-01-01T12:00:00Z`.
     * 
* * string filter = 5 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryRequest} */ public static final class ListFunctionTagHistoryRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryRequest) ListFunctionTagHistoryRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListFunctionTagHistoryRequest.newBuilder() to construct. private ListFunctionTagHistoryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListFunctionTagHistoryRequest() { functionId_ = ""; tag_ = ""; pageToken_ = ""; filter_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListFunctionTagHistoryRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListFunctionTagHistoryRequest( 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(); functionId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); tag_ = s; break; } case 24: { pageSize_ = input.readInt64(); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); pageToken_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); filter_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest.Builder.class); } public static final int FUNCTION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object functionId_; /** *
     * ID of the function to retrieve tag history for.
     * To get a function ID, make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ @java.lang.Override public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; 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(); functionId_ = s; return s; } } /** *
     * ID of the function to retrieve tag history for.
     * To get a function ID, make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TAG_FIELD_NUMBER = 2; private volatile java.lang.Object tag_; /** *
     * Specific tag that history should be limited to.
     * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return The tag. */ @java.lang.Override public java.lang.String getTag() { java.lang.Object ref = tag_; 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(); tag_ = s; return s; } } /** *
     * Specific tag that history should be limited to.
     * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return The bytes for tag. */ @java.lang.Override public com.google.protobuf.ByteString getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PAGE_SIZE_FIELD_NUMBER = 3; private long pageSize_; /** *
     * The maximum number of results per page that should be returned. If the number of available
     * results is larger than `pageSize`, the service returns a [ListFunctionOperationsResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * Default value: 100.
     * 
* * int64 page_size = 3 [(.yandex.cloud.value) = "0-1000"]; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** *
     * Page token. To get the next page of results, set `pageToken` to the
     * [ListFunctionOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** *
     * Page token. To get the next page of results, set `pageToken` to the
     * [ListFunctionOperationsResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** *
     * A filter expression that filters resources listed in the response.
     * The expression must specify:
     * 1. The field name. Currently filtering can only be applied to the [FunctionTagHistoryRecord.effective_from] and [FunctionTagHistoryRecord.effective_to] fields.
     * 2. An `=` or `>` or `<` operator.
     * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     * For example, `effective_to>2021-01-01T12:00:00Z`.
     * 
* * string filter = 5 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ @java.lang.Override public java.lang.String getFilter() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** *
     * A filter expression that filters resources listed in the response.
     * The expression must specify:
     * 1. The field name. Currently filtering can only be applied to the [FunctionTagHistoryRecord.effective_from] and [FunctionTagHistoryRecord.effective_to] fields.
     * 2. An `=` or `>` or `<` operator.
     * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
     * For example, `effective_to>2021-01-01T12:00:00Z`.
     * 
* * string filter = 5 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ @java.lang.Override public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); } if (pageSize_ != 0L) { output.writeInt64(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); } if (pageSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest) obj; if (!getFunctionId() .equals(other.getFunctionId())) return false; if (!getTag() .equals(other.getTag())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken() .equals(other.getPageToken())) return false; if (!getFilter() .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FUNCTION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionId().hashCode(); hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + getTag().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPageSize()); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest 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.serverless.functions.v1.ListFunctionTagHistoryRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryRequest) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest.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(); functionId_ = ""; tag_ = ""; pageSize_ = 0L; pageToken_ = ""; filter_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryRequest_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest(this); result.functionId_ = functionId_; result.tag_ = tag_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; result.filter_ = filter_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest.getDefaultInstance()) return this; if (!other.getFunctionId().isEmpty()) { functionId_ = other.functionId_; onChanged(); } if (!other.getTag().isEmpty()) { tag_ = other.tag_; onChanged(); } if (other.getPageSize() != 0L) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object functionId_ = ""; /** *
       * ID of the function to retrieve tag history for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the function to retrieve tag history for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the function to retrieve tag history for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @param value The functionId to set. * @return This builder for chaining. */ public Builder setFunctionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionId_ = value; onChanged(); return this; } /** *
       * ID of the function to retrieve tag history for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearFunctionId() { functionId_ = getDefaultInstance().getFunctionId(); onChanged(); return this; } /** *
       * ID of the function to retrieve tag history for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for functionId to set. * @return This builder for chaining. */ public Builder setFunctionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionId_ = value; onChanged(); return this; } private java.lang.Object tag_ = ""; /** *
       * Specific tag that history should be limited to.
       * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return The tag. */ public java.lang.String getTag() { java.lang.Object ref = tag_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tag_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Specific tag that history should be limited to.
       * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return The bytes for tag. */ public com.google.protobuf.ByteString getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Specific tag that history should be limited to.
       * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @param value The tag to set. * @return This builder for chaining. */ public Builder setTag( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tag_ = value; onChanged(); return this; } /** *
       * Specific tag that history should be limited to.
       * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return This builder for chaining. */ public Builder clearTag() { tag_ = getDefaultInstance().getTag(); onChanged(); return this; } /** *
       * Specific tag that history should be limited to.
       * 
* * string tag = 2 [(.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @param value The bytes for tag to set. * @return This builder for chaining. */ public Builder setTagBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tag_ = value; onChanged(); return this; } private long pageSize_ ; /** *
       * The maximum number of results per page that should be returned. If the number of available
       * results is larger than `pageSize`, the service returns a [ListFunctionOperationsResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 3 [(.yandex.cloud.value) = "0-1000"]; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } /** *
       * The maximum number of results per page that should be returned. If the number of available
       * results is larger than `pageSize`, the service returns a [ListFunctionOperationsResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 3 [(.yandex.cloud.value) = "0-1000"]; * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(long value) { pageSize_ = value; onChanged(); return this; } /** *
       * The maximum number of results per page that should be returned. If the number of available
       * results is larger than `pageSize`, the service returns a [ListFunctionOperationsResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 3 [(.yandex.cloud.value) = "0-1000"]; * @return This builder for chaining. */ public Builder clearPageSize() { pageSize_ = 0L; onChanged(); return this; } private java.lang.Object pageToken_ = ""; /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListFunctionOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListFunctionOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListFunctionOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @param value The pageToken to set. * @return This builder for chaining. */ public Builder setPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pageToken_ = value; onChanged(); return this; } /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListFunctionOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @return This builder for chaining. */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListFunctionOperationsResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 4 [(.yandex.cloud.length) = "<=100"]; * @param value The bytes for pageToken to set. * @return This builder for chaining. */ public Builder setPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; onChanged(); return this; } private java.lang.Object filter_ = ""; /** *
       * A filter expression that filters resources listed in the response.
       * The expression must specify:
       * 1. The field name. Currently filtering can only be applied to the [FunctionTagHistoryRecord.effective_from] and [FunctionTagHistoryRecord.effective_to] fields.
       * 2. An `=` or `>` or `<` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * For example, `effective_to>2021-01-01T12:00:00Z`.
       * 
* * string filter = 5 [(.yandex.cloud.length) = "<=1000"]; * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * A filter expression that filters resources listed in the response.
       * The expression must specify:
       * 1. The field name. Currently filtering can only be applied to the [FunctionTagHistoryRecord.effective_from] and [FunctionTagHistoryRecord.effective_to] fields.
       * 2. An `=` or `>` or `<` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * For example, `effective_to>2021-01-01T12:00:00Z`.
       * 
* * string filter = 5 [(.yandex.cloud.length) = "<=1000"]; * @return The bytes for filter. */ public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A filter expression that filters resources listed in the response.
       * The expression must specify:
       * 1. The field name. Currently filtering can only be applied to the [FunctionTagHistoryRecord.effective_from] and [FunctionTagHistoryRecord.effective_to] fields.
       * 2. An `=` or `>` or `<` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * For example, `effective_to>2021-01-01T12:00:00Z`.
       * 
* * string filter = 5 [(.yandex.cloud.length) = "<=1000"]; * @param value The filter to set. * @return This builder for chaining. */ public Builder setFilter( java.lang.String value) { if (value == null) { throw new NullPointerException(); } filter_ = value; onChanged(); return this; } /** *
       * A filter expression that filters resources listed in the response.
       * The expression must specify:
       * 1. The field name. Currently filtering can only be applied to the [FunctionTagHistoryRecord.effective_from] and [FunctionTagHistoryRecord.effective_to] fields.
       * 2. An `=` or `>` or `<` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * For example, `effective_to>2021-01-01T12:00:00Z`.
       * 
* * string filter = 5 [(.yandex.cloud.length) = "<=1000"]; * @return This builder for chaining. */ public Builder clearFilter() { filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** *
       * A filter expression that filters resources listed in the response.
       * The expression must specify:
       * 1. The field name. Currently filtering can only be applied to the [FunctionTagHistoryRecord.effective_from] and [FunctionTagHistoryRecord.effective_to] fields.
       * 2. An `=` or `>` or `<` operator.
       * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`.
       * For example, `effective_to>2021-01-01T12:00:00Z`.
       * 
* * string filter = 5 [(.yandex.cloud.length) = "<=1000"]; * @param value The bytes for filter to set. * @return This builder for chaining. */ public Builder setFilterBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryRequest) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListFunctionTagHistoryRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListFunctionTagHistoryRequest(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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListFunctionTagHistoryResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Set of relevant tag history records.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ java.util.List getFunctionTagHistoryRecordList(); /** *
     * Set of relevant tag history records.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord getFunctionTagHistoryRecord(int index); /** *
     * Set of relevant tag history records.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ int getFunctionTagHistoryRecordCount(); /** *
     * Set of relevant tag history records.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ java.util.List getFunctionTagHistoryRecordOrBuilderList(); /** *
     * Set of relevant tag history records.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecordOrBuilder getFunctionTagHistoryRecordOrBuilder( int index); /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListFunctionTagHistoryRequest.page_size], use `nextPageToken` as the value
     * for the [ListFunctionTagHistoryRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListFunctionTagHistoryRequest.page_size], use `nextPageToken` as the value
     * for the [ListFunctionTagHistoryRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse} */ public static final class ListFunctionTagHistoryResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse) ListFunctionTagHistoryResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListFunctionTagHistoryResponse.newBuilder() to construct. private ListFunctionTagHistoryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListFunctionTagHistoryResponse() { functionTagHistoryRecord_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListFunctionTagHistoryResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListFunctionTagHistoryResponse( 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)) { functionTagHistoryRecord_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } functionTagHistoryRecord_.add( input.readMessage(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord.parser(), extensionRegistry)); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); nextPageToken_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { functionTagHistoryRecord_ = java.util.Collections.unmodifiableList(functionTagHistoryRecord_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.Builder.class); } public interface FunctionTagHistoryRecordOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord) com.google.protobuf.MessageOrBuilder { /** *
       * ID of the function that the record is about.
       * 
* * string function_id = 1; * @return The functionId. */ java.lang.String getFunctionId(); /** *
       * ID of the function that the record is about.
       * 
* * string function_id = 1; * @return The bytes for functionId. */ com.google.protobuf.ByteString getFunctionIdBytes(); /** *
       * ID of the function version that the record is about.
       * 
* * string function_version_id = 3; * @return The functionVersionId. */ java.lang.String getFunctionVersionId(); /** *
       * ID of the function version that the record is about.
       * 
* * string function_version_id = 3; * @return The bytes for functionVersionId. */ com.google.protobuf.ByteString getFunctionVersionIdBytes(); /** *
       * Tag that was set for the version at some point.
       * 
* * string tag = 2; * @return The tag. */ java.lang.String getTag(); /** *
       * Tag that was set for the version at some point.
       * 
* * string tag = 2; * @return The bytes for tag. */ com.google.protobuf.ByteString getTagBytes(); /** *
       * Timestamp when the tag started being active for the function.
       * 
* * .google.protobuf.Timestamp effective_from = 4; * @return Whether the effectiveFrom field is set. */ boolean hasEffectiveFrom(); /** *
       * Timestamp when the tag started being active for the function.
       * 
* * .google.protobuf.Timestamp effective_from = 4; * @return The effectiveFrom. */ com.google.protobuf.Timestamp getEffectiveFrom(); /** *
       * Timestamp when the tag started being active for the function.
       * 
* * .google.protobuf.Timestamp effective_from = 4; */ com.google.protobuf.TimestampOrBuilder getEffectiveFromOrBuilder(); /** *
       * Timestamp when the tag stopped being active for the function.
       * 
* * .google.protobuf.Timestamp effective_to = 5; * @return Whether the effectiveTo field is set. */ boolean hasEffectiveTo(); /** *
       * Timestamp when the tag stopped being active for the function.
       * 
* * .google.protobuf.Timestamp effective_to = 5; * @return The effectiveTo. */ com.google.protobuf.Timestamp getEffectiveTo(); /** *
       * Timestamp when the tag stopped being active for the function.
       * 
* * .google.protobuf.Timestamp effective_to = 5; */ com.google.protobuf.TimestampOrBuilder getEffectiveToOrBuilder(); } /** *
     * A record in the tag history.
     * 
* * Protobuf type {@code yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord} */ public static final class FunctionTagHistoryRecord extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord) FunctionTagHistoryRecordOrBuilder { private static final long serialVersionUID = 0L; // Use FunctionTagHistoryRecord.newBuilder() to construct. private FunctionTagHistoryRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FunctionTagHistoryRecord() { functionId_ = ""; functionVersionId_ = ""; tag_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FunctionTagHistoryRecord(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FunctionTagHistoryRecord( 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(); functionId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); tag_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); functionVersionId_ = s; break; } case 34: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (effectiveFrom_ != null) { subBuilder = effectiveFrom_.toBuilder(); } effectiveFrom_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(effectiveFrom_); effectiveFrom_ = subBuilder.buildPartial(); } break; } case 42: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (effectiveTo_ != null) { subBuilder = effectiveTo_.toBuilder(); } effectiveTo_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(effectiveTo_); effectiveTo_ = 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.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryResponse_FunctionTagHistoryRecord_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryResponse_FunctionTagHistoryRecord_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord.Builder.class); } public static final int FUNCTION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object functionId_; /** *
       * ID of the function that the record is about.
       * 
* * string function_id = 1; * @return The functionId. */ @java.lang.Override public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; 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(); functionId_ = s; return s; } } /** *
       * ID of the function that the record is about.
       * 
* * string function_id = 1; * @return The bytes for functionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FUNCTION_VERSION_ID_FIELD_NUMBER = 3; private volatile java.lang.Object functionVersionId_; /** *
       * ID of the function version that the record is about.
       * 
* * string function_version_id = 3; * @return The functionVersionId. */ @java.lang.Override public java.lang.String getFunctionVersionId() { java.lang.Object ref = functionVersionId_; 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(); functionVersionId_ = s; return s; } } /** *
       * ID of the function version that the record is about.
       * 
* * string function_version_id = 3; * @return The bytes for functionVersionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionVersionIdBytes() { java.lang.Object ref = functionVersionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionVersionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TAG_FIELD_NUMBER = 2; private volatile java.lang.Object tag_; /** *
       * Tag that was set for the version at some point.
       * 
* * string tag = 2; * @return The tag. */ @java.lang.Override public java.lang.String getTag() { java.lang.Object ref = tag_; 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(); tag_ = s; return s; } } /** *
       * Tag that was set for the version at some point.
       * 
* * string tag = 2; * @return The bytes for tag. */ @java.lang.Override public com.google.protobuf.ByteString getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EFFECTIVE_FROM_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp effectiveFrom_; /** *
       * Timestamp when the tag started being active for the function.
       * 
* * .google.protobuf.Timestamp effective_from = 4; * @return Whether the effectiveFrom field is set. */ @java.lang.Override public boolean hasEffectiveFrom() { return effectiveFrom_ != null; } /** *
       * Timestamp when the tag started being active for the function.
       * 
* * .google.protobuf.Timestamp effective_from = 4; * @return The effectiveFrom. */ @java.lang.Override public com.google.protobuf.Timestamp getEffectiveFrom() { return effectiveFrom_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveFrom_; } /** *
       * Timestamp when the tag started being active for the function.
       * 
* * .google.protobuf.Timestamp effective_from = 4; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEffectiveFromOrBuilder() { return getEffectiveFrom(); } public static final int EFFECTIVE_TO_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp effectiveTo_; /** *
       * Timestamp when the tag stopped being active for the function.
       * 
* * .google.protobuf.Timestamp effective_to = 5; * @return Whether the effectiveTo field is set. */ @java.lang.Override public boolean hasEffectiveTo() { return effectiveTo_ != null; } /** *
       * Timestamp when the tag stopped being active for the function.
       * 
* * .google.protobuf.Timestamp effective_to = 5; * @return The effectiveTo. */ @java.lang.Override public com.google.protobuf.Timestamp getEffectiveTo() { return effectiveTo_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTo_; } /** *
       * Timestamp when the tag stopped being active for the function.
       * 
* * .google.protobuf.Timestamp effective_to = 5; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEffectiveToOrBuilder() { return getEffectiveTo(); } 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(functionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionVersionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, functionVersionId_); } if (effectiveFrom_ != null) { output.writeMessage(4, getEffectiveFrom()); } if (effectiveTo_ != null) { output.writeMessage(5, getEffectiveTo()); } 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(functionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionVersionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, functionVersionId_); } if (effectiveFrom_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getEffectiveFrom()); } if (effectiveTo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getEffectiveTo()); } 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord) obj; if (!getFunctionId() .equals(other.getFunctionId())) return false; if (!getFunctionVersionId() .equals(other.getFunctionVersionId())) return false; if (!getTag() .equals(other.getTag())) return false; if (hasEffectiveFrom() != other.hasEffectiveFrom()) return false; if (hasEffectiveFrom()) { if (!getEffectiveFrom() .equals(other.getEffectiveFrom())) return false; } if (hasEffectiveTo() != other.hasEffectiveTo()) return false; if (hasEffectiveTo()) { if (!getEffectiveTo() .equals(other.getEffectiveTo())) 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) + FUNCTION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionId().hashCode(); hash = (37 * hash) + FUNCTION_VERSION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionVersionId().hashCode(); hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + getTag().hashCode(); if (hasEffectiveFrom()) { hash = (37 * hash) + EFFECTIVE_FROM_FIELD_NUMBER; hash = (53 * hash) + getEffectiveFrom().hashCode(); } if (hasEffectiveTo()) { hash = (37 * hash) + EFFECTIVE_TO_FIELD_NUMBER; hash = (53 * hash) + getEffectiveTo().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord 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; } /** *
       * A record in the tag history.
       * 
* * Protobuf type {@code yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecordOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryResponse_FunctionTagHistoryRecord_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryResponse_FunctionTagHistoryRecord_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord.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(); functionId_ = ""; functionVersionId_ = ""; tag_ = ""; if (effectiveFromBuilder_ == null) { effectiveFrom_ = null; } else { effectiveFrom_ = null; effectiveFromBuilder_ = null; } if (effectiveToBuilder_ == null) { effectiveTo_ = null; } else { effectiveTo_ = null; effectiveToBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryResponse_FunctionTagHistoryRecord_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord(this); result.functionId_ = functionId_; result.functionVersionId_ = functionVersionId_; result.tag_ = tag_; if (effectiveFromBuilder_ == null) { result.effectiveFrom_ = effectiveFrom_; } else { result.effectiveFrom_ = effectiveFromBuilder_.build(); } if (effectiveToBuilder_ == null) { result.effectiveTo_ = effectiveTo_; } else { result.effectiveTo_ = effectiveToBuilder_.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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord.getDefaultInstance()) return this; if (!other.getFunctionId().isEmpty()) { functionId_ = other.functionId_; onChanged(); } if (!other.getFunctionVersionId().isEmpty()) { functionVersionId_ = other.functionVersionId_; onChanged(); } if (!other.getTag().isEmpty()) { tag_ = other.tag_; onChanged(); } if (other.hasEffectiveFrom()) { mergeEffectiveFrom(other.getEffectiveFrom()); } if (other.hasEffectiveTo()) { mergeEffectiveTo(other.getEffectiveTo()); } 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object functionId_ = ""; /** *
         * ID of the function that the record is about.
         * 
* * string function_id = 1; * @return The functionId. */ public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * ID of the function that the record is about.
         * 
* * string function_id = 1; * @return The bytes for functionId. */ public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * ID of the function that the record is about.
         * 
* * string function_id = 1; * @param value The functionId to set. * @return This builder for chaining. */ public Builder setFunctionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionId_ = value; onChanged(); return this; } /** *
         * ID of the function that the record is about.
         * 
* * string function_id = 1; * @return This builder for chaining. */ public Builder clearFunctionId() { functionId_ = getDefaultInstance().getFunctionId(); onChanged(); return this; } /** *
         * ID of the function that the record is about.
         * 
* * string function_id = 1; * @param value The bytes for functionId to set. * @return This builder for chaining. */ public Builder setFunctionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionId_ = value; onChanged(); return this; } private java.lang.Object functionVersionId_ = ""; /** *
         * ID of the function version that the record is about.
         * 
* * string function_version_id = 3; * @return The functionVersionId. */ public java.lang.String getFunctionVersionId() { java.lang.Object ref = functionVersionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionVersionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * ID of the function version that the record is about.
         * 
* * string function_version_id = 3; * @return The bytes for functionVersionId. */ public com.google.protobuf.ByteString getFunctionVersionIdBytes() { java.lang.Object ref = functionVersionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionVersionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * ID of the function version that the record is about.
         * 
* * string function_version_id = 3; * @param value The functionVersionId to set. * @return This builder for chaining. */ public Builder setFunctionVersionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionVersionId_ = value; onChanged(); return this; } /** *
         * ID of the function version that the record is about.
         * 
* * string function_version_id = 3; * @return This builder for chaining. */ public Builder clearFunctionVersionId() { functionVersionId_ = getDefaultInstance().getFunctionVersionId(); onChanged(); return this; } /** *
         * ID of the function version that the record is about.
         * 
* * string function_version_id = 3; * @param value The bytes for functionVersionId to set. * @return This builder for chaining. */ public Builder setFunctionVersionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionVersionId_ = value; onChanged(); return this; } private java.lang.Object tag_ = ""; /** *
         * Tag that was set for the version at some point.
         * 
* * string tag = 2; * @return The tag. */ public java.lang.String getTag() { java.lang.Object ref = tag_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tag_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * Tag that was set for the version at some point.
         * 
* * string tag = 2; * @return The bytes for tag. */ public com.google.protobuf.ByteString getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Tag that was set for the version at some point.
         * 
* * string tag = 2; * @param value The tag to set. * @return This builder for chaining. */ public Builder setTag( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tag_ = value; onChanged(); return this; } /** *
         * Tag that was set for the version at some point.
         * 
* * string tag = 2; * @return This builder for chaining. */ public Builder clearTag() { tag_ = getDefaultInstance().getTag(); onChanged(); return this; } /** *
         * Tag that was set for the version at some point.
         * 
* * string tag = 2; * @param value The bytes for tag to set. * @return This builder for chaining. */ public Builder setTagBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tag_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp effectiveFrom_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> effectiveFromBuilder_; /** *
         * Timestamp when the tag started being active for the function.
         * 
* * .google.protobuf.Timestamp effective_from = 4; * @return Whether the effectiveFrom field is set. */ public boolean hasEffectiveFrom() { return effectiveFromBuilder_ != null || effectiveFrom_ != null; } /** *
         * Timestamp when the tag started being active for the function.
         * 
* * .google.protobuf.Timestamp effective_from = 4; * @return The effectiveFrom. */ public com.google.protobuf.Timestamp getEffectiveFrom() { if (effectiveFromBuilder_ == null) { return effectiveFrom_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveFrom_; } else { return effectiveFromBuilder_.getMessage(); } } /** *
         * Timestamp when the tag started being active for the function.
         * 
* * .google.protobuf.Timestamp effective_from = 4; */ public Builder setEffectiveFrom(com.google.protobuf.Timestamp value) { if (effectiveFromBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveFrom_ = value; onChanged(); } else { effectiveFromBuilder_.setMessage(value); } return this; } /** *
         * Timestamp when the tag started being active for the function.
         * 
* * .google.protobuf.Timestamp effective_from = 4; */ public Builder setEffectiveFrom( com.google.protobuf.Timestamp.Builder builderForValue) { if (effectiveFromBuilder_ == null) { effectiveFrom_ = builderForValue.build(); onChanged(); } else { effectiveFromBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Timestamp when the tag started being active for the function.
         * 
* * .google.protobuf.Timestamp effective_from = 4; */ public Builder mergeEffectiveFrom(com.google.protobuf.Timestamp value) { if (effectiveFromBuilder_ == null) { if (effectiveFrom_ != null) { effectiveFrom_ = com.google.protobuf.Timestamp.newBuilder(effectiveFrom_).mergeFrom(value).buildPartial(); } else { effectiveFrom_ = value; } onChanged(); } else { effectiveFromBuilder_.mergeFrom(value); } return this; } /** *
         * Timestamp when the tag started being active for the function.
         * 
* * .google.protobuf.Timestamp effective_from = 4; */ public Builder clearEffectiveFrom() { if (effectiveFromBuilder_ == null) { effectiveFrom_ = null; onChanged(); } else { effectiveFrom_ = null; effectiveFromBuilder_ = null; } return this; } /** *
         * Timestamp when the tag started being active for the function.
         * 
* * .google.protobuf.Timestamp effective_from = 4; */ public com.google.protobuf.Timestamp.Builder getEffectiveFromBuilder() { onChanged(); return getEffectiveFromFieldBuilder().getBuilder(); } /** *
         * Timestamp when the tag started being active for the function.
         * 
* * .google.protobuf.Timestamp effective_from = 4; */ public com.google.protobuf.TimestampOrBuilder getEffectiveFromOrBuilder() { if (effectiveFromBuilder_ != null) { return effectiveFromBuilder_.getMessageOrBuilder(); } else { return effectiveFrom_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveFrom_; } } /** *
         * Timestamp when the tag started being active for the function.
         * 
* * .google.protobuf.Timestamp effective_from = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEffectiveFromFieldBuilder() { if (effectiveFromBuilder_ == null) { effectiveFromBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getEffectiveFrom(), getParentForChildren(), isClean()); effectiveFrom_ = null; } return effectiveFromBuilder_; } private com.google.protobuf.Timestamp effectiveTo_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> effectiveToBuilder_; /** *
         * Timestamp when the tag stopped being active for the function.
         * 
* * .google.protobuf.Timestamp effective_to = 5; * @return Whether the effectiveTo field is set. */ public boolean hasEffectiveTo() { return effectiveToBuilder_ != null || effectiveTo_ != null; } /** *
         * Timestamp when the tag stopped being active for the function.
         * 
* * .google.protobuf.Timestamp effective_to = 5; * @return The effectiveTo. */ public com.google.protobuf.Timestamp getEffectiveTo() { if (effectiveToBuilder_ == null) { return effectiveTo_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTo_; } else { return effectiveToBuilder_.getMessage(); } } /** *
         * Timestamp when the tag stopped being active for the function.
         * 
* * .google.protobuf.Timestamp effective_to = 5; */ public Builder setEffectiveTo(com.google.protobuf.Timestamp value) { if (effectiveToBuilder_ == null) { if (value == null) { throw new NullPointerException(); } effectiveTo_ = value; onChanged(); } else { effectiveToBuilder_.setMessage(value); } return this; } /** *
         * Timestamp when the tag stopped being active for the function.
         * 
* * .google.protobuf.Timestamp effective_to = 5; */ public Builder setEffectiveTo( com.google.protobuf.Timestamp.Builder builderForValue) { if (effectiveToBuilder_ == null) { effectiveTo_ = builderForValue.build(); onChanged(); } else { effectiveToBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Timestamp when the tag stopped being active for the function.
         * 
* * .google.protobuf.Timestamp effective_to = 5; */ public Builder mergeEffectiveTo(com.google.protobuf.Timestamp value) { if (effectiveToBuilder_ == null) { if (effectiveTo_ != null) { effectiveTo_ = com.google.protobuf.Timestamp.newBuilder(effectiveTo_).mergeFrom(value).buildPartial(); } else { effectiveTo_ = value; } onChanged(); } else { effectiveToBuilder_.mergeFrom(value); } return this; } /** *
         * Timestamp when the tag stopped being active for the function.
         * 
* * .google.protobuf.Timestamp effective_to = 5; */ public Builder clearEffectiveTo() { if (effectiveToBuilder_ == null) { effectiveTo_ = null; onChanged(); } else { effectiveTo_ = null; effectiveToBuilder_ = null; } return this; } /** *
         * Timestamp when the tag stopped being active for the function.
         * 
* * .google.protobuf.Timestamp effective_to = 5; */ public com.google.protobuf.Timestamp.Builder getEffectiveToBuilder() { onChanged(); return getEffectiveToFieldBuilder().getBuilder(); } /** *
         * Timestamp when the tag stopped being active for the function.
         * 
* * .google.protobuf.Timestamp effective_to = 5; */ public com.google.protobuf.TimestampOrBuilder getEffectiveToOrBuilder() { if (effectiveToBuilder_ != null) { return effectiveToBuilder_.getMessageOrBuilder(); } else { return effectiveTo_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTo_; } } /** *
         * Timestamp when the tag stopped being active for the function.
         * 
* * .google.protobuf.Timestamp effective_to = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEffectiveToFieldBuilder() { if (effectiveToBuilder_ == null) { effectiveToBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getEffectiveTo(), getParentForChildren(), isClean()); effectiveTo_ = null; } return effectiveToBuilder_; } @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.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FunctionTagHistoryRecord parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FunctionTagHistoryRecord(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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int FUNCTION_TAG_HISTORY_RECORD_FIELD_NUMBER = 1; private java.util.List functionTagHistoryRecord_; /** *
     * Set of relevant tag history records.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ @java.lang.Override public java.util.List getFunctionTagHistoryRecordList() { return functionTagHistoryRecord_; } /** *
     * Set of relevant tag history records.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ @java.lang.Override public java.util.List getFunctionTagHistoryRecordOrBuilderList() { return functionTagHistoryRecord_; } /** *
     * Set of relevant tag history records.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ @java.lang.Override public int getFunctionTagHistoryRecordCount() { return functionTagHistoryRecord_.size(); } /** *
     * Set of relevant tag history records.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord getFunctionTagHistoryRecord(int index) { return functionTagHistoryRecord_.get(index); } /** *
     * Set of relevant tag history records.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecordOrBuilder getFunctionTagHistoryRecordOrBuilder( int index) { return functionTagHistoryRecord_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListFunctionTagHistoryRequest.page_size], use `nextPageToken` as the value
     * for the [ListFunctionTagHistoryRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The nextPageToken. */ @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListFunctionTagHistoryRequest.page_size], use `nextPageToken` as the value
     * for the [ListFunctionTagHistoryRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < functionTagHistoryRecord_.size(); i++) { output.writeMessage(1, functionTagHistoryRecord_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < functionTagHistoryRecord_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, functionTagHistoryRecord_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse) obj; if (!getFunctionTagHistoryRecordList() .equals(other.getFunctionTagHistoryRecordList())) return false; if (!getNextPageToken() .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getFunctionTagHistoryRecordCount() > 0) { hash = (37 * hash) + FUNCTION_TAG_HISTORY_RECORD_FIELD_NUMBER; hash = (53 * hash) + getFunctionTagHistoryRecordList().hashCode(); } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse 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.serverless.functions.v1.ListFunctionTagHistoryResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFunctionTagHistoryRecordFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (functionTagHistoryRecordBuilder_ == null) { functionTagHistoryRecord_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { functionTagHistoryRecordBuilder_.clear(); } nextPageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryResponse_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse(this); int from_bitField0_ = bitField0_; if (functionTagHistoryRecordBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { functionTagHistoryRecord_ = java.util.Collections.unmodifiableList(functionTagHistoryRecord_); bitField0_ = (bitField0_ & ~0x00000001); } result.functionTagHistoryRecord_ = functionTagHistoryRecord_; } else { result.functionTagHistoryRecord_ = functionTagHistoryRecordBuilder_.build(); } result.nextPageToken_ = nextPageToken_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.getDefaultInstance()) return this; if (functionTagHistoryRecordBuilder_ == null) { if (!other.functionTagHistoryRecord_.isEmpty()) { if (functionTagHistoryRecord_.isEmpty()) { functionTagHistoryRecord_ = other.functionTagHistoryRecord_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFunctionTagHistoryRecordIsMutable(); functionTagHistoryRecord_.addAll(other.functionTagHistoryRecord_); } onChanged(); } } else { if (!other.functionTagHistoryRecord_.isEmpty()) { if (functionTagHistoryRecordBuilder_.isEmpty()) { functionTagHistoryRecordBuilder_.dispose(); functionTagHistoryRecordBuilder_ = null; functionTagHistoryRecord_ = other.functionTagHistoryRecord_; bitField0_ = (bitField0_ & ~0x00000001); functionTagHistoryRecordBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFunctionTagHistoryRecordFieldBuilder() : null; } else { functionTagHistoryRecordBuilder_.addAllMessages(other.functionTagHistoryRecord_); } } } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List functionTagHistoryRecord_ = java.util.Collections.emptyList(); private void ensureFunctionTagHistoryRecordIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { functionTagHistoryRecord_ = new java.util.ArrayList(functionTagHistoryRecord_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord.Builder, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecordOrBuilder> functionTagHistoryRecordBuilder_; /** *
       * Set of relevant tag history records.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ public java.util.List getFunctionTagHistoryRecordList() { if (functionTagHistoryRecordBuilder_ == null) { return java.util.Collections.unmodifiableList(functionTagHistoryRecord_); } else { return functionTagHistoryRecordBuilder_.getMessageList(); } } /** *
       * Set of relevant tag history records.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ public int getFunctionTagHistoryRecordCount() { if (functionTagHistoryRecordBuilder_ == null) { return functionTagHistoryRecord_.size(); } else { return functionTagHistoryRecordBuilder_.getCount(); } } /** *
       * Set of relevant tag history records.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord getFunctionTagHistoryRecord(int index) { if (functionTagHistoryRecordBuilder_ == null) { return functionTagHistoryRecord_.get(index); } else { return functionTagHistoryRecordBuilder_.getMessage(index); } } /** *
       * Set of relevant tag history records.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ public Builder setFunctionTagHistoryRecord( int index, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord value) { if (functionTagHistoryRecordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFunctionTagHistoryRecordIsMutable(); functionTagHistoryRecord_.set(index, value); onChanged(); } else { functionTagHistoryRecordBuilder_.setMessage(index, value); } return this; } /** *
       * Set of relevant tag history records.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ public Builder setFunctionTagHistoryRecord( int index, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord.Builder builderForValue) { if (functionTagHistoryRecordBuilder_ == null) { ensureFunctionTagHistoryRecordIsMutable(); functionTagHistoryRecord_.set(index, builderForValue.build()); onChanged(); } else { functionTagHistoryRecordBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Set of relevant tag history records.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ public Builder addFunctionTagHistoryRecord(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord value) { if (functionTagHistoryRecordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFunctionTagHistoryRecordIsMutable(); functionTagHistoryRecord_.add(value); onChanged(); } else { functionTagHistoryRecordBuilder_.addMessage(value); } return this; } /** *
       * Set of relevant tag history records.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ public Builder addFunctionTagHistoryRecord( int index, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord value) { if (functionTagHistoryRecordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFunctionTagHistoryRecordIsMutable(); functionTagHistoryRecord_.add(index, value); onChanged(); } else { functionTagHistoryRecordBuilder_.addMessage(index, value); } return this; } /** *
       * Set of relevant tag history records.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ public Builder addFunctionTagHistoryRecord( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord.Builder builderForValue) { if (functionTagHistoryRecordBuilder_ == null) { ensureFunctionTagHistoryRecordIsMutable(); functionTagHistoryRecord_.add(builderForValue.build()); onChanged(); } else { functionTagHistoryRecordBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Set of relevant tag history records.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ public Builder addFunctionTagHistoryRecord( int index, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord.Builder builderForValue) { if (functionTagHistoryRecordBuilder_ == null) { ensureFunctionTagHistoryRecordIsMutable(); functionTagHistoryRecord_.add(index, builderForValue.build()); onChanged(); } else { functionTagHistoryRecordBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Set of relevant tag history records.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ public Builder addAllFunctionTagHistoryRecord( java.lang.Iterable values) { if (functionTagHistoryRecordBuilder_ == null) { ensureFunctionTagHistoryRecordIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, functionTagHistoryRecord_); onChanged(); } else { functionTagHistoryRecordBuilder_.addAllMessages(values); } return this; } /** *
       * Set of relevant tag history records.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ public Builder clearFunctionTagHistoryRecord() { if (functionTagHistoryRecordBuilder_ == null) { functionTagHistoryRecord_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { functionTagHistoryRecordBuilder_.clear(); } return this; } /** *
       * Set of relevant tag history records.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ public Builder removeFunctionTagHistoryRecord(int index) { if (functionTagHistoryRecordBuilder_ == null) { ensureFunctionTagHistoryRecordIsMutable(); functionTagHistoryRecord_.remove(index); onChanged(); } else { functionTagHistoryRecordBuilder_.remove(index); } return this; } /** *
       * Set of relevant tag history records.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord.Builder getFunctionTagHistoryRecordBuilder( int index) { return getFunctionTagHistoryRecordFieldBuilder().getBuilder(index); } /** *
       * Set of relevant tag history records.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecordOrBuilder getFunctionTagHistoryRecordOrBuilder( int index) { if (functionTagHistoryRecordBuilder_ == null) { return functionTagHistoryRecord_.get(index); } else { return functionTagHistoryRecordBuilder_.getMessageOrBuilder(index); } } /** *
       * Set of relevant tag history records.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ public java.util.List getFunctionTagHistoryRecordOrBuilderList() { if (functionTagHistoryRecordBuilder_ != null) { return functionTagHistoryRecordBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(functionTagHistoryRecord_); } } /** *
       * Set of relevant tag history records.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord.Builder addFunctionTagHistoryRecordBuilder() { return getFunctionTagHistoryRecordFieldBuilder().addBuilder( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord.getDefaultInstance()); } /** *
       * Set of relevant tag history records.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord.Builder addFunctionTagHistoryRecordBuilder( int index) { return getFunctionTagHistoryRecordFieldBuilder().addBuilder( index, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord.getDefaultInstance()); } /** *
       * Set of relevant tag history records.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord function_tag_history_record = 1; */ public java.util.List getFunctionTagHistoryRecordBuilderList() { return getFunctionTagHistoryRecordFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord.Builder, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecordOrBuilder> getFunctionTagHistoryRecordFieldBuilder() { if (functionTagHistoryRecordBuilder_ == null) { functionTagHistoryRecordBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecord.Builder, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse.FunctionTagHistoryRecordOrBuilder>( functionTagHistoryRecord_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); functionTagHistoryRecord_ = null; } return functionTagHistoryRecordBuilder_; } private java.lang.Object nextPageToken_ = ""; /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListFunctionTagHistoryRequest.page_size], use `nextPageToken` as the value
       * for the [ListFunctionTagHistoryRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListFunctionTagHistoryRequest.page_size], use `nextPageToken` as the value
       * for the [ListFunctionTagHistoryRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListFunctionTagHistoryRequest.page_size], use `nextPageToken` as the value
       * for the [ListFunctionTagHistoryRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @param value The nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; onChanged(); return this; } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListFunctionTagHistoryRequest.page_size], use `nextPageToken` as the value
       * for the [ListFunctionTagHistoryRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return This builder for chaining. */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListFunctionTagHistoryRequest.page_size], use `nextPageToken` as the value
       * for the [ListFunctionTagHistoryRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.ListFunctionTagHistoryResponse) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListFunctionTagHistoryResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListFunctionTagHistoryResponse(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.serverless.functions.v1.FunctionServiceOuterClass.ListFunctionTagHistoryResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListScalingPoliciesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.ListScalingPoliciesRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the function to retrieve scaling policies for.
     * To get a function ID, make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ java.lang.String getFunctionId(); /** *
     * ID of the function to retrieve scaling policies for.
     * To get a function ID, make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ com.google.protobuf.ByteString getFunctionIdBytes(); /** *
     * The maximum number of results per page that should be returned. If the number of available
     * results is larger than `pageSize`, the service returns a [ListScalingPoliciesResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * Default value: 100.
     * 
* * int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"]; * @return The pageSize. */ long getPageSize(); /** *
     * Page token. To get the next page of results, set `pageToken` to the
     * [ListScalingPoliciesResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ java.lang.String getPageToken(); /** *
     * Page token. To get the next page of results, set `pageToken` to the
     * [ListScalingPoliciesResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.ListScalingPoliciesRequest} */ public static final class ListScalingPoliciesRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.ListScalingPoliciesRequest) ListScalingPoliciesRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ListScalingPoliciesRequest.newBuilder() to construct. private ListScalingPoliciesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListScalingPoliciesRequest() { functionId_ = ""; pageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListScalingPoliciesRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListScalingPoliciesRequest( 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(); functionId_ = s; break; } case 16: { pageSize_ = input.readInt64(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); pageToken_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListScalingPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListScalingPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest.Builder.class); } public static final int FUNCTION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object functionId_; /** *
     * ID of the function to retrieve scaling policies for.
     * To get a function ID, make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ @java.lang.Override public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; 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(); functionId_ = s; return s; } } /** *
     * ID of the function to retrieve scaling policies for.
     * To get a function ID, make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PAGE_SIZE_FIELD_NUMBER = 2; private long pageSize_; /** *
     * The maximum number of results per page that should be returned. If the number of available
     * results is larger than `pageSize`, the service returns a [ListScalingPoliciesResponse.next_page_token]
     * that can be used to get the next page of results in subsequent list requests.
     * Default value: 100.
     * 
* * int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"]; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** *
     * Page token. To get the next page of results, set `pageToken` to the
     * [ListScalingPoliciesResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ @java.lang.Override public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** *
     * Page token. To get the next page of results, set `pageToken` to the
     * [ListScalingPoliciesResponse.next_page_token] returned by a previous list request.
     * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ @java.lang.Override public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionId_); } if (pageSize_ != 0L) { output.writeInt64(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionId_); } if (pageSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest) obj; if (!getFunctionId() .equals(other.getFunctionId())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken() .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FUNCTION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionId().hashCode(); hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPageSize()); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest 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.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest 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.serverless.functions.v1.ListScalingPoliciesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.ListScalingPoliciesRequest) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListScalingPoliciesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListScalingPoliciesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest.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(); functionId_ = ""; pageSize_ = 0L; pageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListScalingPoliciesRequest_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest(this); result.functionId_ = functionId_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest.getDefaultInstance()) return this; if (!other.getFunctionId().isEmpty()) { functionId_ = other.functionId_; onChanged(); } if (other.getPageSize() != 0L) { setPageSize(other.getPageSize()); } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object functionId_ = ""; /** *
       * ID of the function to retrieve scaling policies for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the function to retrieve scaling policies for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the function to retrieve scaling policies for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @param value The functionId to set. * @return This builder for chaining. */ public Builder setFunctionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionId_ = value; onChanged(); return this; } /** *
       * ID of the function to retrieve scaling policies for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearFunctionId() { functionId_ = getDefaultInstance().getFunctionId(); onChanged(); return this; } /** *
       * ID of the function to retrieve scaling policies for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for functionId to set. * @return This builder for chaining. */ public Builder setFunctionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionId_ = value; onChanged(); return this; } private long pageSize_ ; /** *
       * The maximum number of results per page that should be returned. If the number of available
       * results is larger than `pageSize`, the service returns a [ListScalingPoliciesResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"]; * @return The pageSize. */ @java.lang.Override public long getPageSize() { return pageSize_; } /** *
       * The maximum number of results per page that should be returned. If the number of available
       * results is larger than `pageSize`, the service returns a [ListScalingPoliciesResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"]; * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(long value) { pageSize_ = value; onChanged(); return this; } /** *
       * The maximum number of results per page that should be returned. If the number of available
       * results is larger than `pageSize`, the service returns a [ListScalingPoliciesResponse.next_page_token]
       * that can be used to get the next page of results in subsequent list requests.
       * Default value: 100.
       * 
* * int64 page_size = 2 [(.yandex.cloud.value) = "0-1000"]; * @return This builder for chaining. */ public Builder clearPageSize() { pageSize_ = 0L; onChanged(); return this; } private java.lang.Object pageToken_ = ""; /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListScalingPoliciesResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListScalingPoliciesResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListScalingPoliciesResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @param value The pageToken to set. * @return This builder for chaining. */ public Builder setPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } pageToken_ = value; onChanged(); return this; } /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListScalingPoliciesResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @return This builder for chaining. */ public Builder clearPageToken() { pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** *
       * Page token. To get the next page of results, set `pageToken` to the
       * [ListScalingPoliciesResponse.next_page_token] returned by a previous list request.
       * 
* * string page_token = 3 [(.yandex.cloud.length) = "<=100"]; * @param value The bytes for pageToken to set. * @return This builder for chaining. */ public Builder setPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.functions.v1.ListScalingPoliciesRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.ListScalingPoliciesRequest) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListScalingPoliciesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListScalingPoliciesRequest(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.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ListScalingPoliciesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.ListScalingPoliciesResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Set of relevant scaling policies.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ java.util.List getScalingPoliciesList(); /** *
     * Set of relevant scaling policies.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy getScalingPolicies(int index); /** *
     * Set of relevant scaling policies.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ int getScalingPoliciesCount(); /** *
     * Set of relevant scaling policies.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ java.util.List getScalingPoliciesOrBuilderList(); /** *
     * Set of relevant scaling policies.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicyOrBuilder getScalingPoliciesOrBuilder( int index); /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListScalingPoliciesRequest.page_size], use `nextPageToken` as the value
     * for the [ListScalingPoliciesRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListScalingPoliciesRequest.page_size], use `nextPageToken` as the value
     * for the [ListScalingPoliciesRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.ListScalingPoliciesResponse} */ public static final class ListScalingPoliciesResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.ListScalingPoliciesResponse) ListScalingPoliciesResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListScalingPoliciesResponse.newBuilder() to construct. private ListScalingPoliciesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListScalingPoliciesResponse() { scalingPolicies_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ListScalingPoliciesResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListScalingPoliciesResponse( 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)) { scalingPolicies_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } scalingPolicies_.add( input.readMessage(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy.parser(), extensionRegistry)); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); nextPageToken_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { scalingPolicies_ = java.util.Collections.unmodifiableList(scalingPolicies_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListScalingPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListScalingPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse.Builder.class); } public static final int SCALING_POLICIES_FIELD_NUMBER = 1; private java.util.List scalingPolicies_; /** *
     * Set of relevant scaling policies.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ @java.lang.Override public java.util.List getScalingPoliciesList() { return scalingPolicies_; } /** *
     * Set of relevant scaling policies.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ @java.lang.Override public java.util.List getScalingPoliciesOrBuilderList() { return scalingPolicies_; } /** *
     * Set of relevant scaling policies.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ @java.lang.Override public int getScalingPoliciesCount() { return scalingPolicies_.size(); } /** *
     * Set of relevant scaling policies.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy getScalingPolicies(int index) { return scalingPolicies_.get(index); } /** *
     * Set of relevant scaling policies.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicyOrBuilder getScalingPoliciesOrBuilder( int index) { return scalingPolicies_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListScalingPoliciesRequest.page_size], use `nextPageToken` as the value
     * for the [ListScalingPoliciesRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The nextPageToken. */ @java.lang.Override public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** *
     * Token for getting the next page of the list. If the number of results is greater than
     * the specified [ListScalingPoliciesRequest.page_size], use `nextPageToken` as the value
     * for the [ListScalingPoliciesRequest.page_token] parameter in the next list request.
     * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
     * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ @java.lang.Override public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < scalingPolicies_.size(); i++) { output.writeMessage(1, scalingPolicies_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < scalingPolicies_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, scalingPolicies_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse) obj; if (!getScalingPoliciesList() .equals(other.getScalingPoliciesList())) return false; if (!getNextPageToken() .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getScalingPoliciesCount() > 0) { hash = (37 * hash) + SCALING_POLICIES_FIELD_NUMBER; hash = (53 * hash) + getScalingPoliciesList().hashCode(); } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse 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.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse 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.serverless.functions.v1.ListScalingPoliciesResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.ListScalingPoliciesResponse) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListScalingPoliciesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListScalingPoliciesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getScalingPoliciesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (scalingPoliciesBuilder_ == null) { scalingPolicies_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { scalingPoliciesBuilder_.clear(); } nextPageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ListScalingPoliciesResponse_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse(this); int from_bitField0_ = bitField0_; if (scalingPoliciesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { scalingPolicies_ = java.util.Collections.unmodifiableList(scalingPolicies_); bitField0_ = (bitField0_ & ~0x00000001); } result.scalingPolicies_ = scalingPolicies_; } else { result.scalingPolicies_ = scalingPoliciesBuilder_.build(); } result.nextPageToken_ = nextPageToken_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse.getDefaultInstance()) return this; if (scalingPoliciesBuilder_ == null) { if (!other.scalingPolicies_.isEmpty()) { if (scalingPolicies_.isEmpty()) { scalingPolicies_ = other.scalingPolicies_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureScalingPoliciesIsMutable(); scalingPolicies_.addAll(other.scalingPolicies_); } onChanged(); } } else { if (!other.scalingPolicies_.isEmpty()) { if (scalingPoliciesBuilder_.isEmpty()) { scalingPoliciesBuilder_.dispose(); scalingPoliciesBuilder_ = null; scalingPolicies_ = other.scalingPolicies_; bitField0_ = (bitField0_ & ~0x00000001); scalingPoliciesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getScalingPoliciesFieldBuilder() : null; } else { scalingPoliciesBuilder_.addAllMessages(other.scalingPolicies_); } } } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List scalingPolicies_ = java.util.Collections.emptyList(); private void ensureScalingPoliciesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { scalingPolicies_ = new java.util.ArrayList(scalingPolicies_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicyOrBuilder> scalingPoliciesBuilder_; /** *
       * Set of relevant scaling policies.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ public java.util.List getScalingPoliciesList() { if (scalingPoliciesBuilder_ == null) { return java.util.Collections.unmodifiableList(scalingPolicies_); } else { return scalingPoliciesBuilder_.getMessageList(); } } /** *
       * Set of relevant scaling policies.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ public int getScalingPoliciesCount() { if (scalingPoliciesBuilder_ == null) { return scalingPolicies_.size(); } else { return scalingPoliciesBuilder_.getCount(); } } /** *
       * Set of relevant scaling policies.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy getScalingPolicies(int index) { if (scalingPoliciesBuilder_ == null) { return scalingPolicies_.get(index); } else { return scalingPoliciesBuilder_.getMessage(index); } } /** *
       * Set of relevant scaling policies.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ public Builder setScalingPolicies( int index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy value) { if (scalingPoliciesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureScalingPoliciesIsMutable(); scalingPolicies_.set(index, value); onChanged(); } else { scalingPoliciesBuilder_.setMessage(index, value); } return this; } /** *
       * Set of relevant scaling policies.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ public Builder setScalingPolicies( int index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy.Builder builderForValue) { if (scalingPoliciesBuilder_ == null) { ensureScalingPoliciesIsMutable(); scalingPolicies_.set(index, builderForValue.build()); onChanged(); } else { scalingPoliciesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Set of relevant scaling policies.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ public Builder addScalingPolicies(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy value) { if (scalingPoliciesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureScalingPoliciesIsMutable(); scalingPolicies_.add(value); onChanged(); } else { scalingPoliciesBuilder_.addMessage(value); } return this; } /** *
       * Set of relevant scaling policies.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ public Builder addScalingPolicies( int index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy value) { if (scalingPoliciesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureScalingPoliciesIsMutable(); scalingPolicies_.add(index, value); onChanged(); } else { scalingPoliciesBuilder_.addMessage(index, value); } return this; } /** *
       * Set of relevant scaling policies.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ public Builder addScalingPolicies( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy.Builder builderForValue) { if (scalingPoliciesBuilder_ == null) { ensureScalingPoliciesIsMutable(); scalingPolicies_.add(builderForValue.build()); onChanged(); } else { scalingPoliciesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Set of relevant scaling policies.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ public Builder addScalingPolicies( int index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy.Builder builderForValue) { if (scalingPoliciesBuilder_ == null) { ensureScalingPoliciesIsMutable(); scalingPolicies_.add(index, builderForValue.build()); onChanged(); } else { scalingPoliciesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Set of relevant scaling policies.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ public Builder addAllScalingPolicies( java.lang.Iterable values) { if (scalingPoliciesBuilder_ == null) { ensureScalingPoliciesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, scalingPolicies_); onChanged(); } else { scalingPoliciesBuilder_.addAllMessages(values); } return this; } /** *
       * Set of relevant scaling policies.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ public Builder clearScalingPolicies() { if (scalingPoliciesBuilder_ == null) { scalingPolicies_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { scalingPoliciesBuilder_.clear(); } return this; } /** *
       * Set of relevant scaling policies.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ public Builder removeScalingPolicies(int index) { if (scalingPoliciesBuilder_ == null) { ensureScalingPoliciesIsMutable(); scalingPolicies_.remove(index); onChanged(); } else { scalingPoliciesBuilder_.remove(index); } return this; } /** *
       * Set of relevant scaling policies.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy.Builder getScalingPoliciesBuilder( int index) { return getScalingPoliciesFieldBuilder().getBuilder(index); } /** *
       * Set of relevant scaling policies.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicyOrBuilder getScalingPoliciesOrBuilder( int index) { if (scalingPoliciesBuilder_ == null) { return scalingPolicies_.get(index); } else { return scalingPoliciesBuilder_.getMessageOrBuilder(index); } } /** *
       * Set of relevant scaling policies.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ public java.util.List getScalingPoliciesOrBuilderList() { if (scalingPoliciesBuilder_ != null) { return scalingPoliciesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(scalingPolicies_); } } /** *
       * Set of relevant scaling policies.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy.Builder addScalingPoliciesBuilder() { return getScalingPoliciesFieldBuilder().addBuilder( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy.getDefaultInstance()); } /** *
       * Set of relevant scaling policies.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy.Builder addScalingPoliciesBuilder( int index) { return getScalingPoliciesFieldBuilder().addBuilder( index, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy.getDefaultInstance()); } /** *
       * Set of relevant scaling policies.
       * 
* * repeated .yandex.cloud.serverless.functions.v1.ScalingPolicy scaling_policies = 1; */ public java.util.List getScalingPoliciesBuilderList() { return getScalingPoliciesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicyOrBuilder> getScalingPoliciesFieldBuilder() { if (scalingPoliciesBuilder_ == null) { scalingPoliciesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy.Builder, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicyOrBuilder>( scalingPolicies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); scalingPolicies_ = null; } return scalingPoliciesBuilder_; } private java.lang.Object nextPageToken_ = ""; /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListScalingPoliciesRequest.page_size], use `nextPageToken` as the value
       * for the [ListScalingPoliciesRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListScalingPoliciesRequest.page_size], use `nextPageToken` as the value
       * for the [ListScalingPoliciesRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); nextPageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListScalingPoliciesRequest.page_size], use `nextPageToken` as the value
       * for the [ListScalingPoliciesRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @param value The nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; onChanged(); return this; } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListScalingPoliciesRequest.page_size], use `nextPageToken` as the value
       * for the [ListScalingPoliciesRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @return This builder for chaining. */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** *
       * Token for getting the next page of the list. If the number of results is greater than
       * the specified [ListScalingPoliciesRequest.page_size], use `nextPageToken` as the value
       * for the [ListScalingPoliciesRequest.page_token] parameter in the next list request.
       * Each subsequent page will have its own `nextPageToken` to continue paging through the results.
       * 
* * string next_page_token = 2; * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ public Builder setNextPageTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.functions.v1.ListScalingPoliciesResponse) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.ListScalingPoliciesResponse) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListScalingPoliciesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListScalingPoliciesResponse(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.serverless.functions.v1.FunctionServiceOuterClass.ListScalingPoliciesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SetScalingPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.SetScalingPolicyRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the function to retrieve scaling policies for.
     * To get a function ID, make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ java.lang.String getFunctionId(); /** *
     * ID of the function to retrieve scaling policies for.
     * To get a function ID, make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ com.google.protobuf.ByteString getFunctionIdBytes(); /** *
     * Version tag.
     * To get the history of version tags make a [FunctionService.ListTagHistory] request.
     * 
* * string tag = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return The tag. */ java.lang.String getTag(); /** *
     * Version tag.
     * To get the history of version tags make a [FunctionService.ListTagHistory] request.
     * 
* * string tag = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return The bytes for tag. */ com.google.protobuf.ByteString getTagBytes(); /** *
     * Minimum guaranteed provisioned instances count for all zones in total.
     * Billed separately.
     * 
* * int64 provisioned_instances_count = 4 [(.yandex.cloud.value) = "0-1000"]; * @return The provisionedInstancesCount. */ long getProvisionedInstancesCount(); /** *
     * Upper limit for instance count in each zone.
     * 0 means no limit.
     * 
* * int64 zone_instances_limit = 5 [(.yandex.cloud.value) = "0-1000"]; * @return The zoneInstancesLimit. */ long getZoneInstancesLimit(); /** *
     * Upper limit of requests count in each zone.
     * 0 means no limit.
     * 
* * int64 zone_requests_limit = 6 [(.yandex.cloud.value) = "0-1000"]; * @return The zoneRequestsLimit. */ long getZoneRequestsLimit(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.SetScalingPolicyRequest} */ public static final class SetScalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.SetScalingPolicyRequest) SetScalingPolicyRequestOrBuilder { private static final long serialVersionUID = 0L; // Use SetScalingPolicyRequest.newBuilder() to construct. private SetScalingPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SetScalingPolicyRequest() { functionId_ = ""; tag_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SetScalingPolicyRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SetScalingPolicyRequest( 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(); functionId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); tag_ = s; break; } case 32: { provisionedInstancesCount_ = input.readInt64(); break; } case 40: { zoneInstancesLimit_ = input.readInt64(); break; } case 48: { zoneRequestsLimit_ = input.readInt64(); 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.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_SetScalingPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_SetScalingPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest.Builder.class); } public static final int FUNCTION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object functionId_; /** *
     * ID of the function to retrieve scaling policies for.
     * To get a function ID, make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ @java.lang.Override public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; 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(); functionId_ = s; return s; } } /** *
     * ID of the function to retrieve scaling policies for.
     * To get a function ID, make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TAG_FIELD_NUMBER = 2; private volatile java.lang.Object tag_; /** *
     * Version tag.
     * To get the history of version tags make a [FunctionService.ListTagHistory] request.
     * 
* * string tag = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return The tag. */ @java.lang.Override public java.lang.String getTag() { java.lang.Object ref = tag_; 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(); tag_ = s; return s; } } /** *
     * Version tag.
     * To get the history of version tags make a [FunctionService.ListTagHistory] request.
     * 
* * string tag = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return The bytes for tag. */ @java.lang.Override public com.google.protobuf.ByteString getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROVISIONED_INSTANCES_COUNT_FIELD_NUMBER = 4; private long provisionedInstancesCount_; /** *
     * Minimum guaranteed provisioned instances count for all zones in total.
     * Billed separately.
     * 
* * int64 provisioned_instances_count = 4 [(.yandex.cloud.value) = "0-1000"]; * @return The provisionedInstancesCount. */ @java.lang.Override public long getProvisionedInstancesCount() { return provisionedInstancesCount_; } public static final int ZONE_INSTANCES_LIMIT_FIELD_NUMBER = 5; private long zoneInstancesLimit_; /** *
     * Upper limit for instance count in each zone.
     * 0 means no limit.
     * 
* * int64 zone_instances_limit = 5 [(.yandex.cloud.value) = "0-1000"]; * @return The zoneInstancesLimit. */ @java.lang.Override public long getZoneInstancesLimit() { return zoneInstancesLimit_; } public static final int ZONE_REQUESTS_LIMIT_FIELD_NUMBER = 6; private long zoneRequestsLimit_; /** *
     * Upper limit of requests count in each zone.
     * 0 means no limit.
     * 
* * int64 zone_requests_limit = 6 [(.yandex.cloud.value) = "0-1000"]; * @return The zoneRequestsLimit. */ @java.lang.Override public long getZoneRequestsLimit() { return zoneRequestsLimit_; } 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(functionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); } if (provisionedInstancesCount_ != 0L) { output.writeInt64(4, provisionedInstancesCount_); } if (zoneInstancesLimit_ != 0L) { output.writeInt64(5, zoneInstancesLimit_); } if (zoneRequestsLimit_ != 0L) { output.writeInt64(6, zoneRequestsLimit_); } 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(functionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); } if (provisionedInstancesCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, provisionedInstancesCount_); } if (zoneInstancesLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, zoneInstancesLimit_); } if (zoneRequestsLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, zoneRequestsLimit_); } 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.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest) obj; if (!getFunctionId() .equals(other.getFunctionId())) return false; if (!getTag() .equals(other.getTag())) return false; if (getProvisionedInstancesCount() != other.getProvisionedInstancesCount()) return false; if (getZoneInstancesLimit() != other.getZoneInstancesLimit()) return false; if (getZoneRequestsLimit() != other.getZoneRequestsLimit()) 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) + FUNCTION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionId().hashCode(); hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + getTag().hashCode(); hash = (37 * hash) + PROVISIONED_INSTANCES_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProvisionedInstancesCount()); hash = (37 * hash) + ZONE_INSTANCES_LIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getZoneInstancesLimit()); hash = (37 * hash) + ZONE_REQUESTS_LIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getZoneRequestsLimit()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest 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.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest 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.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest 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.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest 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.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest 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.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest 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.serverless.functions.v1.SetScalingPolicyRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.SetScalingPolicyRequest) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_SetScalingPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_SetScalingPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest.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(); functionId_ = ""; tag_ = ""; provisionedInstancesCount_ = 0L; zoneInstancesLimit_ = 0L; zoneRequestsLimit_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_SetScalingPolicyRequest_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest(this); result.functionId_ = functionId_; result.tag_ = tag_; result.provisionedInstancesCount_ = provisionedInstancesCount_; result.zoneInstancesLimit_ = zoneInstancesLimit_; result.zoneRequestsLimit_ = zoneRequestsLimit_; 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.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest.getDefaultInstance()) return this; if (!other.getFunctionId().isEmpty()) { functionId_ = other.functionId_; onChanged(); } if (!other.getTag().isEmpty()) { tag_ = other.tag_; onChanged(); } if (other.getProvisionedInstancesCount() != 0L) { setProvisionedInstancesCount(other.getProvisionedInstancesCount()); } if (other.getZoneInstancesLimit() != 0L) { setZoneInstancesLimit(other.getZoneInstancesLimit()); } if (other.getZoneRequestsLimit() != 0L) { setZoneRequestsLimit(other.getZoneRequestsLimit()); } 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.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object functionId_ = ""; /** *
       * ID of the function to retrieve scaling policies for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the function to retrieve scaling policies for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the function to retrieve scaling policies for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @param value The functionId to set. * @return This builder for chaining. */ public Builder setFunctionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionId_ = value; onChanged(); return this; } /** *
       * ID of the function to retrieve scaling policies for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearFunctionId() { functionId_ = getDefaultInstance().getFunctionId(); onChanged(); return this; } /** *
       * ID of the function to retrieve scaling policies for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for functionId to set. * @return This builder for chaining. */ public Builder setFunctionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionId_ = value; onChanged(); return this; } private java.lang.Object tag_ = ""; /** *
       * Version tag.
       * To get the history of version tags make a [FunctionService.ListTagHistory] request.
       * 
* * string tag = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return The tag. */ public java.lang.String getTag() { java.lang.Object ref = tag_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tag_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Version tag.
       * To get the history of version tags make a [FunctionService.ListTagHistory] request.
       * 
* * string tag = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return The bytes for tag. */ public com.google.protobuf.ByteString getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Version tag.
       * To get the history of version tags make a [FunctionService.ListTagHistory] request.
       * 
* * string tag = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @param value The tag to set. * @return This builder for chaining. */ public Builder setTag( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tag_ = value; onChanged(); return this; } /** *
       * Version tag.
       * To get the history of version tags make a [FunctionService.ListTagHistory] request.
       * 
* * string tag = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return This builder for chaining. */ public Builder clearTag() { tag_ = getDefaultInstance().getTag(); onChanged(); return this; } /** *
       * Version tag.
       * To get the history of version tags make a [FunctionService.ListTagHistory] request.
       * 
* * string tag = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @param value The bytes for tag to set. * @return This builder for chaining. */ public Builder setTagBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tag_ = value; onChanged(); return this; } private long provisionedInstancesCount_ ; /** *
       * Minimum guaranteed provisioned instances count for all zones in total.
       * Billed separately.
       * 
* * int64 provisioned_instances_count = 4 [(.yandex.cloud.value) = "0-1000"]; * @return The provisionedInstancesCount. */ @java.lang.Override public long getProvisionedInstancesCount() { return provisionedInstancesCount_; } /** *
       * Minimum guaranteed provisioned instances count for all zones in total.
       * Billed separately.
       * 
* * int64 provisioned_instances_count = 4 [(.yandex.cloud.value) = "0-1000"]; * @param value The provisionedInstancesCount to set. * @return This builder for chaining. */ public Builder setProvisionedInstancesCount(long value) { provisionedInstancesCount_ = value; onChanged(); return this; } /** *
       * Minimum guaranteed provisioned instances count for all zones in total.
       * Billed separately.
       * 
* * int64 provisioned_instances_count = 4 [(.yandex.cloud.value) = "0-1000"]; * @return This builder for chaining. */ public Builder clearProvisionedInstancesCount() { provisionedInstancesCount_ = 0L; onChanged(); return this; } private long zoneInstancesLimit_ ; /** *
       * Upper limit for instance count in each zone.
       * 0 means no limit.
       * 
* * int64 zone_instances_limit = 5 [(.yandex.cloud.value) = "0-1000"]; * @return The zoneInstancesLimit. */ @java.lang.Override public long getZoneInstancesLimit() { return zoneInstancesLimit_; } /** *
       * Upper limit for instance count in each zone.
       * 0 means no limit.
       * 
* * int64 zone_instances_limit = 5 [(.yandex.cloud.value) = "0-1000"]; * @param value The zoneInstancesLimit to set. * @return This builder for chaining. */ public Builder setZoneInstancesLimit(long value) { zoneInstancesLimit_ = value; onChanged(); return this; } /** *
       * Upper limit for instance count in each zone.
       * 0 means no limit.
       * 
* * int64 zone_instances_limit = 5 [(.yandex.cloud.value) = "0-1000"]; * @return This builder for chaining. */ public Builder clearZoneInstancesLimit() { zoneInstancesLimit_ = 0L; onChanged(); return this; } private long zoneRequestsLimit_ ; /** *
       * Upper limit of requests count in each zone.
       * 0 means no limit.
       * 
* * int64 zone_requests_limit = 6 [(.yandex.cloud.value) = "0-1000"]; * @return The zoneRequestsLimit. */ @java.lang.Override public long getZoneRequestsLimit() { return zoneRequestsLimit_; } /** *
       * Upper limit of requests count in each zone.
       * 0 means no limit.
       * 
* * int64 zone_requests_limit = 6 [(.yandex.cloud.value) = "0-1000"]; * @param value The zoneRequestsLimit to set. * @return This builder for chaining. */ public Builder setZoneRequestsLimit(long value) { zoneRequestsLimit_ = value; onChanged(); return this; } /** *
       * Upper limit of requests count in each zone.
       * 0 means no limit.
       * 
* * int64 zone_requests_limit = 6 [(.yandex.cloud.value) = "0-1000"]; * @return This builder for chaining. */ public Builder clearZoneRequestsLimit() { zoneRequestsLimit_ = 0L; 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.serverless.functions.v1.SetScalingPolicyRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.SetScalingPolicyRequest) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SetScalingPolicyRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SetScalingPolicyRequest(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.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SetScalingPolicyMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.SetScalingPolicyMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the function for which scaling policy was set.
     * 
* * string function_id = 1; * @return The functionId. */ java.lang.String getFunctionId(); /** *
     * ID of the function for which scaling policy was set.
     * 
* * string function_id = 1; * @return The bytes for functionId. */ com.google.protobuf.ByteString getFunctionIdBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.SetScalingPolicyMetadata} */ public static final class SetScalingPolicyMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.SetScalingPolicyMetadata) SetScalingPolicyMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use SetScalingPolicyMetadata.newBuilder() to construct. private SetScalingPolicyMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SetScalingPolicyMetadata() { functionId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SetScalingPolicyMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SetScalingPolicyMetadata( 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(); functionId_ = 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.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_SetScalingPolicyMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_SetScalingPolicyMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata.Builder.class); } public static final int FUNCTION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object functionId_; /** *
     * ID of the function for which scaling policy was set.
     * 
* * string function_id = 1; * @return The functionId. */ @java.lang.Override public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; 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(); functionId_ = s; return s; } } /** *
     * ID of the function for which scaling policy was set.
     * 
* * string function_id = 1; * @return The bytes for functionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = 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(functionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionId_); } 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(functionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionId_); } 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.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata) obj; if (!getFunctionId() .equals(other.getFunctionId())) 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) + FUNCTION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata 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.serverless.functions.v1.SetScalingPolicyMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.SetScalingPolicyMetadata) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_SetScalingPolicyMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_SetScalingPolicyMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata.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(); functionId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_SetScalingPolicyMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata(this); result.functionId_ = functionId_; 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.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata.getDefaultInstance()) return this; if (!other.getFunctionId().isEmpty()) { functionId_ = other.functionId_; 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.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object functionId_ = ""; /** *
       * ID of the function for which scaling policy was set.
       * 
* * string function_id = 1; * @return The functionId. */ public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the function for which scaling policy was set.
       * 
* * string function_id = 1; * @return The bytes for functionId. */ public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the function for which scaling policy was set.
       * 
* * string function_id = 1; * @param value The functionId to set. * @return This builder for chaining. */ public Builder setFunctionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionId_ = value; onChanged(); return this; } /** *
       * ID of the function for which scaling policy was set.
       * 
* * string function_id = 1; * @return This builder for chaining. */ public Builder clearFunctionId() { functionId_ = getDefaultInstance().getFunctionId(); onChanged(); return this; } /** *
       * ID of the function for which scaling policy was set.
       * 
* * string function_id = 1; * @param value The bytes for functionId to set. * @return This builder for chaining. */ public Builder setFunctionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionId_ = 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.serverless.functions.v1.SetScalingPolicyMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.SetScalingPolicyMetadata) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SetScalingPolicyMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SetScalingPolicyMetadata(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.serverless.functions.v1.FunctionServiceOuterClass.SetScalingPolicyMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RemoveScalingPolicyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.RemoveScalingPolicyRequest) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the function to remove scaling policies for.
     * To get a function ID, make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ java.lang.String getFunctionId(); /** *
     * ID of the function to remove scaling policies for.
     * To get a function ID, make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ com.google.protobuf.ByteString getFunctionIdBytes(); /** *
     * Version tag.
     * To get the history of version tags make a [FunctionService.ListTagHistory] request.
     * 
* * string tag = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return The tag. */ java.lang.String getTag(); /** *
     * Version tag.
     * To get the history of version tags make a [FunctionService.ListTagHistory] request.
     * 
* * string tag = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return The bytes for tag. */ com.google.protobuf.ByteString getTagBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.RemoveScalingPolicyRequest} */ public static final class RemoveScalingPolicyRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.RemoveScalingPolicyRequest) RemoveScalingPolicyRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RemoveScalingPolicyRequest.newBuilder() to construct. private RemoveScalingPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RemoveScalingPolicyRequest() { functionId_ = ""; tag_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RemoveScalingPolicyRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RemoveScalingPolicyRequest( 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(); functionId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); tag_ = 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.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_RemoveScalingPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_RemoveScalingPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest.Builder.class); } public static final int FUNCTION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object functionId_; /** *
     * ID of the function to remove scaling policies for.
     * To get a function ID, make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ @java.lang.Override public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; 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(); functionId_ = s; return s; } } /** *
     * ID of the function to remove scaling policies for.
     * To get a function ID, make a [FunctionService.List] request.
     * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TAG_FIELD_NUMBER = 2; private volatile java.lang.Object tag_; /** *
     * Version tag.
     * To get the history of version tags make a [FunctionService.ListTagHistory] request.
     * 
* * string tag = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return The tag. */ @java.lang.Override public java.lang.String getTag() { java.lang.Object ref = tag_; 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(); tag_ = s; return s; } } /** *
     * Version tag.
     * To get the history of version tags make a [FunctionService.ListTagHistory] request.
     * 
* * string tag = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return The bytes for tag. */ @java.lang.Override public com.google.protobuf.ByteString getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tag_ = 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(functionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); } 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(functionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); } 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest) obj; if (!getFunctionId() .equals(other.getFunctionId())) return false; if (!getTag() .equals(other.getTag())) 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) + FUNCTION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionId().hashCode(); hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + getTag().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest 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.serverless.functions.v1.RemoveScalingPolicyRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.RemoveScalingPolicyRequest) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_RemoveScalingPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_RemoveScalingPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest.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(); functionId_ = ""; tag_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_RemoveScalingPolicyRequest_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest(this); result.functionId_ = functionId_; result.tag_ = tag_; 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest.getDefaultInstance()) return this; if (!other.getFunctionId().isEmpty()) { functionId_ = other.functionId_; onChanged(); } if (!other.getTag().isEmpty()) { tag_ = other.tag_; 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object functionId_ = ""; /** *
       * ID of the function to remove scaling policies for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The functionId. */ public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the function to remove scaling policies for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return The bytes for functionId. */ public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the function to remove scaling policies for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @param value The functionId to set. * @return This builder for chaining. */ public Builder setFunctionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionId_ = value; onChanged(); return this; } /** *
       * ID of the function to remove scaling policies for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearFunctionId() { functionId_ = getDefaultInstance().getFunctionId(); onChanged(); return this; } /** *
       * ID of the function to remove scaling policies for.
       * To get a function ID, make a [FunctionService.List] request.
       * 
* * string function_id = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for functionId to set. * @return This builder for chaining. */ public Builder setFunctionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionId_ = value; onChanged(); return this; } private java.lang.Object tag_ = ""; /** *
       * Version tag.
       * To get the history of version tags make a [FunctionService.ListTagHistory] request.
       * 
* * string tag = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return The tag. */ public java.lang.String getTag() { java.lang.Object ref = tag_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tag_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Version tag.
       * To get the history of version tags make a [FunctionService.ListTagHistory] request.
       * 
* * string tag = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return The bytes for tag. */ public com.google.protobuf.ByteString getTagBytes() { java.lang.Object ref = tag_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Version tag.
       * To get the history of version tags make a [FunctionService.ListTagHistory] request.
       * 
* * string tag = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @param value The tag to set. * @return This builder for chaining. */ public Builder setTag( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tag_ = value; onChanged(); return this; } /** *
       * Version tag.
       * To get the history of version tags make a [FunctionService.ListTagHistory] request.
       * 
* * string tag = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @return This builder for chaining. */ public Builder clearTag() { tag_ = getDefaultInstance().getTag(); onChanged(); return this; } /** *
       * Version tag.
       * To get the history of version tags make a [FunctionService.ListTagHistory] request.
       * 
* * string tag = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[a-z][-_0-9a-z]*|[$]latest"]; * @param value The bytes for tag to set. * @return This builder for chaining. */ public Builder setTagBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tag_ = 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.serverless.functions.v1.RemoveScalingPolicyRequest) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.RemoveScalingPolicyRequest) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RemoveScalingPolicyRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RemoveScalingPolicyRequest(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.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RemoveScalingPolicyMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.RemoveScalingPolicyMetadata) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the function for which scaling policy was removed.
     * 
* * string function_id = 1; * @return The functionId. */ java.lang.String getFunctionId(); /** *
     * ID of the function for which scaling policy was removed.
     * 
* * string function_id = 1; * @return The bytes for functionId. */ com.google.protobuf.ByteString getFunctionIdBytes(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.RemoveScalingPolicyMetadata} */ public static final class RemoveScalingPolicyMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.RemoveScalingPolicyMetadata) RemoveScalingPolicyMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use RemoveScalingPolicyMetadata.newBuilder() to construct. private RemoveScalingPolicyMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RemoveScalingPolicyMetadata() { functionId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RemoveScalingPolicyMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RemoveScalingPolicyMetadata( 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(); functionId_ = 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.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_RemoveScalingPolicyMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_RemoveScalingPolicyMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata.Builder.class); } public static final int FUNCTION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object functionId_; /** *
     * ID of the function for which scaling policy was removed.
     * 
* * string function_id = 1; * @return The functionId. */ @java.lang.Override public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; 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(); functionId_ = s; return s; } } /** *
     * ID of the function for which scaling policy was removed.
     * 
* * string function_id = 1; * @return The bytes for functionId. */ @java.lang.Override public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = 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(functionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionId_); } 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(functionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionId_); } 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata other = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata) obj; if (!getFunctionId() .equals(other.getFunctionId())) 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) + FUNCTION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata 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.serverless.functions.v1.RemoveScalingPolicyMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.RemoveScalingPolicyMetadata) yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_RemoveScalingPolicyMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_RemoveScalingPolicyMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata.class, yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata.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(); functionId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.internal_static_yandex_cloud_serverless_functions_v1_RemoveScalingPolicyMetadata_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata build() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata result = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata(this); result.functionId_ = functionId_; 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata.getDefaultInstance()) return this; if (!other.getFunctionId().isEmpty()) { functionId_ = other.functionId_; 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.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object functionId_ = ""; /** *
       * ID of the function for which scaling policy was removed.
       * 
* * string function_id = 1; * @return The functionId. */ public java.lang.String getFunctionId() { java.lang.Object ref = functionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); functionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the function for which scaling policy was removed.
       * 
* * string function_id = 1; * @return The bytes for functionId. */ public com.google.protobuf.ByteString getFunctionIdBytes() { java.lang.Object ref = functionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); functionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the function for which scaling policy was removed.
       * 
* * string function_id = 1; * @param value The functionId to set. * @return This builder for chaining. */ public Builder setFunctionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } functionId_ = value; onChanged(); return this; } /** *
       * ID of the function for which scaling policy was removed.
       * 
* * string function_id = 1; * @return This builder for chaining. */ public Builder clearFunctionId() { functionId_ = getDefaultInstance().getFunctionId(); onChanged(); return this; } /** *
       * ID of the function for which scaling policy was removed.
       * 
* * string function_id = 1; * @param value The bytes for functionId to set. * @return This builder for chaining. */ public Builder setFunctionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); functionId_ = 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.serverless.functions.v1.RemoveScalingPolicyMetadata) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.RemoveScalingPolicyMetadata) private static final yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata(); } public static yandex.cloud.api.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RemoveScalingPolicyMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RemoveScalingPolicyMetadata(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.serverless.functions.v1.FunctionServiceOuterClass.RemoveScalingPolicyMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_GetFunctionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_GetFunctionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_GetFunctionVersionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_GetFunctionVersionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_GetFunctionVersionByTagRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_GetFunctionVersionByTagRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionRequest_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionRequest_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionRequest_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionRequest_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionVersionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionVersionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionVersionMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionVersionMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_ListRuntimesRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_ListRuntimesRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_ListRuntimesResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_ListRuntimesResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsVersionsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsVersionsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsVersionsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsVersionsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_ListFunctionOperationsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_ListFunctionOperationsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_ListFunctionOperationsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_ListFunctionOperationsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionRequest_EnvironmentEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionRequest_EnvironmentEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionRequest_NamedServiceAccountsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionRequest_NamedServiceAccountsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_SetFunctionTagRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_SetFunctionTagRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_RemoveFunctionTagRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_RemoveFunctionTagRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_SetFunctionTagMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_SetFunctionTagMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_RemoveFunctionTagMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_RemoveFunctionTagMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryResponse_FunctionTagHistoryRecord_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryResponse_FunctionTagHistoryRecord_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_ListScalingPoliciesRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_ListScalingPoliciesRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_ListScalingPoliciesResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_ListScalingPoliciesResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_SetScalingPolicyRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_SetScalingPolicyRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_SetScalingPolicyMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_SetScalingPolicyMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_RemoveScalingPolicyRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_RemoveScalingPolicyRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_RemoveScalingPolicyMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_RemoveScalingPolicyMetadata_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/serverless/functions/v1/f" + "unction_service.proto\022$yandex.cloud.serv" + "erless.functions.v1\032\034google/api/annotati" + "ons.proto\032 google/protobuf/field_mask.pr" + "oto\032\036google/protobuf/duration.proto\032\037goo" + "gle/protobuf/timestamp.proto\032 yandex/clo" + "ud/api/operation.proto\032 yandex/cloud/acc" + "ess/access.proto\0323yandex/cloud/serverles" + "s/functions/v1/function.proto\032&yandex/cl" + "oud/operation/operation.proto\032\035yandex/cl" + "oud/validation.proto\"/\n\022GetFunctionReque" + "st\022\031\n\013function_id\030\001 \001(\tB\004\350\3071\001\">\n\031GetFunc" + "tionVersionRequest\022!\n\023function_version_i" + "d\030\001 \001(\tB\004\350\3071\001\"h\n\036GetFunctionVersionByTag" + "Request\022\031\n\013function_id\030\001 \001(\tB\004\350\3071\001\022+\n\003ta" + "g\030\002 \001(\tB\036\362\3071\032[a-z][-_0-9a-z]*|[$]latest\"" + "f\n\024ListFunctionsRequest\022\027\n\tfolder_id\030\001 \001" + "(\tB\004\350\3071\001\022\021\n\tpage_size\030\002 \001(\003\022\022\n\npage_toke" + "n\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"s\n\025ListFunctions" + "Response\022A\n\tfunctions\030\001 \003(\0132..yandex.clo" + "ud.serverless.functions.v1.Function\022\027\n\017n" + "ext_page_token\030\002 \001(\t\"\313\002\n\025CreateFunctionR" + "equest\022\027\n\tfolder_id\030\001 \001(\tB\004\350\3071\001\022/\n\004name\030" + "\002 \001(\tB!\362\3071\035|[a-z][-a-z0-9]{1,61}[a-z0-9]" + "\022\036\n\013description\030\003 \001(\tB\t\212\3101\005<=256\022\230\001\n\006lab" + "els\030\004 \003(\0132G.yandex.cloud.serverless.func" + "tions.v1.CreateFunctionRequest.LabelsEnt" + "ryB?\202\3101\004<=64\212\3101\004<=63\362\3071\013[-_0-9a-z]*\262\3101\006\032" + "\0041-63\262\3101\022\022\020[a-z][-_0-9a-z]*\032-\n\013LabelsEnt" + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"-\n\026Cr" + "eateFunctionMetadata\022\023\n\013function_id\030\001 \001(" + "\t\"\376\002\n\025UpdateFunctionRequest\022\031\n\013function_" + "id\030\001 \001(\tB\004\350\3071\001\022/\n\013update_mask\030\002 \001(\0132\032.go" + "ogle.protobuf.FieldMask\022/\n\004name\030\003 \001(\tB!\362" + "\3071\035|[a-z][-a-z0-9]{1,61}[a-z0-9]\022\036\n\013desc" + "ription\030\004 \001(\tB\t\212\3101\005<=256\022\230\001\n\006labels\030\005 \003(" + "\0132G.yandex.cloud.serverless.functions.v1" + ".UpdateFunctionRequest.LabelsEntryB?\202\3101\004" + "<=64\212\3101\004<=63\362\3071\013[-_0-9a-z]*\262\3101\006\032\0041-63\262\3101" + "\022\022\020[a-z][-_0-9a-z]*\032-\n\013LabelsEntry\022\013\n\003ke" + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"-\n\026UpdateFunc" + "tionMetadata\022\023\n\013function_id\030\001 \001(\t\"2\n\025Del" + "eteFunctionRequest\022\031\n\013function_id\030\001 \001(\tB" + "\004\350\3071\001\"-\n\026DeleteFunctionMetadata\022\023\n\013funct" + "ion_id\030\001 \001(\t\"V\n\034DeleteFunctionVersionReq" + "uest\022!\n\023function_version_id\030\002 \001(\tB\004\350\3071\001\022" + "\r\n\005force\030\003 \001(\010J\004\010\001\020\002\"B\n\035DeleteFunctionVe" + "rsionMetadata\022\033\n\023function_version_id\030\002 \001" + "(\tJ\004\010\001\020\002\"\025\n\023ListRuntimesRequest\"(\n\024ListR" + "untimesResponse\022\020\n\010runtimes\030\001 \003(\t\"\260\001\n\034Li" + "stFunctionsVersionsRequest\022\023\n\tfolder_id\030" + "\001 \001(\tH\000\022\025\n\013function_id\030\002 \001(\tH\000\022\035\n\tpage_s" + "ize\030\003 \001(\003B\n\372\3071\0060-1000\022\035\n\npage_token\030\004 \001(" + "\tB\t\212\3101\005<=100\022\032\n\006filter\030\005 \001(\tB\n\212\3101\006<=1000" + "B\n\n\002id\022\004\300\3011\001\"y\n\035ListFunctionsVersionsRes" + "ponse\022?\n\010versions\030\001 \003(\0132-.yandex.cloud.s" + "erverless.functions.v1.Version\022\027\n\017next_p" + "age_token\030\002 \001(\t\"\224\001\n\035ListFunctionOperatio" + "nsRequest\022\031\n\013function_id\030\001 \001(\tB\004\350\3071\001\022\035\n\t" + "page_size\030\002 \001(\003B\n\372\3071\0060-1000\022\035\n\npage_toke" + "n\030\003 \001(\tB\t\212\3101\005<=100\022\032\n\006filter\030\004 \001(\tB\n\212\3101\006" + "<=1000\"p\n\036ListFunctionOperationsResponse" + "\0225\n\noperations\030\001 \003(\0132!.yandex.cloud.oper" + "ation.Operation\022\027\n\017next_page_token\030\002 \001(\t" + "\"\377\010\n\034CreateFunctionVersionRequest\022\031\n\013fun" + "ction_id\030\001 \001(\tB\004\350\3071\001\022\025\n\007runtime\030\002 \001(\tB\004\350" + "\3071\001\022\036\n\013description\030\003 \001(\tB\t\212\3101\0050-256\022\030\n\ne" + "ntrypoint\030\004 \001(\tB\004\350\3071\001\022H\n\tresources\030\005 \001(\013" + "2/.yandex.cloud.serverless.functions.v1." + "ResourcesB\004\350\3071\001\022:\n\021execution_timeout\030\006 \001" + "(\0132\031.google.protobuf.DurationB\004\350\3071\001\022\032\n\022s" + "ervice_account_id\030\007 \001(\t\022@\n\007package\030\t \001(\013" + "2-.yandex.cloud.serverless.functions.v1." + "PackageH\000\022!\n\007content\030\n \001(\014B\016\212\3101\n<=524288" + "00H\000\022\024\n\nversion_id\030\013 \001(\tH\000\022\217\001\n\013environme" + "nt\030\014 \003(\0132S.yandex.cloud.serverless.funct" + "ions.v1.CreateFunctionVersionRequest.Env" + "ironmentEntryB%\212\3101\006<=4096\262\3101\027\022\025[a-zA-Z][" + "a-zA-Z0-9_]*\022!\n\003tag\030\r \003(\tB\024\362\3071\020[a-z][-_0" + "-9a-z]*\022H\n\014connectivity\030\021 \001(\01322.yandex.c" + "loud.serverless.functions.v1.Connectivit" + "y\022|\n\026named_service_accounts\030\017 \003(\0132\\.yand" + "ex.cloud.serverless.functions.v1.CreateF" + "unctionVersionRequest.NamedServiceAccoun" + "tsEntry\022=\n\007secrets\030\022 \003(\0132,.yandex.cloud." + "serverless.functions.v1.Secret\022E\n\013log_op" + "tions\030\023 \001(\01320.yandex.cloud.serverless.fu" + "nctions.v1.LogOptions\022J\n\016storage_mounts\030" + "\024 \003(\01322.yandex.cloud.serverless.function" + "s.v1.StorageMount\0322\n\020EnvironmentEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032;\n\031NamedSe" + "rviceAccountsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + "\030\002 \001(\t:\0028\001B\026\n\016package_source\022\004\300\3011\001\"<\n\035Cr" + "eateFunctionVersionMetadata\022\033\n\023function_" + "version_id\030\001 \001(\t\"]\n\025SetFunctionTagReques" + "t\022!\n\023function_version_id\030\001 \001(\tB\004\350\3071\001\022!\n\003" + "tag\030\002 \001(\tB\024\362\3071\020[a-z][-_0-9a-z]*\"`\n\030Remov" + "eFunctionTagRequest\022!\n\023function_version_" + "id\030\001 \001(\tB\004\350\3071\001\022!\n\003tag\030\002 \001(\tB\024\362\3071\020[a-z][-" + "_0-9a-z]*\"5\n\026SetFunctionTagMetadata\022\033\n\023f" + "unction_version_id\030\001 \001(\t\"8\n\031RemoveFuncti" + "onTagMetadata\022\033\n\023function_version_id\030\001 \001" + "(\t\"\301\001\n\035ListFunctionTagHistoryRequest\022\031\n\013" + "function_id\030\001 \001(\tB\004\350\3071\001\022+\n\003tag\030\002 \001(\tB\036\362\307" + "1\032[a-z][-_0-9a-z]*|[$]latest\022\035\n\tpage_siz" + "e\030\003 \001(\003B\n\372\3071\0060-1000\022\035\n\npage_token\030\004 \001(\tB" + "\t\212\3101\005<=100\022\032\n\006filter\030\005 \001(\tB\n\212\3101\006<=1000\"\200" + "\003\n\036ListFunctionTagHistoryResponse\022\202\001\n\033fu" + "nction_tag_history_record\030\001 \003(\0132].yandex" + ".cloud.serverless.functions.v1.ListFunct" + "ionTagHistoryResponse.FunctionTagHistory" + "Record\022\027\n\017next_page_token\030\002 \001(\t\032\277\001\n\030Func" + "tionTagHistoryRecord\022\023\n\013function_id\030\001 \001(" + "\t\022\033\n\023function_version_id\030\003 \001(\t\022\013\n\003tag\030\002 " + "\001(\t\0222\n\016effective_from\030\004 \001(\0132\032.google.pro" + "tobuf.Timestamp\0220\n\014effective_to\030\005 \001(\0132\032." + "google.protobuf.Timestamp\"u\n\032ListScaling" + "PoliciesRequest\022\031\n\013function_id\030\001 \001(\tB\004\350\307" + "1\001\022\035\n\tpage_size\030\002 \001(\003B\n\372\3071\0060-1000\022\035\n\npag" + "e_token\030\003 \001(\tB\t\212\3101\005<=100\"\205\001\n\033ListScaling" + "PoliciesResponse\022M\n\020scaling_policies\030\001 \003" + "(\01323.yandex.cloud.serverless.functions.v" + "1.ScalingPolicy\022\027\n\017next_page_token\030\002 \001(\t" + "\"\351\001\n\027SetScalingPolicyRequest\022\031\n\013function" + "_id\030\001 \001(\tB\004\350\3071\001\022/\n\003tag\030\002 \001(\tB\"\350\3071\001\362\3071\032[a" + "-z][-_0-9a-z]*|[$]latest\022/\n\033provisioned_" + "instances_count\030\004 \001(\003B\n\372\3071\0060-1000\022(\n\024zon" + "e_instances_limit\030\005 \001(\003B\n\372\3071\0060-1000\022\'\n\023z" + "one_requests_limit\030\006 \001(\003B\n\372\3071\0060-1000\"/\n\030" + "SetScalingPolicyMetadata\022\023\n\013function_id\030" + "\001 \001(\t\"h\n\032RemoveScalingPolicyRequest\022\031\n\013f" + "unction_id\030\001 \001(\tB\004\350\3071\001\022/\n\003tag\030\002 \001(\tB\"\350\3071" + "\001\362\3071\032[a-z][-_0-9a-z]*|[$]latest\"2\n\033Remov" + "eScalingPolicyMetadata\022\023\n\013function_id\030\001 " + "\001(\t2\304!\n\017FunctionService\022\236\001\n\003Get\0228.yandex" + ".cloud.serverless.functions.v1.GetFuncti" + "onRequest\032..yandex.cloud.serverless.func" + "tions.v1.Function\"-\202\323\344\223\002\'\022%/functions/v1" + "/functions/{function_id}\022\240\001\n\004List\022:.yand" + "ex.cloud.serverless.functions.v1.ListFun" + "ctionsRequest\032;.yandex.cloud.serverless." + "functions.v1.ListFunctionsResponse\"\037\202\323\344\223" + "\002\031\022\027/functions/v1/functions\022\262\001\n\006Create\022;" + ".yandex.cloud.serverless.functions.v1.Cr" + "eateFunctionRequest\032!.yandex.cloud.opera" + "tion.Operation\"H\202\323\344\223\002\034\"\027/functions/v1/fu" + "nctions:\001*\262\322*\"\n\026CreateFunctionMetadata\022\010" + "Function\022\300\001\n\006Update\022;.yandex.cloud.serve" + "rless.functions.v1.UpdateFunctionRequest" + "\032!.yandex.cloud.operation.Operation\"V\202\323\344" + "\223\002*2%/functions/v1/functions/{function_i" + "d}:\001*\262\322*\"\n\026UpdateFunctionMetadata\022\010Funct" + "ion\022\312\001\n\006Delete\022;.yandex.cloud.serverless" + ".functions.v1.DeleteFunctionRequest\032!.ya" + "ndex.cloud.operation.Operation\"`\202\323\344\223\002\'*%" + "/functions/v1/functions/{function_id}\262\322*" + "/\n\026DeleteFunctionMetadata\022\025google.protob" + "uf.Empty\022\262\001\n\nGetVersion\022?.yandex.cloud.s" + "erverless.functions.v1.GetFunctionVersio" + "nRequest\032-.yandex.cloud.serverless.funct" + "ions.v1.Version\"4\202\323\344\223\002.\022,/functions/v1/v" + "ersions/{function_version_id}\022\254\001\n\017GetVer" + "sionByTag\022D.yandex.cloud.serverless.func" + "tions.v1.GetFunctionVersionByTagRequest\032" + "-.yandex.cloud.serverless.functions.v1.V" + "ersion\"$\202\323\344\223\002\036\022\034/functions/v1/versions:b" + "yTag\022\267\001\n\014ListVersions\022B.yandex.cloud.ser" + "verless.functions.v1.ListFunctionsVersio" + "nsRequest\032C.yandex.cloud.serverless.func" + "tions.v1.ListFunctionsVersionsResponse\"\036" + "\202\323\344\223\002\030\022\026/functions/v1/versions\022\346\001\n\rDelet" + "eVersion\022B.yandex.cloud.serverless.funct" + "ions.v1.DeleteFunctionVersionRequest\032!.y" + "andex.cloud.operation.Operation\"n\202\323\344\223\002.*" + ",/functions/v1/versions/{function_versio" + "n_id}\262\322*6\n\035DeleteFunctionVersionMetadata" + "\022\025google.protobuf.Empty\022\315\001\n\006SetTag\022;.yan" + "dex.cloud.serverless.functions.v1.SetFun" + "ctionTagRequest\032!.yandex.cloud.operation" + ".Operation\"c\202\323\344\223\0028\"3/functions/v1/versio" + "ns/{function_version_id}:setTag:\001*\262\322*!\n\026" + "SetFunctionTagMetadata\022\007Version\022\331\001\n\tRemo" + "veTag\022>.yandex.cloud.serverless.function" + "s.v1.RemoveFunctionTagRequest\032!.yandex.c" + "loud.operation.Operation\"i\202\323\344\223\002;\"6/funct" + "ions/v1/versions/{function_version_id}:r" + "emoveTag:\001*\262\322*$\n\031RemoveFunctionTagMetada" + "ta\022\007Version\022\325\001\n\016ListTagHistory\022C.yandex." + "cloud.serverless.functions.v1.ListFuncti" + "onTagHistoryRequest\032D.yandex.cloud.serve" + "rless.functions.v1.ListFunctionTagHistor" + "yResponse\"8\202\323\344\223\0022\0220/functions/v1/functio" + "ns/{function_id}:tagHistory\022\305\001\n\rCreateVe" + "rsion\022B.yandex.cloud.serverless.function" + "s.v1.CreateFunctionVersionRequest\032!.yand" + "ex.cloud.operation.Operation\"M\202\323\344\223\002\033\"\026/f" + "unctions/v1/versions:\001*\262\322*(\n\035CreateFunct" + "ionVersionMetadata\022\007Version\022\245\001\n\014ListRunt" + "imes\0229.yandex.cloud.serverless.functions" + ".v1.ListRuntimesRequest\032:.yandex.cloud.s" + "erverless.functions.v1.ListRuntimesRespo" + "nse\"\036\202\323\344\223\002\030\022\026/functions/v1/runtimes\022\325\001\n\016" + "ListOperations\022C.yandex.cloud.serverless" + ".functions.v1.ListFunctionOperationsRequ" + "est\032D.yandex.cloud.serverless.functions." + "v1.ListFunctionOperationsResponse\"8\202\323\344\223\002" + "2\0220/functions/v1/functions/{function_id}" + "/operations\022\267\001\n\022ListAccessBindings\022..yan" + "dex.cloud.access.ListAccessBindingsReque" + "st\032/.yandex.cloud.access.ListAccessBindi" + "ngsResponse\"@\202\323\344\223\002:\0228/functions/v1/funct" + "ions/{resource_id}:listAccessBindings\022\346\001" + "\n\021SetAccessBindings\022-.yandex.cloud.acces" + "s.SetAccessBindingsRequest\032!.yandex.clou" + "d.operation.Operation\"\177\202\323\344\223\002<\"7/function" + "s/v1/functions/{resource_id}:setAccessBi" + "ndings:\001*\262\322*9\n access.SetAccessBindingsM" + "etadata\022\025google.protobuf.Empty\022\363\001\n\024Updat" + "eAccessBindings\0220.yandex.cloud.access.Up" + "dateAccessBindingsRequest\032!.yandex.cloud" + ".operation.Operation\"\205\001\202\323\344\223\002?\":/function" + "s/v1/functions/{resource_id}:updateAcces" + "sBindings:\001*\262\322*<\n#access.UpdateAccessBin" + "dingsMetadata\022\025google.protobuf.Empty\022\331\001\n" + "\023ListScalingPolicies\[email protected]" + "erless.functions.v1.ListScalingPoliciesR" + "equest\032A.yandex.cloud.serverless.functio" + "ns.v1.ListScalingPoliciesResponse\"=\202\323\344\223\002" + "7\0225/functions/v1/functions/{function_id}" + "/scalingPolicies\022\344\001\n\020SetScalingPolicy\022=." + "yandex.cloud.serverless.functions.v1.Set" + "ScalingPolicyRequest\032!.yandex.cloud.oper" + "ation.Operation\"n\202\323\344\223\002;\"6/functions/v1/f" + "unctions/{function_id}:setScalingPolicy:" + "\001*\262\322*)\n\030SetScalingPolicyMetadata\022\rScalin" + "gPolicy\022\370\001\n\023RemoveScalingPolicy\[email protected]" + ".cloud.serverless.functions.v1.RemoveSca" + "lingPolicyRequest\032!.yandex.cloud.operati" + "on.Operation\"|\202\323\344\223\002>\"9/functions/v1/func" + "tions/{function_id}:removeScalingPolicy:" + "\001*\262\322*4\n\033RemoveScalingPolicyMetadata\022\025goo" + "gle.protobuf.EmptyB~\n(yandex.cloud.api.s" + "erverless.functions.v1ZRgithub.com/yande" + "x-cloud/go-genproto/yandex/cloud/serverl" + "ess/functions/v1;functionsb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), yandex.cloud.api.OperationOuterClass.getDescriptor(), yandex.cloud.api.access.Access.getDescriptor(), yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.getDescriptor(), yandex.cloud.api.operation.OperationOuterClass.getDescriptor(), yandex.cloud.api.Validation.getDescriptor(), }); internal_static_yandex_cloud_serverless_functions_v1_GetFunctionRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_serverless_functions_v1_GetFunctionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_GetFunctionRequest_descriptor, new java.lang.String[] { "FunctionId", }); internal_static_yandex_cloud_serverless_functions_v1_GetFunctionVersionRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_serverless_functions_v1_GetFunctionVersionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_GetFunctionVersionRequest_descriptor, new java.lang.String[] { "FunctionVersionId", }); internal_static_yandex_cloud_serverless_functions_v1_GetFunctionVersionByTagRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_serverless_functions_v1_GetFunctionVersionByTagRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_GetFunctionVersionByTagRequest_descriptor, new java.lang.String[] { "FunctionId", "Tag", }); internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsRequest_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsRequest_descriptor, new java.lang.String[] { "FolderId", "PageSize", "PageToken", "Filter", }); internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsResponse_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsResponse_descriptor, new java.lang.String[] { "Functions", "NextPageToken", }); internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionRequest_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionRequest_descriptor, new java.lang.String[] { "FolderId", "Name", "Description", "Labels", }); internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionRequest_LabelsEntry_descriptor = internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionRequest_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionRequest_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionRequest_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionMetadata_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionMetadata_descriptor, new java.lang.String[] { "FunctionId", }); internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionRequest_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionRequest_descriptor, new java.lang.String[] { "FunctionId", "UpdateMask", "Name", "Description", "Labels", }); internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionRequest_LabelsEntry_descriptor = internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionRequest_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionRequest_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionRequest_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionMetadata_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_UpdateFunctionMetadata_descriptor, new java.lang.String[] { "FunctionId", }); internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionRequest_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionRequest_descriptor, new java.lang.String[] { "FunctionId", }); internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionMetadata_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionMetadata_descriptor, new java.lang.String[] { "FunctionId", }); internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionVersionRequest_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionVersionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionVersionRequest_descriptor, new java.lang.String[] { "FunctionVersionId", "Force", }); internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionVersionMetadata_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionVersionMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_DeleteFunctionVersionMetadata_descriptor, new java.lang.String[] { "FunctionVersionId", }); internal_static_yandex_cloud_serverless_functions_v1_ListRuntimesRequest_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_yandex_cloud_serverless_functions_v1_ListRuntimesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_ListRuntimesRequest_descriptor, new java.lang.String[] { }); internal_static_yandex_cloud_serverless_functions_v1_ListRuntimesResponse_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_yandex_cloud_serverless_functions_v1_ListRuntimesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_ListRuntimesResponse_descriptor, new java.lang.String[] { "Runtimes", }); internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsVersionsRequest_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsVersionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsVersionsRequest_descriptor, new java.lang.String[] { "FolderId", "FunctionId", "PageSize", "PageToken", "Filter", "Id", }); internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsVersionsResponse_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsVersionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_ListFunctionsVersionsResponse_descriptor, new java.lang.String[] { "Versions", "NextPageToken", }); internal_static_yandex_cloud_serverless_functions_v1_ListFunctionOperationsRequest_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_yandex_cloud_serverless_functions_v1_ListFunctionOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_ListFunctionOperationsRequest_descriptor, new java.lang.String[] { "FunctionId", "PageSize", "PageToken", "Filter", }); internal_static_yandex_cloud_serverless_functions_v1_ListFunctionOperationsResponse_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_yandex_cloud_serverless_functions_v1_ListFunctionOperationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_ListFunctionOperationsResponse_descriptor, new java.lang.String[] { "Operations", "NextPageToken", }); internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionRequest_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionRequest_descriptor, new java.lang.String[] { "FunctionId", "Runtime", "Description", "Entrypoint", "Resources", "ExecutionTimeout", "ServiceAccountId", "Package", "Content", "VersionId", "Environment", "Tag", "Connectivity", "NamedServiceAccounts", "Secrets", "LogOptions", "StorageMounts", "PackageSource", }); internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionRequest_EnvironmentEntry_descriptor = internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionRequest_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionRequest_EnvironmentEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionRequest_EnvironmentEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionRequest_NamedServiceAccountsEntry_descriptor = internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionRequest_descriptor.getNestedTypes().get(1); internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionRequest_NamedServiceAccountsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionRequest_NamedServiceAccountsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionMetadata_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_CreateFunctionVersionMetadata_descriptor, new java.lang.String[] { "FunctionVersionId", }); internal_static_yandex_cloud_serverless_functions_v1_SetFunctionTagRequest_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_yandex_cloud_serverless_functions_v1_SetFunctionTagRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_SetFunctionTagRequest_descriptor, new java.lang.String[] { "FunctionVersionId", "Tag", }); internal_static_yandex_cloud_serverless_functions_v1_RemoveFunctionTagRequest_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_yandex_cloud_serverless_functions_v1_RemoveFunctionTagRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_RemoveFunctionTagRequest_descriptor, new java.lang.String[] { "FunctionVersionId", "Tag", }); internal_static_yandex_cloud_serverless_functions_v1_SetFunctionTagMetadata_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_yandex_cloud_serverless_functions_v1_SetFunctionTagMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_SetFunctionTagMetadata_descriptor, new java.lang.String[] { "FunctionVersionId", }); internal_static_yandex_cloud_serverless_functions_v1_RemoveFunctionTagMetadata_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_yandex_cloud_serverless_functions_v1_RemoveFunctionTagMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_RemoveFunctionTagMetadata_descriptor, new java.lang.String[] { "FunctionVersionId", }); internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryRequest_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryRequest_descriptor, new java.lang.String[] { "FunctionId", "Tag", "PageSize", "PageToken", "Filter", }); internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryResponse_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryResponse_descriptor, new java.lang.String[] { "FunctionTagHistoryRecord", "NextPageToken", }); internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryResponse_FunctionTagHistoryRecord_descriptor = internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryResponse_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryResponse_FunctionTagHistoryRecord_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_ListFunctionTagHistoryResponse_FunctionTagHistoryRecord_descriptor, new java.lang.String[] { "FunctionId", "FunctionVersionId", "Tag", "EffectiveFrom", "EffectiveTo", }); internal_static_yandex_cloud_serverless_functions_v1_ListScalingPoliciesRequest_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_yandex_cloud_serverless_functions_v1_ListScalingPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_ListScalingPoliciesRequest_descriptor, new java.lang.String[] { "FunctionId", "PageSize", "PageToken", }); internal_static_yandex_cloud_serverless_functions_v1_ListScalingPoliciesResponse_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_yandex_cloud_serverless_functions_v1_ListScalingPoliciesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_ListScalingPoliciesResponse_descriptor, new java.lang.String[] { "ScalingPolicies", "NextPageToken", }); internal_static_yandex_cloud_serverless_functions_v1_SetScalingPolicyRequest_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_yandex_cloud_serverless_functions_v1_SetScalingPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_SetScalingPolicyRequest_descriptor, new java.lang.String[] { "FunctionId", "Tag", "ProvisionedInstancesCount", "ZoneInstancesLimit", "ZoneRequestsLimit", }); internal_static_yandex_cloud_serverless_functions_v1_SetScalingPolicyMetadata_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_yandex_cloud_serverless_functions_v1_SetScalingPolicyMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_SetScalingPolicyMetadata_descriptor, new java.lang.String[] { "FunctionId", }); internal_static_yandex_cloud_serverless_functions_v1_RemoveScalingPolicyRequest_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_yandex_cloud_serverless_functions_v1_RemoveScalingPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_RemoveScalingPolicyRequest_descriptor, new java.lang.String[] { "FunctionId", "Tag", }); internal_static_yandex_cloud_serverless_functions_v1_RemoveScalingPolicyMetadata_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_yandex_cloud_serverless_functions_v1_RemoveScalingPolicyMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_RemoveScalingPolicyMetadata_descriptor, new java.lang.String[] { "FunctionId", }); 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.mapKey); registry.add(yandex.cloud.api.Validation.pattern); registry.add(yandex.cloud.api.Validation.required); registry.add(yandex.cloud.api.Validation.size); registry.add(yandex.cloud.api.Validation.value); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); yandex.cloud.api.OperationOuterClass.getDescriptor(); yandex.cloud.api.access.Access.getDescriptor(); yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.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