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

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

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

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

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

    /**
     * 
     * ID of the function. Generated at creation time.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the function. Generated at creation time.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * ID of the folder that the function belongs to.
     * 
* * string folder_id = 2; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * ID of the folder that the function belongs to.
     * 
* * string folder_id = 2; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
     * Creation timestamp for the function.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Creation timestamp for the function.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Creation timestamp for the function.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
     * Name of the function. The name is unique within the folder.
     * 
* * string name = 4 [(.yandex.cloud.length) = "3-63"]; * @return The name. */ java.lang.String getName(); /** *
     * Name of the function. The name is unique within the folder.
     * 
* * string name = 4 [(.yandex.cloud.length) = "3-63"]; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Description of the function.
     * 
* * string description = 5 [(.yandex.cloud.length) = "0-256"]; * @return The description. */ java.lang.String getDescription(); /** *
     * Description of the function.
     * 
* * string description = 5 [(.yandex.cloud.length) = "0-256"]; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * Function labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6 [(.yandex.cloud.size) = "<=64"]; */ int getLabelsCount(); /** *
     * Function labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6 [(.yandex.cloud.size) = "<=64"]; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * Function labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6 [(.yandex.cloud.size) = "<=64"]; */ java.util.Map getLabelsMap(); /** *
     * Function labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6 [(.yandex.cloud.size) = "<=64"]; */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Function labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6 [(.yandex.cloud.size) = "<=64"]; */ java.lang.String getLabelsOrThrow( java.lang.String key); /** *
     * ID of the log group for the function.
     * 
* * string log_group_id = 7; * @return The logGroupId. */ java.lang.String getLogGroupId(); /** *
     * ID of the log group for the function.
     * 
* * string log_group_id = 7; * @return The bytes for logGroupId. */ com.google.protobuf.ByteString getLogGroupIdBytes(); /** *
     * URL that needs to be requested to invoke the function.
     * 
* * string http_invoke_url = 8; * @return The httpInvokeUrl. */ java.lang.String getHttpInvokeUrl(); /** *
     * URL that needs to be requested to invoke the function.
     * 
* * string http_invoke_url = 8; * @return The bytes for httpInvokeUrl. */ com.google.protobuf.ByteString getHttpInvokeUrlBytes(); /** *
     * Status of the function.
     * 
* * .yandex.cloud.serverless.functions.v1.Function.Status status = 9; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** *
     * Status of the function.
     * 
* * .yandex.cloud.serverless.functions.v1.Function.Status status = 9; * @return The status. */ yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.Status getStatus(); } /** *
   * A serverless function. For details about the concept, see [Functions](/docs/functions/concepts/function).
   * 
* * Protobuf type {@code yandex.cloud.serverless.functions.v1.Function} */ public static final class Function extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.Function) FunctionOrBuilder { private static final long serialVersionUID = 0L; // Use Function.newBuilder() to construct. private Function(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Function() { id_ = ""; folderId_ = ""; name_ = ""; description_ = ""; logGroupId_ = ""; httpInvokeUrl_ = ""; status_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Function(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Function( 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(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); folderId_ = s; break; } case 26: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 50: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); labels_.getMutableMap().put( labels__.getKey(), labels__.getValue()); break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); logGroupId_ = s; break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); httpInvokeUrl_ = s; break; } case 72: { int rawValue = input.readEnum(); status_ = rawValue; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Function_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: 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.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Function_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.class, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.Builder.class); } /** * Protobuf enum {@code yandex.cloud.serverless.functions.v1.Function.Status} */ public enum Status implements com.google.protobuf.ProtocolMessageEnum { /** * STATUS_UNSPECIFIED = 0; */ STATUS_UNSPECIFIED(0), /** *
       * Function is being created.
       * 
* * CREATING = 1; */ CREATING(1), /** *
       * Function is ready to be invoked.
       * 
* * ACTIVE = 2; */ ACTIVE(2), /** *
       * Function is being deleted.
       * 
* * DELETING = 3; */ DELETING(3), /** *
       * Function failed.
       * 
* * ERROR = 4; */ ERROR(4), UNRECOGNIZED(-1), ; /** * STATUS_UNSPECIFIED = 0; */ public static final int STATUS_UNSPECIFIED_VALUE = 0; /** *
       * Function is being created.
       * 
* * CREATING = 1; */ public static final int CREATING_VALUE = 1; /** *
       * Function is ready to be invoked.
       * 
* * ACTIVE = 2; */ public static final int ACTIVE_VALUE = 2; /** *
       * Function is being deleted.
       * 
* * DELETING = 3; */ public static final int DELETING_VALUE = 3; /** *
       * Function failed.
       * 
* * ERROR = 4; */ public static final int ERROR_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Status valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Status forNumber(int value) { switch (value) { case 0: return STATUS_UNSPECIFIED; case 1: return CREATING; case 2: return ACTIVE; case 3: return DELETING; case 4: return ERROR; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Status> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Status findValueByNumber(int number) { return Status.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.getDescriptor().getEnumTypes().get(0); } private static final Status[] VALUES = values(); public static Status valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Status(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.serverless.functions.v1.Function.Status) } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the function. Generated at creation time.
     * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object 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(); id_ = s; return s; } } /** *
     * ID of the function. Generated at creation time.
     * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOLDER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object folderId_; /** *
     * ID of the folder that the function belongs to.
     * 
* * string folder_id = 2; * @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 that the function belongs to.
     * 
* * string folder_id = 2; * @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 CREATED_AT_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createdAt_; /** *
     * Creation timestamp for the function.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Creation timestamp for the function.
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
     * Creation timestamp for the function.
     * 
* * .google.protobuf.Timestamp created_at = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int NAME_FIELD_NUMBER = 4; private volatile java.lang.Object name_; /** *
     * Name of the function. The name is unique within the folder.
     * 
* * string name = 4 [(.yandex.cloud.length) = "3-63"]; * @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 is unique within the folder.
     * 
* * string name = 4 [(.yandex.cloud.length) = "3-63"]; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 5; private volatile java.lang.Object description_; /** *
     * Description of the function.
     * 
* * string description = 5 [(.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 function.
     * 
* * string description = 5 [(.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 LABELS_FIELD_NUMBER = 6; 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.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Function_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.
     * 
* * map<string, string> labels = 6 [(.yandex.cloud.size) = "<=64"]; */ @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.
     * 
* * map<string, string> labels = 6 [(.yandex.cloud.size) = "<=64"]; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * Function labels as `key:value` pairs.
     * 
* * map<string, string> labels = 6 [(.yandex.cloud.size) = "<=64"]; */ @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.
     * 
* * map<string, string> labels = 6 [(.yandex.cloud.size) = "<=64"]; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int LOG_GROUP_ID_FIELD_NUMBER = 7; private volatile java.lang.Object logGroupId_; /** *
     * ID of the log group for the function.
     * 
* * string log_group_id = 7; * @return The logGroupId. */ @java.lang.Override public java.lang.String getLogGroupId() { java.lang.Object ref = logGroupId_; 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(); logGroupId_ = s; return s; } } /** *
     * ID of the log group for the function.
     * 
* * string log_group_id = 7; * @return The bytes for logGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getLogGroupIdBytes() { java.lang.Object ref = logGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); logGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HTTP_INVOKE_URL_FIELD_NUMBER = 8; private volatile java.lang.Object httpInvokeUrl_; /** *
     * URL that needs to be requested to invoke the function.
     * 
* * string http_invoke_url = 8; * @return The httpInvokeUrl. */ @java.lang.Override public java.lang.String getHttpInvokeUrl() { java.lang.Object ref = httpInvokeUrl_; 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(); httpInvokeUrl_ = s; return s; } } /** *
     * URL that needs to be requested to invoke the function.
     * 
* * string http_invoke_url = 8; * @return The bytes for httpInvokeUrl. */ @java.lang.Override public com.google.protobuf.ByteString getHttpInvokeUrlBytes() { java.lang.Object ref = httpInvokeUrl_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); httpInvokeUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATUS_FIELD_NUMBER = 9; private int status_; /** *
     * Status of the function.
     * 
* * .yandex.cloud.serverless.functions.v1.Function.Status status = 9; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
     * Status of the function.
     * 
* * .yandex.cloud.serverless.functions.v1.Function.Status status = 9; * @return The status. */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.Status result = yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.Status.valueOf(status_); return result == null ? yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.Status.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, folderId_); } if (createdAt_ != null) { output.writeMessage(3, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, logGroupId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpInvokeUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, httpInvokeUrl_); } if (status_ != yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.Status.STATUS_UNSPECIFIED.getNumber()) { output.writeEnum(9, status_); } 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(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, folderId_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, 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(6, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, logGroupId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(httpInvokeUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, httpInvokeUrl_); } if (status_ != yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.Status.STATUS_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, status_); } 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.FunctionOuterClass.Function)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function other = (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function) obj; if (!getId() .equals(other.getId())) return false; if (!getFolderId() .equals(other.getFolderId())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (!getName() .equals(other.getName())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!internalGetLabels().equals( other.internalGetLabels())) return false; if (!getLogGroupId() .equals(other.getLogGroupId())) return false; if (!getHttpInvokeUrl() .equals(other.getHttpInvokeUrl())) return false; if (status_ != other.status_) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + LOG_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getLogGroupId().hashCode(); hash = (37 * hash) + HTTP_INVOKE_URL_FIELD_NUMBER; hash = (53 * hash) + getHttpInvokeUrl().hashCode(); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function 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.FunctionOuterClass.Function parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function 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.FunctionOuterClass.Function parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function 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.FunctionOuterClass.Function 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.FunctionOuterClass.Function 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.FunctionOuterClass.Function 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.FunctionOuterClass.Function 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.FunctionOuterClass.Function 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.FunctionOuterClass.Function 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.FunctionOuterClass.Function 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 serverless function. For details about the concept, see [Functions](/docs/functions/concepts/function).
     * 
* * Protobuf type {@code yandex.cloud.serverless.functions.v1.Function} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.Function) yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.FunctionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Function_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 6: 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.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Function_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.class, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.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(); id_ = ""; folderId_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } name_ = ""; description_ = ""; internalGetMutableLabels().clear(); logGroupId_ = ""; httpInvokeUrl_ = ""; status_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Function_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function build() { yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function result = new yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.folderId_ = folderId_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } result.name_ = name_; result.description_ = description_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); result.logGroupId_ = logGroupId_; result.httpInvokeUrl_ = httpInvokeUrl_; result.status_ = status_; 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.FunctionOuterClass.Function) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getFolderId().isEmpty()) { folderId_ = other.folderId_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); if (!other.getLogGroupId().isEmpty()) { logGroupId_ = other.logGroupId_; onChanged(); } if (!other.getHttpInvokeUrl().isEmpty()) { httpInvokeUrl_ = other.httpInvokeUrl_; onChanged(); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } 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.FunctionOuterClass.Function parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * ID of the function. Generated at creation time.
       * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the function. Generated at creation time.
       * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the function. Generated at creation time.
       * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * ID of the function. Generated at creation time.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the function. Generated at creation time.
       * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object folderId_ = ""; /** *
       * ID of the folder that the function belongs to.
       * 
* * string folder_id = 2; * @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 that the function belongs to.
       * 
* * string folder_id = 2; * @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 that the function belongs to.
       * 
* * string folder_id = 2; * @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 that the function belongs to.
       * 
* * string folder_id = 2; * @return This builder for chaining. */ public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); onChanged(); return this; } /** *
       * ID of the folder that the function belongs to.
       * 
* * string folder_id = 2; * @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 com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
       * Creation timestamp for the function.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Creation timestamp for the function.
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
       * Creation timestamp for the function.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
       * Creation timestamp for the function.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Creation timestamp for the function.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
       * Creation timestamp for the function.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Creation timestamp for the function.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Creation timestamp for the function.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
       * Creation timestamp for the function.
       * 
* * .google.protobuf.Timestamp created_at = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private java.lang.Object name_ = ""; /** *
       * Name of the function. The name is unique within the folder.
       * 
* * string name = 4 [(.yandex.cloud.length) = "3-63"]; * @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 is unique within the folder.
       * 
* * string name = 4 [(.yandex.cloud.length) = "3-63"]; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the function. The name is unique within the folder.
       * 
* * string name = 4 [(.yandex.cloud.length) = "3-63"]; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name of the function. The name is unique within the folder.
       * 
* * string name = 4 [(.yandex.cloud.length) = "3-63"]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the function. The name is unique within the folder.
       * 
* * string name = 4 [(.yandex.cloud.length) = "3-63"]; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * Description of the function.
       * 
* * string description = 5 [(.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 function.
       * 
* * string description = 5 [(.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 function.
       * 
* * string description = 5 [(.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 function.
       * 
* * string description = 5 [(.yandex.cloud.length) = "0-256"]; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * Description of the function.
       * 
* * string description = 5 [(.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 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.
       * 
* * map<string, string> labels = 6 [(.yandex.cloud.size) = "<=64"]; */ @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.
       * 
* * map<string, string> labels = 6 [(.yandex.cloud.size) = "<=64"]; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * Function labels as `key:value` pairs.
       * 
* * map<string, string> labels = 6 [(.yandex.cloud.size) = "<=64"]; */ @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.
       * 
* * map<string, string> labels = 6 [(.yandex.cloud.size) = "<=64"]; */ @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.
       * 
* * map<string, string> labels = 6 [(.yandex.cloud.size) = "<=64"]; */ 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.
       * 
* * map<string, string> labels = 6 [(.yandex.cloud.size) = "<=64"]; */ 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.
       * 
* * map<string, string> labels = 6 [(.yandex.cloud.size) = "<=64"]; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } private java.lang.Object logGroupId_ = ""; /** *
       * ID of the log group for the function.
       * 
* * string log_group_id = 7; * @return The logGroupId. */ public java.lang.String getLogGroupId() { java.lang.Object ref = logGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the log group for the function.
       * 
* * string log_group_id = 7; * @return The bytes for logGroupId. */ public com.google.protobuf.ByteString getLogGroupIdBytes() { java.lang.Object ref = logGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); logGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the log group for the function.
       * 
* * string log_group_id = 7; * @param value The logGroupId to set. * @return This builder for chaining. */ public Builder setLogGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } logGroupId_ = value; onChanged(); return this; } /** *
       * ID of the log group for the function.
       * 
* * string log_group_id = 7; * @return This builder for chaining. */ public Builder clearLogGroupId() { logGroupId_ = getDefaultInstance().getLogGroupId(); onChanged(); return this; } /** *
       * ID of the log group for the function.
       * 
* * string log_group_id = 7; * @param value The bytes for logGroupId to set. * @return This builder for chaining. */ public Builder setLogGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); logGroupId_ = value; onChanged(); return this; } private java.lang.Object httpInvokeUrl_ = ""; /** *
       * URL that needs to be requested to invoke the function.
       * 
* * string http_invoke_url = 8; * @return The httpInvokeUrl. */ public java.lang.String getHttpInvokeUrl() { java.lang.Object ref = httpInvokeUrl_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpInvokeUrl_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * URL that needs to be requested to invoke the function.
       * 
* * string http_invoke_url = 8; * @return The bytes for httpInvokeUrl. */ public com.google.protobuf.ByteString getHttpInvokeUrlBytes() { java.lang.Object ref = httpInvokeUrl_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); httpInvokeUrl_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * URL that needs to be requested to invoke the function.
       * 
* * string http_invoke_url = 8; * @param value The httpInvokeUrl to set. * @return This builder for chaining. */ public Builder setHttpInvokeUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } httpInvokeUrl_ = value; onChanged(); return this; } /** *
       * URL that needs to be requested to invoke the function.
       * 
* * string http_invoke_url = 8; * @return This builder for chaining. */ public Builder clearHttpInvokeUrl() { httpInvokeUrl_ = getDefaultInstance().getHttpInvokeUrl(); onChanged(); return this; } /** *
       * URL that needs to be requested to invoke the function.
       * 
* * string http_invoke_url = 8; * @param value The bytes for httpInvokeUrl to set. * @return This builder for chaining. */ public Builder setHttpInvokeUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); httpInvokeUrl_ = value; onChanged(); return this; } private int status_ = 0; /** *
       * Status of the function.
       * 
* * .yandex.cloud.serverless.functions.v1.Function.Status status = 9; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
       * Status of the function.
       * 
* * .yandex.cloud.serverless.functions.v1.Function.Status status = 9; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** *
       * Status of the function.
       * 
* * .yandex.cloud.serverless.functions.v1.Function.Status status = 9; * @return The status. */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.Status result = yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.Status.valueOf(status_); return result == null ? yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.Status.UNRECOGNIZED : result; } /** *
       * Status of the function.
       * 
* * .yandex.cloud.serverless.functions.v1.Function.Status status = 9; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function.Status value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** *
       * Status of the function.
       * 
* * .yandex.cloud.serverless.functions.v1.Function.Status status = 9; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.functions.v1.Function) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.Function) private static final yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function(); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Function getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Function parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Function(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.FunctionOuterClass.Function getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VersionOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.Version) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the version.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the version.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * ID of the function that the version belongs to.
     * 
* * string function_id = 2; * @return The functionId. */ java.lang.String getFunctionId(); /** *
     * ID of the function that the version belongs to.
     * 
* * string function_id = 2; * @return The bytes for functionId. */ com.google.protobuf.ByteString getFunctionIdBytes(); /** *
     * 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(); /** *
     * Creation timestamp for the version.
     * 
* * .google.protobuf.Timestamp created_at = 5; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Creation timestamp for the version.
     * 
* * .google.protobuf.Timestamp created_at = 5; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Creation timestamp for the version.
     * 
* * .google.protobuf.Timestamp created_at = 5; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
     * ID of the runtime environment for the function.
     * Supported environments and their identifiers are listed in the [Runtime environments](/docs/functions/concepts/runtime).
     * 
* * string runtime = 6; * @return The runtime. */ java.lang.String getRuntime(); /** *
     * ID of the runtime environment for the function.
     * Supported environments and their identifiers are listed in the [Runtime environments](/docs/functions/concepts/runtime).
     * 
* * string runtime = 6; * @return The bytes for runtime. */ com.google.protobuf.ByteString getRuntimeBytes(); /** *
     * Entrypoint for the function: the name of the function to be called as the handler.
     * Specified in the format `<function file name>.<handler name>`, for example, `index.myFunction`.
     * 
* * string entrypoint = 7; * @return The entrypoint. */ java.lang.String getEntrypoint(); /** *
     * Entrypoint for the function: the name of the function to be called as the handler.
     * Specified in the format `<function file name>.<handler name>`, for example, `index.myFunction`.
     * 
* * string entrypoint = 7; * @return The bytes for entrypoint. */ com.google.protobuf.ByteString getEntrypointBytes(); /** *
     * Resources allocated to the version.
     * 
* * .yandex.cloud.serverless.functions.v1.Resources resources = 8; * @return Whether the resources field is set. */ boolean hasResources(); /** *
     * Resources allocated to the version.
     * 
* * .yandex.cloud.serverless.functions.v1.Resources resources = 8; * @return The resources. */ yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources getResources(); /** *
     * Resources allocated to the version.
     * 
* * .yandex.cloud.serverless.functions.v1.Resources resources = 8; */ 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 = 9; * @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 = 9; * @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 = 9; */ com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder(); /** *
     * ID of the service account associated with the version.
     * 
* * string service_account_id = 10; * @return The serviceAccountId. */ java.lang.String getServiceAccountId(); /** *
     * ID of the service account associated with the version.
     * 
* * string service_account_id = 10; * @return The bytes for serviceAccountId. */ com.google.protobuf.ByteString getServiceAccountIdBytes(); /** *
     * Final size of the deployment package after unpacking.
     * 
* * int64 image_size = 12; * @return The imageSize. */ long getImageSize(); /** *
     * Status of the version.
     * 
* * .yandex.cloud.serverless.functions.v1.Version.Status status = 13; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** *
     * Status of the version.
     * 
* * .yandex.cloud.serverless.functions.v1.Version.Status status = 13; * @return The status. */ yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.Status getStatus(); /** *
     * Version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
     * 
* * repeated string tags = 14; * @return A list containing the tags. */ java.util.List getTagsList(); /** *
     * Version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
     * 
* * repeated string tags = 14; * @return The count of tags. */ int getTagsCount(); /** *
     * Version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
     * 
* * repeated string tags = 14; * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** *
     * Version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
     * 
* * repeated string tags = 14; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ com.google.protobuf.ByteString getTagsBytes(int index); /** *
     * ID of the log group for the version.
     * 
* * string log_group_id = 15; * @return The logGroupId. */ java.lang.String getLogGroupId(); /** *
     * ID of the log group for the version.
     * 
* * string log_group_id = 15; * @return The bytes for logGroupId. */ com.google.protobuf.ByteString getLogGroupIdBytes(); /** *
     * Environment settings for the version.
     * 
* * map<string, string> environment = 16; */ int getEnvironmentCount(); /** *
     * Environment settings for the version.
     * 
* * map<string, string> environment = 16; */ 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 = 16; */ java.util.Map getEnvironmentMap(); /** *
     * Environment settings for the version.
     * 
* * map<string, string> environment = 16; */ java.lang.String getEnvironmentOrDefault( java.lang.String key, java.lang.String defaultValue); /** *
     * Environment settings for the version.
     * 
* * map<string, string> environment = 16; */ java.lang.String getEnvironmentOrThrow( java.lang.String key); /** *
     * Network access. 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(); /** *
     * Network access. 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(); /** *
     * Network access. 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 = 18; */ int getNamedServiceAccountsCount(); /** *
     * Additional service accounts to be used by the version.
     * 
* * map<string, string> named_service_accounts = 18; */ 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 = 18; */ java.util.Map getNamedServiceAccountsMap(); /** *
     * Additional service accounts to be used by the version.
     * 
* * map<string, string> named_service_accounts = 18; */ 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 = 18; */ 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 = 19; */ java.util.List getSecretsList(); /** *
     * Yandex Lockbox secrets to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 19; */ 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 = 19; */ int getSecretsCount(); /** *
     * Yandex Lockbox secrets to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 19; */ java.util.List getSecretsOrBuilderList(); /** *
     * Yandex Lockbox secrets to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 19; */ 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 = 20; * @return Whether the logOptions field is set. */ boolean hasLogOptions(); /** *
     * Options for logging from the function
     * 
* * .yandex.cloud.serverless.functions.v1.LogOptions log_options = 20; * @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 = 20; */ 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 = 21; */ java.util.List getStorageMountsList(); /** *
     * S3 mounts to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 21; */ 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 = 21; */ int getStorageMountsCount(); /** *
     * S3 mounts to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 21; */ java.util.List getStorageMountsOrBuilderList(); /** *
     * S3 mounts to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 21; */ yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMountOrBuilder getStorageMountsOrBuilder( int index); } /** *
   * Version of a function. For details about the concept, see [Function versions](/docs/functions/concepts/function#version).
   * 
* * Protobuf type {@code yandex.cloud.serverless.functions.v1.Version} */ public static final class Version extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.Version) VersionOrBuilder { private static final long serialVersionUID = 0L; // Use Version.newBuilder() to construct. private Version(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Version() { id_ = ""; functionId_ = ""; description_ = ""; runtime_ = ""; entrypoint_ = ""; serviceAccountId_ = ""; status_ = 0; tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; logGroupId_ = ""; secrets_ = java.util.Collections.emptyList(); storageMounts_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Version(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Version( 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(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); functionId_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 42: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); runtime_ = s; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); entrypoint_ = s; break; } case 66: { 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 74: { 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 82: { java.lang.String s = input.readStringRequireUtf8(); serviceAccountId_ = s; break; } case 96: { imageSize_ = input.readInt64(); break; } case 104: { int rawValue = input.readEnum(); status_ = rawValue; break; } case 114: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { tags_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } tags_.add(s); break; } case 122: { java.lang.String s = input.readStringRequireUtf8(); logGroupId_ = s; break; } case 130: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { environment_ = com.google.protobuf.MapField.newMapField( EnvironmentDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry environment__ = input.readMessage( EnvironmentDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); environment_.getMutableMap().put( environment__.getKey(), environment__.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_ & 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 154: { 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 162: { 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 170: { 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_ & 0x00000001) != 0)) { tags_ = tags_.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.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Version_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 16: return internalGetEnvironment(); case 18: 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.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Version_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.class, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.Builder.class); } /** * Protobuf enum {@code yandex.cloud.serverless.functions.v1.Version.Status} */ public enum Status implements com.google.protobuf.ProtocolMessageEnum { /** * STATUS_UNSPECIFIED = 0; */ STATUS_UNSPECIFIED(0), /** *
       * Version is being created.
       * 
* * CREATING = 1; */ CREATING(1), /** *
       * Version is ready to use.
       * 
* * ACTIVE = 2; */ ACTIVE(2), UNRECOGNIZED(-1), ; /** * STATUS_UNSPECIFIED = 0; */ public static final int STATUS_UNSPECIFIED_VALUE = 0; /** *
       * Version is being created.
       * 
* * CREATING = 1; */ public static final int CREATING_VALUE = 1; /** *
       * Version is ready to use.
       * 
* * ACTIVE = 2; */ public static final int ACTIVE_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Status valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Status forNumber(int value) { switch (value) { case 0: return STATUS_UNSPECIFIED; case 1: return CREATING; case 2: return ACTIVE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Status> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Status findValueByNumber(int number) { return Status.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.getDescriptor().getEnumTypes().get(0); } private static final Status[] VALUES = values(); public static Status valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Status(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.serverless.functions.v1.Version.Status) } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the version.
     * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object 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(); id_ = s; return s; } } /** *
     * ID of the version.
     * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FUNCTION_ID_FIELD_NUMBER = 2; private volatile java.lang.Object functionId_; /** *
     * ID of the function that the version belongs to.
     * 
* * string function_id = 2; * @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 version belongs to.
     * 
* * string function_id = 2; * @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 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 CREATED_AT_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createdAt_; /** *
     * Creation timestamp for the version.
     * 
* * .google.protobuf.Timestamp created_at = 5; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Creation timestamp for the version.
     * 
* * .google.protobuf.Timestamp created_at = 5; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
     * Creation timestamp for the version.
     * 
* * .google.protobuf.Timestamp created_at = 5; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int RUNTIME_FIELD_NUMBER = 6; private volatile java.lang.Object runtime_; /** *
     * ID of the runtime environment for the function.
     * Supported environments and their identifiers are listed in the [Runtime environments](/docs/functions/concepts/runtime).
     * 
* * string runtime = 6; * @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; } } /** *
     * ID of the runtime environment for the function.
     * Supported environments and their identifiers are listed in the [Runtime environments](/docs/functions/concepts/runtime).
     * 
* * string runtime = 6; * @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 ENTRYPOINT_FIELD_NUMBER = 7; private volatile java.lang.Object entrypoint_; /** *
     * Entrypoint for the function: the name of the function to be called as the handler.
     * Specified in the format `<function file name>.<handler name>`, for example, `index.myFunction`.
     * 
* * string entrypoint = 7; * @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 for the function: the name of the function to be called as the handler.
     * Specified in the format `<function file name>.<handler name>`, for example, `index.myFunction`.
     * 
* * string entrypoint = 7; * @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 = 8; private yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources resources_; /** *
     * Resources allocated to the version.
     * 
* * .yandex.cloud.serverless.functions.v1.Resources resources = 8; * @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 = 8; * @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 = 8; */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ResourcesOrBuilder getResourcesOrBuilder() { return getResources(); } public static final int EXECUTION_TIMEOUT_FIELD_NUMBER = 9; 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 = 9; * @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 = 9; * @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 = 9; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { return getExecutionTimeout(); } public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 10; private volatile java.lang.Object serviceAccountId_; /** *
     * ID of the service account associated with the version.
     * 
* * string service_account_id = 10; * @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 associated with the version.
     * 
* * string service_account_id = 10; * @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 IMAGE_SIZE_FIELD_NUMBER = 12; private long imageSize_; /** *
     * Final size of the deployment package after unpacking.
     * 
* * int64 image_size = 12; * @return The imageSize. */ @java.lang.Override public long getImageSize() { return imageSize_; } public static final int STATUS_FIELD_NUMBER = 13; private int status_; /** *
     * Status of the version.
     * 
* * .yandex.cloud.serverless.functions.v1.Version.Status status = 13; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
     * Status of the version.
     * 
* * .yandex.cloud.serverless.functions.v1.Version.Status status = 13; * @return The status. */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.Status result = yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.Status.valueOf(status_); return result == null ? yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.Status.UNRECOGNIZED : result; } public static final int TAGS_FIELD_NUMBER = 14; private com.google.protobuf.LazyStringList tags_; /** *
     * Version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
     * 
* * repeated string tags = 14; * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** *
     * Version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
     * 
* * repeated string tags = 14; * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** *
     * Version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
     * 
* * repeated string tags = 14; * @param index The index of the element to return. * @return The tags at the given index. */ public java.lang.String getTags(int index) { return tags_.get(index); } /** *
     * Version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
     * 
* * repeated string tags = 14; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } public static final int LOG_GROUP_ID_FIELD_NUMBER = 15; private volatile java.lang.Object logGroupId_; /** *
     * ID of the log group for the version.
     * 
* * string log_group_id = 15; * @return The logGroupId. */ @java.lang.Override public java.lang.String getLogGroupId() { java.lang.Object ref = logGroupId_; 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(); logGroupId_ = s; return s; } } /** *
     * ID of the log group for the version.
     * 
* * string log_group_id = 15; * @return The bytes for logGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getLogGroupIdBytes() { java.lang.Object ref = logGroupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); logGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENVIRONMENT_FIELD_NUMBER = 16; 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.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Version_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 = 16; */ @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 = 16; */ @java.lang.Override public java.util.Map getEnvironmentMap() { return internalGetEnvironment().getMap(); } /** *
     * Environment settings for the version.
     * 
* * map<string, string> environment = 16; */ @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 = 16; */ @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 CONNECTIVITY_FIELD_NUMBER = 17; private yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity connectivity_; /** *
     * Network access. 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; } /** *
     * Network access. 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_; } /** *
     * Network access. 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 = 18; 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.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Version_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 = 18; */ @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 = 18; */ @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 = 18; */ @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 = 18; */ @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 = 19; private java.util.List secrets_; /** *
     * Yandex Lockbox secrets to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.Secret secrets = 19; */ @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 = 19; */ @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 = 19; */ @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 = 19; */ @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 = 19; */ @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 = 20; private yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions logOptions_; /** *
     * Options for logging from the function
     * 
* * .yandex.cloud.serverless.functions.v1.LogOptions log_options = 20; * @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 = 20; * @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 = 20; */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptionsOrBuilder getLogOptionsOrBuilder() { return getLogOptions(); } public static final int STORAGE_MOUNTS_FIELD_NUMBER = 21; private java.util.List storageMounts_; /** *
     * S3 mounts to be used by the version.
     * 
* * repeated .yandex.cloud.serverless.functions.v1.StorageMount storage_mounts = 21; */ @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 = 21; */ @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 = 21; */ @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 = 21; */ @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 = 21; */ @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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, functionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (createdAt_ != null) { output.writeMessage(5, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtime_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, runtime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entrypoint_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, entrypoint_); } if (resources_ != null) { output.writeMessage(8, getResources()); } if (executionTimeout_ != null) { output.writeMessage(9, getExecutionTimeout()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, serviceAccountId_); } if (imageSize_ != 0L) { output.writeInt64(12, imageSize_); } if (status_ != yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.Status.STATUS_UNSPECIFIED.getNumber()) { output.writeEnum(13, status_); } for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, tags_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logGroupId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, logGroupId_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetEnvironment(), EnvironmentDefaultEntryHolder.defaultEntry, 16); if (connectivity_ != null) { output.writeMessage(17, getConnectivity()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetNamedServiceAccounts(), NamedServiceAccountsDefaultEntryHolder.defaultEntry, 18); for (int i = 0; i < secrets_.size(); i++) { output.writeMessage(19, secrets_.get(i)); } if (logOptions_ != null) { output.writeMessage(20, getLogOptions()); } for (int i = 0; i < storageMounts_.size(); i++) { output.writeMessage(21, 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(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, functionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtime_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, runtime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entrypoint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, entrypoint_); } if (resources_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getResources()); } if (executionTimeout_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getExecutionTimeout()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, serviceAccountId_); } if (imageSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(12, imageSize_); } if (status_ != yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.Status.STATUS_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(13, status_); } { int dataSize = 0; for (int i = 0; i < tags_.size(); i++) { dataSize += computeStringSizeNoTag(tags_.getRaw(i)); } size += dataSize; size += 1 * getTagsList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logGroupId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, logGroupId_); } 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(16, environment__); } if (connectivity_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, getConnectivity()); } 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(18, namedServiceAccounts__); } for (int i = 0; i < secrets_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, secrets_.get(i)); } if (logOptions_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, getLogOptions()); } for (int i = 0; i < storageMounts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, 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.FunctionOuterClass.Version)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version other = (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version) obj; if (!getId() .equals(other.getId())) return false; if (!getFunctionId() .equals(other.getFunctionId())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (!getRuntime() .equals(other.getRuntime())) 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 (getImageSize() != other.getImageSize()) return false; if (status_ != other.status_) return false; if (!getTagsList() .equals(other.getTagsList())) return false; if (!getLogGroupId() .equals(other.getLogGroupId())) return false; if (!internalGetEnvironment().equals( other.internalGetEnvironment())) 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 (!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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + FUNCTION_ID_FIELD_NUMBER; hash = (53 * hash) + getFunctionId().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } hash = (37 * hash) + RUNTIME_FIELD_NUMBER; hash = (53 * hash) + getRuntime().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(); hash = (37 * hash) + IMAGE_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getImageSize()); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; if (getTagsCount() > 0) { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + getTagsList().hashCode(); } hash = (37 * hash) + LOG_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getLogGroupId().hashCode(); if (!internalGetEnvironment().getMap().isEmpty()) { hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; hash = (53 * hash) + internalGetEnvironment().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(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version 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.FunctionOuterClass.Version parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version 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.FunctionOuterClass.Version parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version 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.FunctionOuterClass.Version 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.FunctionOuterClass.Version 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.FunctionOuterClass.Version 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.FunctionOuterClass.Version 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.FunctionOuterClass.Version 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.FunctionOuterClass.Version 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.FunctionOuterClass.Version 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; } /** *
     * Version of a function. For details about the concept, see [Function versions](/docs/functions/concepts/function#version).
     * 
* * Protobuf type {@code yandex.cloud.serverless.functions.v1.Version} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.Version) yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.VersionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Version_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 16: return internalGetEnvironment(); case 18: return internalGetNamedServiceAccounts(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 16: return internalGetMutableEnvironment(); case 18: 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.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Version_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.class, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.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(); id_ = ""; functionId_ = ""; description_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } runtime_ = ""; entrypoint_ = ""; if (resourcesBuilder_ == null) { resources_ = null; } else { resources_ = null; resourcesBuilder_ = null; } if (executionTimeoutBuilder_ == null) { executionTimeout_ = null; } else { executionTimeout_ = null; executionTimeoutBuilder_ = null; } serviceAccountId_ = ""; imageSize_ = 0L; status_ = 0; tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); logGroupId_ = ""; internalGetMutableEnvironment().clear(); 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(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Version_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version build() { yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version result = new yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.functionId_ = functionId_; result.description_ = description_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } result.runtime_ = runtime_; 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_; result.imageSize_ = imageSize_; result.status_ = status_; if (((bitField0_ & 0x00000001) != 0)) { tags_ = tags_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.tags_ = tags_; result.logGroupId_ = logGroupId_; result.environment_ = internalGetEnvironment(); result.environment_.makeImmutable(); 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(); } 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.FunctionOuterClass.Version) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getFunctionId().isEmpty()) { functionId_ = other.functionId_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (!other.getRuntime().isEmpty()) { runtime_ = other.runtime_; 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(); } if (other.getImageSize() != 0L) { setImageSize(other.getImageSize()); } if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); } onChanged(); } if (!other.getLogGroupId().isEmpty()) { logGroupId_ = other.logGroupId_; onChanged(); } internalGetMutableEnvironment().mergeFrom( other.internalGetEnvironment()); 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_); } } } 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.FunctionOuterClass.Version parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * ID of the version.
       * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the version.
       * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the version.
       * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * ID of the version.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the version.
       * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object functionId_ = ""; /** *
       * ID of the function that the version belongs to.
       * 
* * string function_id = 2; * @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 version belongs to.
       * 
* * string function_id = 2; * @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 version belongs to.
       * 
* * 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(); } functionId_ = value; onChanged(); return this; } /** *
       * ID of the function that the version belongs to.
       * 
* * string function_id = 2; * @return This builder for chaining. */ public Builder clearFunctionId() { functionId_ = getDefaultInstance().getFunctionId(); onChanged(); return this; } /** *
       * ID of the function that the version belongs to.
       * 
* * 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); functionId_ = 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 com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
       * Creation timestamp for the version.
       * 
* * .google.protobuf.Timestamp created_at = 5; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Creation timestamp for the version.
       * 
* * .google.protobuf.Timestamp created_at = 5; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
       * Creation timestamp for the version.
       * 
* * .google.protobuf.Timestamp created_at = 5; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
       * Creation timestamp for the version.
       * 
* * .google.protobuf.Timestamp created_at = 5; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Creation timestamp for the version.
       * 
* * .google.protobuf.Timestamp created_at = 5; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
       * Creation timestamp for the version.
       * 
* * .google.protobuf.Timestamp created_at = 5; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Creation timestamp for the version.
       * 
* * .google.protobuf.Timestamp created_at = 5; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Creation timestamp for the version.
       * 
* * .google.protobuf.Timestamp created_at = 5; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
       * Creation timestamp for the version.
       * 
* * .google.protobuf.Timestamp created_at = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private java.lang.Object runtime_ = ""; /** *
       * ID of the runtime environment for the function.
       * Supported environments and their identifiers are listed in the [Runtime environments](/docs/functions/concepts/runtime).
       * 
* * string runtime = 6; * @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; } } /** *
       * ID of the runtime environment for the function.
       * Supported environments and their identifiers are listed in the [Runtime environments](/docs/functions/concepts/runtime).
       * 
* * string runtime = 6; * @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; } } /** *
       * ID of the runtime environment for the function.
       * Supported environments and their identifiers are listed in the [Runtime environments](/docs/functions/concepts/runtime).
       * 
* * string runtime = 6; * @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; } /** *
       * ID of the runtime environment for the function.
       * Supported environments and their identifiers are listed in the [Runtime environments](/docs/functions/concepts/runtime).
       * 
* * string runtime = 6; * @return This builder for chaining. */ public Builder clearRuntime() { runtime_ = getDefaultInstance().getRuntime(); onChanged(); return this; } /** *
       * ID of the runtime environment for the function.
       * Supported environments and their identifiers are listed in the [Runtime environments](/docs/functions/concepts/runtime).
       * 
* * string runtime = 6; * @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 entrypoint_ = ""; /** *
       * Entrypoint for the function: the name of the function to be called as the handler.
       * Specified in the format `<function file name>.<handler name>`, for example, `index.myFunction`.
       * 
* * string entrypoint = 7; * @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 for the function: the name of the function to be called as the handler.
       * Specified in the format `<function file name>.<handler name>`, for example, `index.myFunction`.
       * 
* * string entrypoint = 7; * @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 for the function: the name of the function to be called as the handler.
       * Specified in the format `<function file name>.<handler name>`, for example, `index.myFunction`.
       * 
* * string entrypoint = 7; * @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 for the function: the name of the function to be called as the handler.
       * Specified in the format `<function file name>.<handler name>`, for example, `index.myFunction`.
       * 
* * string entrypoint = 7; * @return This builder for chaining. */ public Builder clearEntrypoint() { entrypoint_ = getDefaultInstance().getEntrypoint(); onChanged(); return this; } /** *
       * Entrypoint for the function: the name of the function to be called as the handler.
       * Specified in the format `<function file name>.<handler name>`, for example, `index.myFunction`.
       * 
* * string entrypoint = 7; * @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 = 8; * @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 = 8; * @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 = 8; */ 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 = 8; */ 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 = 8; */ 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 = 8; */ 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 = 8; */ 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 = 8; */ 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 = 8; */ 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 = 9; * @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 = 9; * @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 = 9; */ 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 = 9; */ 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 = 9; */ 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 = 9; */ 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 = 9; */ 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 = 9; */ 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 = 9; */ 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 associated with the version.
       * 
* * string service_account_id = 10; * @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 associated with the version.
       * 
* * string service_account_id = 10; * @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 associated with the version.
       * 
* * string service_account_id = 10; * @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 associated with the version.
       * 
* * string service_account_id = 10; * @return This builder for chaining. */ public Builder clearServiceAccountId() { serviceAccountId_ = getDefaultInstance().getServiceAccountId(); onChanged(); return this; } /** *
       * ID of the service account associated with the version.
       * 
* * string service_account_id = 10; * @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 long imageSize_ ; /** *
       * Final size of the deployment package after unpacking.
       * 
* * int64 image_size = 12; * @return The imageSize. */ @java.lang.Override public long getImageSize() { return imageSize_; } /** *
       * Final size of the deployment package after unpacking.
       * 
* * int64 image_size = 12; * @param value The imageSize to set. * @return This builder for chaining. */ public Builder setImageSize(long value) { imageSize_ = value; onChanged(); return this; } /** *
       * Final size of the deployment package after unpacking.
       * 
* * int64 image_size = 12; * @return This builder for chaining. */ public Builder clearImageSize() { imageSize_ = 0L; onChanged(); return this; } private int status_ = 0; /** *
       * Status of the version.
       * 
* * .yandex.cloud.serverless.functions.v1.Version.Status status = 13; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** *
       * Status of the version.
       * 
* * .yandex.cloud.serverless.functions.v1.Version.Status status = 13; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** *
       * Status of the version.
       * 
* * .yandex.cloud.serverless.functions.v1.Version.Status status = 13; * @return The status. */ @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.Status getStatus() { @SuppressWarnings("deprecation") yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.Status result = yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.Status.valueOf(status_); return result == null ? yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.Status.UNRECOGNIZED : result; } /** *
       * Status of the version.
       * 
* * .yandex.cloud.serverless.functions.v1.Version.Status status = 13; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version.Status value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** *
       * Status of the version.
       * 
* * .yandex.cloud.serverless.functions.v1.Version.Status status = 13; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTagsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); bitField0_ |= 0x00000001; } } /** *
       * Version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
       * 
* * repeated string tags = 14; * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_.getUnmodifiableView(); } /** *
       * Version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
       * 
* * repeated string tags = 14; * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** *
       * Version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
       * 
* * repeated string tags = 14; * @param index The index of the element to return. * @return The tags at the given index. */ public java.lang.String getTags(int index) { return tags_.get(index); } /** *
       * Version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
       * 
* * repeated string tags = 14; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** *
       * Version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
       * 
* * repeated string tags = 14; * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ public Builder setTags( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.set(index, value); onChanged(); return this; } /** *
       * Version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
       * 
* * repeated string tags = 14; * @param value The tags to add. * @return This builder for chaining. */ public Builder addTags( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } /** *
       * Version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
       * 
* * repeated string tags = 14; * @param values The tags to add. * @return This builder for chaining. */ public Builder addAllTags( java.lang.Iterable values) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tags_); onChanged(); return this; } /** *
       * Version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
       * 
* * repeated string tags = 14; * @return This builder for chaining. */ public Builder clearTags() { tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Version tags. For details, see [Version tag](/docs/functions/concepts/function#tag).
       * 
* * repeated string tags = 14; * @param value The bytes of the tags to add. * @return This builder for chaining. */ public Builder addTagsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } private java.lang.Object logGroupId_ = ""; /** *
       * ID of the log group for the version.
       * 
* * string log_group_id = 15; * @return The logGroupId. */ public java.lang.String getLogGroupId() { java.lang.Object ref = logGroupId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logGroupId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the log group for the version.
       * 
* * string log_group_id = 15; * @return The bytes for logGroupId. */ public com.google.protobuf.ByteString getLogGroupIdBytes() { java.lang.Object ref = logGroupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); logGroupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the log group for the version.
       * 
* * string log_group_id = 15; * @param value The logGroupId to set. * @return This builder for chaining. */ public Builder setLogGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } logGroupId_ = value; onChanged(); return this; } /** *
       * ID of the log group for the version.
       * 
* * string log_group_id = 15; * @return This builder for chaining. */ public Builder clearLogGroupId() { logGroupId_ = getDefaultInstance().getLogGroupId(); onChanged(); return this; } /** *
       * ID of the log group for the version.
       * 
* * string log_group_id = 15; * @param value The bytes for logGroupId to set. * @return This builder for chaining. */ public Builder setLogGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); logGroupId_ = 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 = 16; */ @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 = 16; */ @java.lang.Override public java.util.Map getEnvironmentMap() { return internalGetEnvironment().getMap(); } /** *
       * Environment settings for the version.
       * 
* * map<string, string> environment = 16; */ @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 = 16; */ @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 = 16; */ 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 = 16; */ 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 = 16; */ public Builder putAllEnvironment( java.util.Map values) { internalGetMutableEnvironment().getMutableMap() .putAll(values); 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_; /** *
       * Network access. 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; } /** *
       * Network access. 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(); } } /** *
       * Network access. 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; } /** *
       * Network access. 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; } /** *
       * Network access. 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; } /** *
       * Network access. 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; } /** *
       * Network access. 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(); } /** *
       * Network access. 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_; } } /** *
       * Network access. 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 = 18; */ @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 = 18; */ @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 = 18; */ @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 = 18; */ @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 = 18; */ 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 = 18; */ 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 = 18; */ 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 = 19; */ 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 = 19; */ 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 = 19; */ 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 = 19; */ 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 = 19; */ 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 = 19; */ 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 = 19; */ 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 = 19; */ 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 = 19; */ 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 = 19; */ 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 = 19; */ 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 = 19; */ 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 = 19; */ 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 = 19; */ 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 = 19; */ 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 = 19; */ 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 = 19; */ 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 = 19; */ 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 = 20; * @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 = 20; * @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 = 20; */ 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 = 20; */ 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 = 20; */ 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 = 20; */ 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 = 20; */ 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 = 20; */ 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 = 20; */ 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 = 21; */ 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 = 21; */ 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 = 21; */ 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 = 21; */ 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 = 21; */ 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 = 21; */ 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 = 21; */ 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 = 21; */ 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 = 21; */ 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 = 21; */ 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 = 21; */ 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 = 21; */ 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 = 21; */ 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 = 21; */ 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 = 21; */ 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 = 21; */ 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 = 21; */ 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 = 21; */ 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.Version) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.Version) private static final yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version(); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Version getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Version parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Version(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.FunctionOuterClass.Version getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourcesOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.Resources) com.google.protobuf.MessageOrBuilder { /** *
     * Amount of memory available to the version, specified in bytes, multiple of 128MB.
     * 
* * int64 memory = 1 [(.yandex.cloud.value) = "134217728-4294967296"]; * @return The memory. */ long getMemory(); } /** *
   * Resources allocated to a version.
   * 
* * Protobuf type {@code yandex.cloud.serverless.functions.v1.Resources} */ public static final class Resources extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.Resources) ResourcesOrBuilder { private static final long serialVersionUID = 0L; // Use Resources.newBuilder() to construct. private Resources(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Resources() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Resources(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Resources( 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 8: { memory_ = 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.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Resources_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Resources_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources.class, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources.Builder.class); } public static final int MEMORY_FIELD_NUMBER = 1; private long memory_; /** *
     * Amount of memory available to the version, specified in bytes, multiple of 128MB.
     * 
* * int64 memory = 1 [(.yandex.cloud.value) = "134217728-4294967296"]; * @return The memory. */ @java.lang.Override public long getMemory() { return memory_; } 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 (memory_ != 0L) { output.writeInt64(1, memory_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (memory_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, memory_); } 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.FunctionOuterClass.Resources)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources other = (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources) obj; if (getMemory() != other.getMemory()) 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) + MEMORY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMemory()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources 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.FunctionOuterClass.Resources parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources 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.FunctionOuterClass.Resources parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources 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.FunctionOuterClass.Resources 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.FunctionOuterClass.Resources 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.FunctionOuterClass.Resources 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.FunctionOuterClass.Resources 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.FunctionOuterClass.Resources 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.FunctionOuterClass.Resources 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.FunctionOuterClass.Resources 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; } /** *
     * Resources allocated to a version.
     * 
* * Protobuf type {@code yandex.cloud.serverless.functions.v1.Resources} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.Resources) yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ResourcesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Resources_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Resources_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources.class, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources.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(); memory_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Resources_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources build() { yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources result = new yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources(this); result.memory_ = memory_; 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.FunctionOuterClass.Resources) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources.getDefaultInstance()) return this; if (other.getMemory() != 0L) { setMemory(other.getMemory()); } 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.FunctionOuterClass.Resources parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long memory_ ; /** *
       * Amount of memory available to the version, specified in bytes, multiple of 128MB.
       * 
* * int64 memory = 1 [(.yandex.cloud.value) = "134217728-4294967296"]; * @return The memory. */ @java.lang.Override public long getMemory() { return memory_; } /** *
       * Amount of memory available to the version, specified in bytes, multiple of 128MB.
       * 
* * int64 memory = 1 [(.yandex.cloud.value) = "134217728-4294967296"]; * @param value The memory to set. * @return This builder for chaining. */ public Builder setMemory(long value) { memory_ = value; onChanged(); return this; } /** *
       * Amount of memory available to the version, specified in bytes, multiple of 128MB.
       * 
* * int64 memory = 1 [(.yandex.cloud.value) = "134217728-4294967296"]; * @return This builder for chaining. */ public Builder clearMemory() { memory_ = 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.Resources) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.Resources) private static final yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources(); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Resources getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Resources parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Resources(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.FunctionOuterClass.Resources getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PackageOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.Package) com.google.protobuf.MessageOrBuilder { /** *
     * Name of the bucket that stores the code for the version.
     * 
* * string bucket_name = 1 [(.yandex.cloud.required) = true]; * @return The bucketName. */ java.lang.String getBucketName(); /** *
     * Name of the bucket that stores the code for the version.
     * 
* * string bucket_name = 1 [(.yandex.cloud.required) = true]; * @return The bytes for bucketName. */ com.google.protobuf.ByteString getBucketNameBytes(); /** *
     * Name of the object in the bucket that stores the code for the version.
     * 
* * string object_name = 2 [(.yandex.cloud.required) = true]; * @return The objectName. */ java.lang.String getObjectName(); /** *
     * Name of the object in the bucket that stores the code for the version.
     * 
* * string object_name = 2 [(.yandex.cloud.required) = true]; * @return The bytes for objectName. */ com.google.protobuf.ByteString getObjectNameBytes(); /** *
     * SHA256 hash of the version deployment package.
     * 
* * string sha256 = 3; * @return The sha256. */ java.lang.String getSha256(); /** *
     * SHA256 hash of the version deployment package.
     * 
* * string sha256 = 3; * @return The bytes for sha256. */ com.google.protobuf.ByteString getSha256Bytes(); } /** *
   * Version deployment package.
   * 
* * Protobuf type {@code yandex.cloud.serverless.functions.v1.Package} */ public static final class Package extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.Package) PackageOrBuilder { private static final long serialVersionUID = 0L; // Use Package.newBuilder() to construct. private Package(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Package() { bucketName_ = ""; objectName_ = ""; sha256_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Package(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Package( 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(); bucketName_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); objectName_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); sha256_ = 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.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Package_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Package_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package.class, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package.Builder.class); } public static final int BUCKET_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object bucketName_; /** *
     * Name of the bucket that stores the code for the version.
     * 
* * string bucket_name = 1 [(.yandex.cloud.required) = true]; * @return The bucketName. */ @java.lang.Override public java.lang.String getBucketName() { java.lang.Object ref = bucketName_; 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(); bucketName_ = s; return s; } } /** *
     * Name of the bucket that stores the code for the version.
     * 
* * string bucket_name = 1 [(.yandex.cloud.required) = true]; * @return The bytes for bucketName. */ @java.lang.Override public com.google.protobuf.ByteString getBucketNameBytes() { java.lang.Object ref = bucketName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); bucketName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OBJECT_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object objectName_; /** *
     * Name of the object in the bucket that stores the code for the version.
     * 
* * string object_name = 2 [(.yandex.cloud.required) = true]; * @return The objectName. */ @java.lang.Override public java.lang.String getObjectName() { java.lang.Object ref = objectName_; 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(); objectName_ = s; return s; } } /** *
     * Name of the object in the bucket that stores the code for the version.
     * 
* * string object_name = 2 [(.yandex.cloud.required) = true]; * @return The bytes for objectName. */ @java.lang.Override public com.google.protobuf.ByteString getObjectNameBytes() { java.lang.Object ref = objectName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); objectName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SHA256_FIELD_NUMBER = 3; private volatile java.lang.Object sha256_; /** *
     * SHA256 hash of the version deployment package.
     * 
* * string sha256 = 3; * @return The sha256. */ @java.lang.Override public java.lang.String getSha256() { java.lang.Object ref = sha256_; 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(); sha256_ = s; return s; } } /** *
     * SHA256 hash of the version deployment package.
     * 
* * string sha256 = 3; * @return The bytes for sha256. */ @java.lang.Override public com.google.protobuf.ByteString getSha256Bytes() { java.lang.Object ref = sha256_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sha256_ = 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(bucketName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucketName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, objectName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sha256_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sha256_); } 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(bucketName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucketName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, objectName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sha256_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sha256_); } 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.FunctionOuterClass.Package)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package other = (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package) obj; if (!getBucketName() .equals(other.getBucketName())) return false; if (!getObjectName() .equals(other.getObjectName())) return false; if (!getSha256() .equals(other.getSha256())) 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) + BUCKET_NAME_FIELD_NUMBER; hash = (53 * hash) + getBucketName().hashCode(); hash = (37 * hash) + OBJECT_NAME_FIELD_NUMBER; hash = (53 * hash) + getObjectName().hashCode(); hash = (37 * hash) + SHA256_FIELD_NUMBER; hash = (53 * hash) + getSha256().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package 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.FunctionOuterClass.Package parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package 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.FunctionOuterClass.Package parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package 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.FunctionOuterClass.Package 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.FunctionOuterClass.Package 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.FunctionOuterClass.Package 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.FunctionOuterClass.Package 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.FunctionOuterClass.Package 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.FunctionOuterClass.Package 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.FunctionOuterClass.Package 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; } /** *
     * Version deployment package.
     * 
* * Protobuf type {@code yandex.cloud.serverless.functions.v1.Package} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.Package) yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.PackageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Package_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Package_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package.class, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package.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(); bucketName_ = ""; objectName_ = ""; sha256_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Package_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package build() { yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package result = new yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package(this); result.bucketName_ = bucketName_; result.objectName_ = objectName_; result.sha256_ = sha256_; 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.FunctionOuterClass.Package) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package.getDefaultInstance()) return this; if (!other.getBucketName().isEmpty()) { bucketName_ = other.bucketName_; onChanged(); } if (!other.getObjectName().isEmpty()) { objectName_ = other.objectName_; onChanged(); } if (!other.getSha256().isEmpty()) { sha256_ = other.sha256_; 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.FunctionOuterClass.Package parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object bucketName_ = ""; /** *
       * Name of the bucket that stores the code for the version.
       * 
* * string bucket_name = 1 [(.yandex.cloud.required) = true]; * @return The bucketName. */ public java.lang.String getBucketName() { java.lang.Object ref = bucketName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucketName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the bucket that stores the code for the version.
       * 
* * string bucket_name = 1 [(.yandex.cloud.required) = true]; * @return The bytes for bucketName. */ public com.google.protobuf.ByteString getBucketNameBytes() { java.lang.Object ref = bucketName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); bucketName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the bucket that stores the code for the version.
       * 
* * string bucket_name = 1 [(.yandex.cloud.required) = true]; * @param value The bucketName to set. * @return This builder for chaining. */ public Builder setBucketName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bucketName_ = value; onChanged(); return this; } /** *
       * Name of the bucket that stores the code for the version.
       * 
* * string bucket_name = 1 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearBucketName() { bucketName_ = getDefaultInstance().getBucketName(); onChanged(); return this; } /** *
       * Name of the bucket that stores the code for the version.
       * 
* * string bucket_name = 1 [(.yandex.cloud.required) = true]; * @param value The bytes for bucketName to set. * @return This builder for chaining. */ public Builder setBucketNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bucketName_ = value; onChanged(); return this; } private java.lang.Object objectName_ = ""; /** *
       * Name of the object in the bucket that stores the code for the version.
       * 
* * string object_name = 2 [(.yandex.cloud.required) = true]; * @return The objectName. */ public java.lang.String getObjectName() { java.lang.Object ref = objectName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); objectName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the object in the bucket that stores the code for the version.
       * 
* * string object_name = 2 [(.yandex.cloud.required) = true]; * @return The bytes for objectName. */ public com.google.protobuf.ByteString getObjectNameBytes() { java.lang.Object ref = objectName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); objectName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the object in the bucket that stores the code for the version.
       * 
* * string object_name = 2 [(.yandex.cloud.required) = true]; * @param value The objectName to set. * @return This builder for chaining. */ public Builder setObjectName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } objectName_ = value; onChanged(); return this; } /** *
       * Name of the object in the bucket that stores the code for the version.
       * 
* * string object_name = 2 [(.yandex.cloud.required) = true]; * @return This builder for chaining. */ public Builder clearObjectName() { objectName_ = getDefaultInstance().getObjectName(); onChanged(); return this; } /** *
       * Name of the object in the bucket that stores the code for the version.
       * 
* * string object_name = 2 [(.yandex.cloud.required) = true]; * @param value The bytes for objectName to set. * @return This builder for chaining. */ public Builder setObjectNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); objectName_ = value; onChanged(); return this; } private java.lang.Object sha256_ = ""; /** *
       * SHA256 hash of the version deployment package.
       * 
* * string sha256 = 3; * @return The sha256. */ public java.lang.String getSha256() { java.lang.Object ref = sha256_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sha256_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * SHA256 hash of the version deployment package.
       * 
* * string sha256 = 3; * @return The bytes for sha256. */ public com.google.protobuf.ByteString getSha256Bytes() { java.lang.Object ref = sha256_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sha256_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * SHA256 hash of the version deployment package.
       * 
* * string sha256 = 3; * @param value The sha256 to set. * @return This builder for chaining. */ public Builder setSha256( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sha256_ = value; onChanged(); return this; } /** *
       * SHA256 hash of the version deployment package.
       * 
* * string sha256 = 3; * @return This builder for chaining. */ public Builder clearSha256() { sha256_ = getDefaultInstance().getSha256(); onChanged(); return this; } /** *
       * SHA256 hash of the version deployment package.
       * 
* * string sha256 = 3; * @param value The bytes for sha256 to set. * @return This builder for chaining. */ public Builder setSha256Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sha256_ = 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.Package) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.Package) private static final yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package(); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Package getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Package parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Package(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.FunctionOuterClass.Package getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConnectivityOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.Connectivity) com.google.protobuf.MessageOrBuilder { /** *
     * Network the version will have access to.
     * It's essential to specify network with subnets in all availability zones.
     * 
* * string network_id = 1; * @return The networkId. */ java.lang.String getNetworkId(); /** *
     * Network the version will have access to.
     * It's essential to specify network with subnets in all availability zones.
     * 
* * string network_id = 1; * @return The bytes for networkId. */ com.google.protobuf.ByteString getNetworkIdBytes(); /** *
     * Complete list of subnets (from the same network) the version can be attached to.
     * It's essential to specify at least one subnet for each availability zones.
     * 
* * repeated string subnet_id = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true]; * @return A list containing the subnetId. */ java.util.List getSubnetIdList(); /** *
     * Complete list of subnets (from the same network) the version can be attached to.
     * It's essential to specify at least one subnet for each availability zones.
     * 
* * repeated string subnet_id = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true]; * @return The count of subnetId. */ int getSubnetIdCount(); /** *
     * Complete list of subnets (from the same network) the version can be attached to.
     * It's essential to specify at least one subnet for each availability zones.
     * 
* * repeated string subnet_id = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true]; * @param index The index of the element to return. * @return The subnetId at the given index. */ java.lang.String getSubnetId(int index); /** *
     * Complete list of subnets (from the same network) the version can be attached to.
     * It's essential to specify at least one subnet for each availability zones.
     * 
* * repeated string subnet_id = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true]; * @param index The index of the value to return. * @return The bytes of the subnetId at the given index. */ com.google.protobuf.ByteString getSubnetIdBytes(int index); } /** *
   * Version connectivity specification.
   * 
* * Protobuf type {@code yandex.cloud.serverless.functions.v1.Connectivity} */ public static final class Connectivity extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.Connectivity) ConnectivityOrBuilder { private static final long serialVersionUID = 0L; // Use Connectivity.newBuilder() to construct. private Connectivity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Connectivity() { networkId_ = ""; subnetId_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Connectivity(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Connectivity( 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(); networkId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { subnetId_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } subnetId_.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)) { subnetId_ = subnetId_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Connectivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Connectivity_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity.class, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity.Builder.class); } public static final int NETWORK_ID_FIELD_NUMBER = 1; private volatile java.lang.Object networkId_; /** *
     * Network the version will have access to.
     * It's essential to specify network with subnets in all availability zones.
     * 
* * string network_id = 1; * @return The networkId. */ @java.lang.Override public java.lang.String getNetworkId() { java.lang.Object ref = networkId_; 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(); networkId_ = s; return s; } } /** *
     * Network the version will have access to.
     * It's essential to specify network with subnets in all availability zones.
     * 
* * string network_id = 1; * @return The bytes for networkId. */ @java.lang.Override public com.google.protobuf.ByteString getNetworkIdBytes() { java.lang.Object ref = networkId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); networkId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUBNET_ID_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList subnetId_; /** *
     * Complete list of subnets (from the same network) the version can be attached to.
     * It's essential to specify at least one subnet for each availability zones.
     * 
* * repeated string subnet_id = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true]; * @return A list containing the subnetId. */ public com.google.protobuf.ProtocolStringList getSubnetIdList() { return subnetId_; } /** *
     * Complete list of subnets (from the same network) the version can be attached to.
     * It's essential to specify at least one subnet for each availability zones.
     * 
* * repeated string subnet_id = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true]; * @return The count of subnetId. */ public int getSubnetIdCount() { return subnetId_.size(); } /** *
     * Complete list of subnets (from the same network) the version can be attached to.
     * It's essential to specify at least one subnet for each availability zones.
     * 
* * repeated string subnet_id = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true]; * @param index The index of the element to return. * @return The subnetId at the given index. */ public java.lang.String getSubnetId(int index) { return subnetId_.get(index); } /** *
     * Complete list of subnets (from the same network) the version can be attached to.
     * It's essential to specify at least one subnet for each availability zones.
     * 
* * repeated string subnet_id = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true]; * @param index The index of the value to return. * @return The bytes of the subnetId at the given index. */ public com.google.protobuf.ByteString getSubnetIdBytes(int index) { return subnetId_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, networkId_); } for (int i = 0; i < subnetId_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnetId_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, networkId_); } { int dataSize = 0; for (int i = 0; i < subnetId_.size(); i++) { dataSize += computeStringSizeNoTag(subnetId_.getRaw(i)); } size += dataSize; size += 1 * getSubnetIdList().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.FunctionOuterClass.Connectivity)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity other = (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity) obj; if (!getNetworkId() .equals(other.getNetworkId())) return false; if (!getSubnetIdList() .equals(other.getSubnetIdList())) 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) + NETWORK_ID_FIELD_NUMBER; hash = (53 * hash) + getNetworkId().hashCode(); if (getSubnetIdCount() > 0) { hash = (37 * hash) + SUBNET_ID_FIELD_NUMBER; hash = (53 * hash) + getSubnetIdList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity 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.FunctionOuterClass.Connectivity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity 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.FunctionOuterClass.Connectivity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity 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.FunctionOuterClass.Connectivity 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.FunctionOuterClass.Connectivity 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.FunctionOuterClass.Connectivity 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.FunctionOuterClass.Connectivity 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.FunctionOuterClass.Connectivity 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.FunctionOuterClass.Connectivity 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.FunctionOuterClass.Connectivity 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; } /** *
     * Version connectivity specification.
     * 
* * Protobuf type {@code yandex.cloud.serverless.functions.v1.Connectivity} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.Connectivity) yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ConnectivityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Connectivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Connectivity_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity.class, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity.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(); networkId_ = ""; subnetId_ = 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.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Connectivity_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity build() { yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity result = new yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity(this); int from_bitField0_ = bitField0_; result.networkId_ = networkId_; if (((bitField0_ & 0x00000001) != 0)) { subnetId_ = subnetId_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.subnetId_ = subnetId_; 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.FunctionOuterClass.Connectivity) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity.getDefaultInstance()) return this; if (!other.getNetworkId().isEmpty()) { networkId_ = other.networkId_; onChanged(); } if (!other.subnetId_.isEmpty()) { if (subnetId_.isEmpty()) { subnetId_ = other.subnetId_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSubnetIdIsMutable(); subnetId_.addAll(other.subnetId_); } 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.FunctionOuterClass.Connectivity parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object networkId_ = ""; /** *
       * Network the version will have access to.
       * It's essential to specify network with subnets in all availability zones.
       * 
* * string network_id = 1; * @return The networkId. */ public java.lang.String getNetworkId() { java.lang.Object ref = networkId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); networkId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Network the version will have access to.
       * It's essential to specify network with subnets in all availability zones.
       * 
* * string network_id = 1; * @return The bytes for networkId. */ public com.google.protobuf.ByteString getNetworkIdBytes() { java.lang.Object ref = networkId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); networkId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Network the version will have access to.
       * It's essential to specify network with subnets in all availability zones.
       * 
* * string network_id = 1; * @param value The networkId to set. * @return This builder for chaining. */ public Builder setNetworkId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } networkId_ = value; onChanged(); return this; } /** *
       * Network the version will have access to.
       * It's essential to specify network with subnets in all availability zones.
       * 
* * string network_id = 1; * @return This builder for chaining. */ public Builder clearNetworkId() { networkId_ = getDefaultInstance().getNetworkId(); onChanged(); return this; } /** *
       * Network the version will have access to.
       * It's essential to specify network with subnets in all availability zones.
       * 
* * string network_id = 1; * @param value The bytes for networkId to set. * @return This builder for chaining. */ public Builder setNetworkIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); networkId_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList subnetId_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSubnetIdIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { subnetId_ = new com.google.protobuf.LazyStringArrayList(subnetId_); bitField0_ |= 0x00000001; } } /** *
       * Complete list of subnets (from the same network) the version can be attached to.
       * It's essential to specify at least one subnet for each availability zones.
       * 
* * repeated string subnet_id = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true]; * @return A list containing the subnetId. */ public com.google.protobuf.ProtocolStringList getSubnetIdList() { return subnetId_.getUnmodifiableView(); } /** *
       * Complete list of subnets (from the same network) the version can be attached to.
       * It's essential to specify at least one subnet for each availability zones.
       * 
* * repeated string subnet_id = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true]; * @return The count of subnetId. */ public int getSubnetIdCount() { return subnetId_.size(); } /** *
       * Complete list of subnets (from the same network) the version can be attached to.
       * It's essential to specify at least one subnet for each availability zones.
       * 
* * repeated string subnet_id = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true]; * @param index The index of the element to return. * @return The subnetId at the given index. */ public java.lang.String getSubnetId(int index) { return subnetId_.get(index); } /** *
       * Complete list of subnets (from the same network) the version can be attached to.
       * It's essential to specify at least one subnet for each availability zones.
       * 
* * repeated string subnet_id = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true]; * @param index The index of the value to return. * @return The bytes of the subnetId at the given index. */ public com.google.protobuf.ByteString getSubnetIdBytes(int index) { return subnetId_.getByteString(index); } /** *
       * Complete list of subnets (from the same network) the version can be attached to.
       * It's essential to specify at least one subnet for each availability zones.
       * 
* * repeated string subnet_id = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true]; * @param index The index to set the value at. * @param value The subnetId to set. * @return This builder for chaining. */ public Builder setSubnetId( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSubnetIdIsMutable(); subnetId_.set(index, value); onChanged(); return this; } /** *
       * Complete list of subnets (from the same network) the version can be attached to.
       * It's essential to specify at least one subnet for each availability zones.
       * 
* * repeated string subnet_id = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true]; * @param value The subnetId to add. * @return This builder for chaining. */ public Builder addSubnetId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSubnetIdIsMutable(); subnetId_.add(value); onChanged(); return this; } /** *
       * Complete list of subnets (from the same network) the version can be attached to.
       * It's essential to specify at least one subnet for each availability zones.
       * 
* * repeated string subnet_id = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true]; * @param values The subnetId to add. * @return This builder for chaining. */ public Builder addAllSubnetId( java.lang.Iterable values) { ensureSubnetIdIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, subnetId_); onChanged(); return this; } /** *
       * Complete list of subnets (from the same network) the version can be attached to.
       * It's essential to specify at least one subnet for each availability zones.
       * 
* * repeated string subnet_id = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true]; * @return This builder for chaining. */ public Builder clearSubnetId() { subnetId_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Complete list of subnets (from the same network) the version can be attached to.
       * It's essential to specify at least one subnet for each availability zones.
       * 
* * repeated string subnet_id = 2 [(.yandex.cloud.length) = ">0", (.yandex.cloud.unique) = true]; * @param value The bytes of the subnetId to add. * @return This builder for chaining. */ public Builder addSubnetIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSubnetIdIsMutable(); subnetId_.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.Connectivity) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.Connectivity) private static final yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity(); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Connectivity getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Connectivity parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Connectivity(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.FunctionOuterClass.Connectivity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScalingPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.ScalingPolicy) com.google.protobuf.MessageOrBuilder { /** *
     * ID of the function that the scaling policy belongs to.
     * 
* * string function_id = 1; * @return The functionId. */ java.lang.String getFunctionId(); /** *
     * ID of the function that the scaling policy belongs to.
     * 
* * string function_id = 1; * @return The bytes for functionId. */ com.google.protobuf.ByteString getFunctionIdBytes(); /** *
     * Tag of the version that the scaling policy belongs to. For details, see [Version tag](/docs/functions/concepts/function#tag).
     * 
* * string tag = 2; * @return The tag. */ java.lang.String getTag(); /** *
     * Tag of the version that the scaling policy belongs to. For details, see [Version tag](/docs/functions/concepts/function#tag).
     * 
* * string tag = 2; * @return The bytes for tag. */ com.google.protobuf.ByteString getTagBytes(); /** *
     * Creation timestamp for the scaling policy
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ boolean hasCreatedAt(); /** *
     * Creation timestamp for the scaling policy
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ com.google.protobuf.Timestamp getCreatedAt(); /** *
     * Creation timestamp for the scaling policy
     * 
* * .google.protobuf.Timestamp created_at = 3; */ com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); /** *
     * Modification timestamp for the scaling policy
     * 
* * .google.protobuf.Timestamp modified_at = 4; * @return Whether the modifiedAt field is set. */ boolean hasModifiedAt(); /** *
     * Modification timestamp for the scaling policy
     * 
* * .google.protobuf.Timestamp modified_at = 4; * @return The modifiedAt. */ com.google.protobuf.Timestamp getModifiedAt(); /** *
     * Modification timestamp for the scaling policy
     * 
* * .google.protobuf.Timestamp modified_at = 4; */ com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder(); /** *
     * Minimum guaranteed provisioned instances count for all zones in total.
     * Billed separately.
     * 
* * int64 provisioned_instances_count = 6; * @return The provisionedInstancesCount. */ long getProvisionedInstancesCount(); /** *
     * Upper limit for instance count in each zone.
     * 0 means no limit.
     * 
* * int64 zone_instances_limit = 7; * @return The zoneInstancesLimit. */ long getZoneInstancesLimit(); /** *
     * Upper limit of requests count in each zone.
     * 0 means no limit.
     * 
* * int64 zone_requests_limit = 8; * @return The zoneRequestsLimit. */ long getZoneRequestsLimit(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.ScalingPolicy} */ public static final class ScalingPolicy extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.ScalingPolicy) ScalingPolicyOrBuilder { private static final long serialVersionUID = 0L; // Use ScalingPolicy.newBuilder() to construct. private ScalingPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScalingPolicy() { functionId_ = ""; tag_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ScalingPolicy(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ScalingPolicy( 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: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } case 34: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (modifiedAt_ != null) { subBuilder = modifiedAt_.toBuilder(); } modifiedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(modifiedAt_); modifiedAt_ = subBuilder.buildPartial(); } break; } case 48: { provisionedInstancesCount_ = input.readInt64(); break; } case 56: { zoneInstancesLimit_ = input.readInt64(); break; } case 64: { 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.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ScalingPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ScalingPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy.class, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy.Builder.class); } public static final int FUNCTION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object functionId_; /** *
     * ID of the function that the scaling policy belongs to.
     * 
* * 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 scaling policy belongs to.
     * 
* * 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 TAG_FIELD_NUMBER = 2; private volatile java.lang.Object tag_; /** *
     * Tag of the version that the scaling policy belongs to. For details, see [Version tag](/docs/functions/concepts/function#tag).
     * 
* * 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 of the version that the scaling policy belongs to. For details, see [Version tag](/docs/functions/concepts/function#tag).
     * 
* * 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 CREATED_AT_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createdAt_; /** *
     * Creation timestamp for the scaling policy
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
     * Creation timestamp for the scaling policy
     * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
     * Creation timestamp for the scaling policy
     * 
* * .google.protobuf.Timestamp created_at = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int MODIFIED_AT_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp modifiedAt_; /** *
     * Modification timestamp for the scaling policy
     * 
* * .google.protobuf.Timestamp modified_at = 4; * @return Whether the modifiedAt field is set. */ @java.lang.Override public boolean hasModifiedAt() { return modifiedAt_ != null; } /** *
     * Modification timestamp for the scaling policy
     * 
* * .google.protobuf.Timestamp modified_at = 4; * @return The modifiedAt. */ @java.lang.Override public com.google.protobuf.Timestamp getModifiedAt() { return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_; } /** *
     * Modification timestamp for the scaling policy
     * 
* * .google.protobuf.Timestamp modified_at = 4; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() { return getModifiedAt(); } public static final int PROVISIONED_INSTANCES_COUNT_FIELD_NUMBER = 6; private long provisionedInstancesCount_; /** *
     * Minimum guaranteed provisioned instances count for all zones in total.
     * Billed separately.
     * 
* * int64 provisioned_instances_count = 6; * @return The provisionedInstancesCount. */ @java.lang.Override public long getProvisionedInstancesCount() { return provisionedInstancesCount_; } public static final int ZONE_INSTANCES_LIMIT_FIELD_NUMBER = 7; private long zoneInstancesLimit_; /** *
     * Upper limit for instance count in each zone.
     * 0 means no limit.
     * 
* * int64 zone_instances_limit = 7; * @return The zoneInstancesLimit. */ @java.lang.Override public long getZoneInstancesLimit() { return zoneInstancesLimit_; } public static final int ZONE_REQUESTS_LIMIT_FIELD_NUMBER = 8; private long zoneRequestsLimit_; /** *
     * Upper limit of requests count in each zone.
     * 0 means no limit.
     * 
* * int64 zone_requests_limit = 8; * @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 (createdAt_ != null) { output.writeMessage(3, getCreatedAt()); } if (modifiedAt_ != null) { output.writeMessage(4, getModifiedAt()); } if (provisionedInstancesCount_ != 0L) { output.writeInt64(6, provisionedInstancesCount_); } if (zoneInstancesLimit_ != 0L) { output.writeInt64(7, zoneInstancesLimit_); } if (zoneRequestsLimit_ != 0L) { output.writeInt64(8, 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 (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCreatedAt()); } if (modifiedAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getModifiedAt()); } if (provisionedInstancesCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, provisionedInstancesCount_); } if (zoneInstancesLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, zoneInstancesLimit_); } if (zoneRequestsLimit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, 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.FunctionOuterClass.ScalingPolicy)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy other = (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy) obj; if (!getFunctionId() .equals(other.getFunctionId())) return false; if (!getTag() .equals(other.getTag())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (hasModifiedAt() != other.hasModifiedAt()) return false; if (hasModifiedAt()) { if (!getModifiedAt() .equals(other.getModifiedAt())) 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(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } if (hasModifiedAt()) { hash = (37 * hash) + MODIFIED_AT_FIELD_NUMBER; hash = (53 * hash) + getModifiedAt().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.FunctionOuterClass.ScalingPolicy parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy 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.FunctionOuterClass.ScalingPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy 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.FunctionOuterClass.ScalingPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy 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.FunctionOuterClass.ScalingPolicy 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.FunctionOuterClass.ScalingPolicy 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.FunctionOuterClass.ScalingPolicy 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.FunctionOuterClass.ScalingPolicy 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.FunctionOuterClass.ScalingPolicy 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.FunctionOuterClass.ScalingPolicy 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.FunctionOuterClass.ScalingPolicy 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.ScalingPolicy} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.ScalingPolicy) yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ScalingPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ScalingPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy.class, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy.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_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } if (modifiedAtBuilder_ == null) { modifiedAt_ = null; } else { modifiedAt_ = null; modifiedAtBuilder_ = null; } 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.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_ScalingPolicy_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy build() { yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy result = new yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy(this); result.functionId_ = functionId_; result.tag_ = tag_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } if (modifiedAtBuilder_ == null) { result.modifiedAt_ = modifiedAt_; } else { result.modifiedAt_ = modifiedAtBuilder_.build(); } 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.FunctionOuterClass.ScalingPolicy) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy.getDefaultInstance()) return this; if (!other.getFunctionId().isEmpty()) { functionId_ = other.functionId_; onChanged(); } if (!other.getTag().isEmpty()) { tag_ = other.tag_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (other.hasModifiedAt()) { mergeModifiedAt(other.getModifiedAt()); } 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.FunctionOuterClass.ScalingPolicy parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object functionId_ = ""; /** *
       * ID of the function that the scaling policy belongs to.
       * 
* * 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 scaling policy belongs to.
       * 
* * 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 scaling policy belongs to.
       * 
* * 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 scaling policy belongs to.
       * 
* * string function_id = 1; * @return This builder for chaining. */ public Builder clearFunctionId() { functionId_ = getDefaultInstance().getFunctionId(); onChanged(); return this; } /** *
       * ID of the function that the scaling policy belongs to.
       * 
* * 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 tag_ = ""; /** *
       * Tag of the version that the scaling policy belongs to. For details, see [Version tag](/docs/functions/concepts/function#tag).
       * 
* * 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 of the version that the scaling policy belongs to. For details, see [Version tag](/docs/functions/concepts/function#tag).
       * 
* * 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 of the version that the scaling policy belongs to. For details, see [Version tag](/docs/functions/concepts/function#tag).
       * 
* * 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 of the version that the scaling policy belongs to. For details, see [Version tag](/docs/functions/concepts/function#tag).
       * 
* * string tag = 2; * @return This builder for chaining. */ public Builder clearTag() { tag_ = getDefaultInstance().getTag(); onChanged(); return this; } /** *
       * Tag of the version that the scaling policy belongs to. For details, see [Version tag](/docs/functions/concepts/function#tag).
       * 
* * 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 createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
       * Creation timestamp for the scaling policy
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
       * Creation timestamp for the scaling policy
       * 
* * .google.protobuf.Timestamp created_at = 3; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
       * Creation timestamp for the scaling policy
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
       * Creation timestamp for the scaling policy
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Creation timestamp for the scaling policy
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
       * Creation timestamp for the scaling policy
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
       * Creation timestamp for the scaling policy
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
       * Creation timestamp for the scaling policy
       * 
* * .google.protobuf.Timestamp created_at = 3; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
       * Creation timestamp for the scaling policy
       * 
* * .google.protobuf.Timestamp created_at = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private com.google.protobuf.Timestamp modifiedAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> modifiedAtBuilder_; /** *
       * Modification timestamp for the scaling policy
       * 
* * .google.protobuf.Timestamp modified_at = 4; * @return Whether the modifiedAt field is set. */ public boolean hasModifiedAt() { return modifiedAtBuilder_ != null || modifiedAt_ != null; } /** *
       * Modification timestamp for the scaling policy
       * 
* * .google.protobuf.Timestamp modified_at = 4; * @return The modifiedAt. */ public com.google.protobuf.Timestamp getModifiedAt() { if (modifiedAtBuilder_ == null) { return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_; } else { return modifiedAtBuilder_.getMessage(); } } /** *
       * Modification timestamp for the scaling policy
       * 
* * .google.protobuf.Timestamp modified_at = 4; */ public Builder setModifiedAt(com.google.protobuf.Timestamp value) { if (modifiedAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } modifiedAt_ = value; onChanged(); } else { modifiedAtBuilder_.setMessage(value); } return this; } /** *
       * Modification timestamp for the scaling policy
       * 
* * .google.protobuf.Timestamp modified_at = 4; */ public Builder setModifiedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (modifiedAtBuilder_ == null) { modifiedAt_ = builderForValue.build(); onChanged(); } else { modifiedAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Modification timestamp for the scaling policy
       * 
* * .google.protobuf.Timestamp modified_at = 4; */ public Builder mergeModifiedAt(com.google.protobuf.Timestamp value) { if (modifiedAtBuilder_ == null) { if (modifiedAt_ != null) { modifiedAt_ = com.google.protobuf.Timestamp.newBuilder(modifiedAt_).mergeFrom(value).buildPartial(); } else { modifiedAt_ = value; } onChanged(); } else { modifiedAtBuilder_.mergeFrom(value); } return this; } /** *
       * Modification timestamp for the scaling policy
       * 
* * .google.protobuf.Timestamp modified_at = 4; */ public Builder clearModifiedAt() { if (modifiedAtBuilder_ == null) { modifiedAt_ = null; onChanged(); } else { modifiedAt_ = null; modifiedAtBuilder_ = null; } return this; } /** *
       * Modification timestamp for the scaling policy
       * 
* * .google.protobuf.Timestamp modified_at = 4; */ public com.google.protobuf.Timestamp.Builder getModifiedAtBuilder() { onChanged(); return getModifiedAtFieldBuilder().getBuilder(); } /** *
       * Modification timestamp for the scaling policy
       * 
* * .google.protobuf.Timestamp modified_at = 4; */ public com.google.protobuf.TimestampOrBuilder getModifiedAtOrBuilder() { if (modifiedAtBuilder_ != null) { return modifiedAtBuilder_.getMessageOrBuilder(); } else { return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_; } } /** *
       * Modification timestamp for the scaling policy
       * 
* * .google.protobuf.Timestamp modified_at = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getModifiedAtFieldBuilder() { if (modifiedAtBuilder_ == null) { modifiedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getModifiedAt(), getParentForChildren(), isClean()); modifiedAt_ = null; } return modifiedAtBuilder_; } private long provisionedInstancesCount_ ; /** *
       * Minimum guaranteed provisioned instances count for all zones in total.
       * Billed separately.
       * 
* * int64 provisioned_instances_count = 6; * @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 = 6; * @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 = 6; * @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 = 7; * @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 = 7; * @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 = 7; * @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 = 8; * @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 = 8; * @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 = 8; * @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.ScalingPolicy) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.ScalingPolicy) private static final yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy(); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.ScalingPolicy getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ScalingPolicy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScalingPolicy(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.FunctionOuterClass.ScalingPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SecretOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.Secret) com.google.protobuf.MessageOrBuilder { /** *
     * ID of Yandex Lockbox secret.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of Yandex Lockbox secret.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * ID of Yandex Lockbox version.
     * 
* * string version_id = 2; * @return The versionId. */ java.lang.String getVersionId(); /** *
     * ID of Yandex Lockbox version.
     * 
* * string version_id = 2; * @return The bytes for versionId. */ com.google.protobuf.ByteString getVersionIdBytes(); /** *
     * Key in secret's payload, which value to be delivered into function environment.
     * 
* * string key = 3; * @return The key. */ java.lang.String getKey(); /** *
     * Key in secret's payload, which value to be delivered into function environment.
     * 
* * string key = 3; * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** *
     * environment variable in which secret's value to be delivered.
     * 
* * string environment_variable = 4; * @return Whether the environmentVariable field is set. */ boolean hasEnvironmentVariable(); /** *
     * environment variable in which secret's value to be delivered.
     * 
* * string environment_variable = 4; * @return The environmentVariable. */ java.lang.String getEnvironmentVariable(); /** *
     * environment variable in which secret's value to be delivered.
     * 
* * string environment_variable = 4; * @return The bytes for environmentVariable. */ com.google.protobuf.ByteString getEnvironmentVariableBytes(); public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret.ReferenceCase getReferenceCase(); } /** *
   * Secret for serverless function.
   * 
* * Protobuf type {@code yandex.cloud.serverless.functions.v1.Secret} */ public static final class Secret extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.Secret) SecretOrBuilder { private static final long serialVersionUID = 0L; // Use Secret.newBuilder() to construct. private Secret(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Secret() { id_ = ""; versionId_ = ""; key_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Secret(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Secret( 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(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); versionId_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); key_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); referenceCase_ = 4; reference_ = 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.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Secret_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Secret_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret.class, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret.Builder.class); } private int referenceCase_ = 0; private java.lang.Object reference_; public enum ReferenceCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ENVIRONMENT_VARIABLE(4), REFERENCE_NOT_SET(0); private final int value; private ReferenceCase(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 ReferenceCase valueOf(int value) { return forNumber(value); } public static ReferenceCase forNumber(int value) { switch (value) { case 4: return ENVIRONMENT_VARIABLE; case 0: return REFERENCE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ReferenceCase getReferenceCase() { return ReferenceCase.forNumber( referenceCase_); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of Yandex Lockbox secret.
     * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object 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(); id_ = s; return s; } } /** *
     * ID of Yandex Lockbox secret.
     * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VERSION_ID_FIELD_NUMBER = 2; private volatile java.lang.Object versionId_; /** *
     * ID of Yandex Lockbox version.
     * 
* * string version_id = 2; * @return The versionId. */ @java.lang.Override public java.lang.String getVersionId() { java.lang.Object ref = versionId_; 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(); versionId_ = s; return s; } } /** *
     * ID of Yandex Lockbox version.
     * 
* * string version_id = 2; * @return The bytes for versionId. */ @java.lang.Override public com.google.protobuf.ByteString getVersionIdBytes() { java.lang.Object ref = versionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); versionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KEY_FIELD_NUMBER = 3; private volatile java.lang.Object key_; /** *
     * Key in secret's payload, which value to be delivered into function environment.
     * 
* * string key = 3; * @return The key. */ @java.lang.Override public java.lang.String getKey() { java.lang.Object ref = key_; 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(); key_ = s; return s; } } /** *
     * Key in secret's payload, which value to be delivered into function environment.
     * 
* * string key = 3; * @return The bytes for key. */ @java.lang.Override public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENVIRONMENT_VARIABLE_FIELD_NUMBER = 4; /** *
     * environment variable in which secret's value to be delivered.
     * 
* * string environment_variable = 4; * @return Whether the environmentVariable field is set. */ public boolean hasEnvironmentVariable() { return referenceCase_ == 4; } /** *
     * environment variable in which secret's value to be delivered.
     * 
* * string environment_variable = 4; * @return The environmentVariable. */ public java.lang.String getEnvironmentVariable() { java.lang.Object ref = ""; if (referenceCase_ == 4) { ref = reference_; } 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 (referenceCase_ == 4) { reference_ = s; } return s; } } /** *
     * environment variable in which secret's value to be delivered.
     * 
* * string environment_variable = 4; * @return The bytes for environmentVariable. */ public com.google.protobuf.ByteString getEnvironmentVariableBytes() { java.lang.Object ref = ""; if (referenceCase_ == 4) { ref = reference_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (referenceCase_ == 4) { reference_ = 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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, versionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, key_); } if (referenceCase_ == 4) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, reference_); } 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(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, versionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, key_); } if (referenceCase_ == 4) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reference_); } 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.FunctionOuterClass.Secret)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret other = (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret) obj; if (!getId() .equals(other.getId())) return false; if (!getVersionId() .equals(other.getVersionId())) return false; if (!getKey() .equals(other.getKey())) return false; if (!getReferenceCase().equals(other.getReferenceCase())) return false; switch (referenceCase_) { case 4: if (!getEnvironmentVariable() .equals(other.getEnvironmentVariable())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + VERSION_ID_FIELD_NUMBER; hash = (53 * hash) + getVersionId().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); switch (referenceCase_) { case 4: hash = (37 * hash) + ENVIRONMENT_VARIABLE_FIELD_NUMBER; hash = (53 * hash) + getEnvironmentVariable().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret 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.FunctionOuterClass.Secret parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret 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.FunctionOuterClass.Secret parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret 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.FunctionOuterClass.Secret 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.FunctionOuterClass.Secret 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.FunctionOuterClass.Secret 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.FunctionOuterClass.Secret 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.FunctionOuterClass.Secret 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.FunctionOuterClass.Secret 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.FunctionOuterClass.Secret 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; } /** *
     * Secret for serverless function.
     * 
* * Protobuf type {@code yandex.cloud.serverless.functions.v1.Secret} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.Secret) yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.SecretOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Secret_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Secret_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret.class, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret.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(); id_ = ""; versionId_ = ""; key_ = ""; referenceCase_ = 0; reference_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_Secret_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret build() { yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret result = new yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret(this); result.id_ = id_; result.versionId_ = versionId_; result.key_ = key_; if (referenceCase_ == 4) { result.reference_ = reference_; } result.referenceCase_ = referenceCase_; 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.FunctionOuterClass.Secret) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getVersionId().isEmpty()) { versionId_ = other.versionId_; onChanged(); } if (!other.getKey().isEmpty()) { key_ = other.key_; onChanged(); } switch (other.getReferenceCase()) { case ENVIRONMENT_VARIABLE: { referenceCase_ = 4; reference_ = other.reference_; onChanged(); break; } case REFERENCE_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.FunctionOuterClass.Secret parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int referenceCase_ = 0; private java.lang.Object reference_; public ReferenceCase getReferenceCase() { return ReferenceCase.forNumber( referenceCase_); } public Builder clearReference() { referenceCase_ = 0; reference_ = null; onChanged(); return this; } private java.lang.Object id_ = ""; /** *
       * ID of Yandex Lockbox secret.
       * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of Yandex Lockbox secret.
       * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of Yandex Lockbox secret.
       * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * ID of Yandex Lockbox secret.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of Yandex Lockbox secret.
       * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object versionId_ = ""; /** *
       * ID of Yandex Lockbox version.
       * 
* * string version_id = 2; * @return The versionId. */ public java.lang.String getVersionId() { java.lang.Object ref = versionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); versionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of Yandex Lockbox version.
       * 
* * string version_id = 2; * @return The bytes for versionId. */ public com.google.protobuf.ByteString getVersionIdBytes() { java.lang.Object ref = versionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); versionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of Yandex Lockbox version.
       * 
* * string version_id = 2; * @param value The versionId to set. * @return This builder for chaining. */ public Builder setVersionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } versionId_ = value; onChanged(); return this; } /** *
       * ID of Yandex Lockbox version.
       * 
* * string version_id = 2; * @return This builder for chaining. */ public Builder clearVersionId() { versionId_ = getDefaultInstance().getVersionId(); onChanged(); return this; } /** *
       * ID of Yandex Lockbox version.
       * 
* * string version_id = 2; * @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); versionId_ = value; onChanged(); return this; } private java.lang.Object key_ = ""; /** *
       * Key in secret's payload, which value to be delivered into function environment.
       * 
* * string key = 3; * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Key in secret's payload, which value to be delivered into function environment.
       * 
* * string key = 3; * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Key in secret's payload, which value to be delivered into function environment.
       * 
* * string key = 3; * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** *
       * Key in secret's payload, which value to be delivered into function environment.
       * 
* * string key = 3; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** *
       * Key in secret's payload, which value to be delivered into function environment.
       * 
* * string key = 3; * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; onChanged(); return this; } /** *
       * environment variable in which secret's value to be delivered.
       * 
* * string environment_variable = 4; * @return Whether the environmentVariable field is set. */ @java.lang.Override public boolean hasEnvironmentVariable() { return referenceCase_ == 4; } /** *
       * environment variable in which secret's value to be delivered.
       * 
* * string environment_variable = 4; * @return The environmentVariable. */ @java.lang.Override public java.lang.String getEnvironmentVariable() { java.lang.Object ref = ""; if (referenceCase_ == 4) { ref = reference_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (referenceCase_ == 4) { reference_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * environment variable in which secret's value to be delivered.
       * 
* * string environment_variable = 4; * @return The bytes for environmentVariable. */ @java.lang.Override public com.google.protobuf.ByteString getEnvironmentVariableBytes() { java.lang.Object ref = ""; if (referenceCase_ == 4) { ref = reference_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (referenceCase_ == 4) { reference_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * environment variable in which secret's value to be delivered.
       * 
* * string environment_variable = 4; * @param value The environmentVariable to set. * @return This builder for chaining. */ public Builder setEnvironmentVariable( java.lang.String value) { if (value == null) { throw new NullPointerException(); } referenceCase_ = 4; reference_ = value; onChanged(); return this; } /** *
       * environment variable in which secret's value to be delivered.
       * 
* * string environment_variable = 4; * @return This builder for chaining. */ public Builder clearEnvironmentVariable() { if (referenceCase_ == 4) { referenceCase_ = 0; reference_ = null; onChanged(); } return this; } /** *
       * environment variable in which secret's value to be delivered.
       * 
* * string environment_variable = 4; * @param value The bytes for environmentVariable to set. * @return This builder for chaining. */ public Builder setEnvironmentVariableBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); referenceCase_ = 4; reference_ = 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.Secret) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.Secret) private static final yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret(); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.Secret getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Secret parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Secret(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.FunctionOuterClass.Secret getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LogOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.LogOptions) com.google.protobuf.MessageOrBuilder { /** *
     * Is logging from function disabled.
     * 
* * bool disabled = 1; * @return The disabled. */ boolean getDisabled(); /** *
     * Entry should be written to log group resolved by ID.
     * 
* * string log_group_id = 2 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"]; * @return Whether the logGroupId field is set. */ boolean hasLogGroupId(); /** *
     * Entry should be written to log group resolved by ID.
     * 
* * string log_group_id = 2 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"]; * @return The logGroupId. */ java.lang.String getLogGroupId(); /** *
     * Entry should be written to log group resolved by ID.
     * 
* * string log_group_id = 2 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"]; * @return The bytes for logGroupId. */ com.google.protobuf.ByteString getLogGroupIdBytes(); /** *
     * Entry should be written to default log group for specified folder.
     * 
* * string folder_id = 3 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"]; * @return Whether the folderId field is set. */ boolean hasFolderId(); /** *
     * Entry should be written to default log group for specified folder.
     * 
* * string folder_id = 3 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"]; * @return The folderId. */ java.lang.String getFolderId(); /** *
     * Entry should be written to default log group for specified folder.
     * 
* * string folder_id = 3 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"]; * @return The bytes for folderId. */ com.google.protobuf.ByteString getFolderIdBytes(); /** *
     * Minimum log entry level.
     * See [LogLevel.Level] for details.
     * 
* * .yandex.cloud.logging.v1.LogLevel.Level min_level = 4; * @return The enum numeric value on the wire for minLevel. */ int getMinLevelValue(); /** *
     * Minimum log entry level.
     * See [LogLevel.Level] for details.
     * 
* * .yandex.cloud.logging.v1.LogLevel.Level min_level = 4; * @return The minLevel. */ yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level getMinLevel(); public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions.DestinationCase getDestinationCase(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.LogOptions} */ public static final class LogOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.LogOptions) LogOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use LogOptions.newBuilder() to construct. private LogOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LogOptions() { minLevel_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LogOptions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LogOptions( 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 8: { disabled_ = input.readBool(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); destinationCase_ = 2; destination_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); destinationCase_ = 3; destination_ = s; break; } case 32: { int rawValue = input.readEnum(); minLevel_ = rawValue; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_LogOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_LogOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions.class, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions.Builder.class); } private int destinationCase_ = 0; private java.lang.Object destination_; public enum DestinationCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { LOG_GROUP_ID(2), FOLDER_ID(3), DESTINATION_NOT_SET(0); private final int value; private DestinationCase(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 DestinationCase valueOf(int value) { return forNumber(value); } public static DestinationCase forNumber(int value) { switch (value) { case 2: return LOG_GROUP_ID; case 3: return FOLDER_ID; case 0: return DESTINATION_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public DestinationCase getDestinationCase() { return DestinationCase.forNumber( destinationCase_); } public static final int DISABLED_FIELD_NUMBER = 1; private boolean disabled_; /** *
     * Is logging from function disabled.
     * 
* * bool disabled = 1; * @return The disabled. */ @java.lang.Override public boolean getDisabled() { return disabled_; } public static final int LOG_GROUP_ID_FIELD_NUMBER = 2; /** *
     * Entry should be written to log group resolved by ID.
     * 
* * string log_group_id = 2 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"]; * @return Whether the logGroupId field is set. */ public boolean hasLogGroupId() { return destinationCase_ == 2; } /** *
     * Entry should be written to log group resolved by ID.
     * 
* * string log_group_id = 2 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"]; * @return The logGroupId. */ public java.lang.String getLogGroupId() { java.lang.Object ref = ""; if (destinationCase_ == 2) { ref = destination_; } 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 (destinationCase_ == 2) { destination_ = s; } return s; } } /** *
     * Entry should be written to log group resolved by ID.
     * 
* * string log_group_id = 2 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"]; * @return The bytes for logGroupId. */ public com.google.protobuf.ByteString getLogGroupIdBytes() { java.lang.Object ref = ""; if (destinationCase_ == 2) { ref = destination_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (destinationCase_ == 2) { destination_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOLDER_ID_FIELD_NUMBER = 3; /** *
     * Entry should be written to default log group for specified folder.
     * 
* * string folder_id = 3 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"]; * @return Whether the folderId field is set. */ public boolean hasFolderId() { return destinationCase_ == 3; } /** *
     * Entry should be written to default log group for specified folder.
     * 
* * string folder_id = 3 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"]; * @return The folderId. */ public java.lang.String getFolderId() { java.lang.Object ref = ""; if (destinationCase_ == 3) { ref = destination_; } 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 (destinationCase_ == 3) { destination_ = s; } return s; } } /** *
     * Entry should be written to default log group for specified folder.
     * 
* * string folder_id = 3 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"]; * @return The bytes for folderId. */ public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = ""; if (destinationCase_ == 3) { ref = destination_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (destinationCase_ == 3) { destination_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MIN_LEVEL_FIELD_NUMBER = 4; private int minLevel_; /** *
     * Minimum log entry level.
     * See [LogLevel.Level] for details.
     * 
* * .yandex.cloud.logging.v1.LogLevel.Level min_level = 4; * @return The enum numeric value on the wire for minLevel. */ @java.lang.Override public int getMinLevelValue() { return minLevel_; } /** *
     * Minimum log entry level.
     * See [LogLevel.Level] for details.
     * 
* * .yandex.cloud.logging.v1.LogLevel.Level min_level = 4; * @return The minLevel. */ @java.lang.Override public yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level getMinLevel() { @SuppressWarnings("deprecation") yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level result = yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level.valueOf(minLevel_); return result == null ? yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (disabled_ != false) { output.writeBool(1, disabled_); } if (destinationCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, destination_); } if (destinationCase_ == 3) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, destination_); } if (minLevel_ != yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level.LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(4, minLevel_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (disabled_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, disabled_); } if (destinationCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, destination_); } if (destinationCase_ == 3) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, destination_); } if (minLevel_ != yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level.LEVEL_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, minLevel_); } 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.FunctionOuterClass.LogOptions)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions other = (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions) obj; if (getDisabled() != other.getDisabled()) return false; if (minLevel_ != other.minLevel_) return false; if (!getDestinationCase().equals(other.getDestinationCase())) return false; switch (destinationCase_) { case 2: if (!getLogGroupId() .equals(other.getLogGroupId())) return false; break; case 3: if (!getFolderId() .equals(other.getFolderId())) 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) + DISABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDisabled()); hash = (37 * hash) + MIN_LEVEL_FIELD_NUMBER; hash = (53 * hash) + minLevel_; switch (destinationCase_) { case 2: hash = (37 * hash) + LOG_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getLogGroupId().hashCode(); break; case 3: hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions 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.FunctionOuterClass.LogOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions 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.FunctionOuterClass.LogOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions 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.FunctionOuterClass.LogOptions 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.FunctionOuterClass.LogOptions 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.FunctionOuterClass.LogOptions 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.FunctionOuterClass.LogOptions 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.FunctionOuterClass.LogOptions 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.FunctionOuterClass.LogOptions 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.FunctionOuterClass.LogOptions 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.LogOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.LogOptions) yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_LogOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_LogOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions.class, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions.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(); disabled_ = false; minLevel_ = 0; destinationCase_ = 0; destination_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_LogOptions_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions build() { yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions result = new yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions(this); result.disabled_ = disabled_; if (destinationCase_ == 2) { result.destination_ = destination_; } if (destinationCase_ == 3) { result.destination_ = destination_; } result.minLevel_ = minLevel_; result.destinationCase_ = destinationCase_; 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.FunctionOuterClass.LogOptions) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions.getDefaultInstance()) return this; if (other.getDisabled() != false) { setDisabled(other.getDisabled()); } if (other.minLevel_ != 0) { setMinLevelValue(other.getMinLevelValue()); } switch (other.getDestinationCase()) { case LOG_GROUP_ID: { destinationCase_ = 2; destination_ = other.destination_; onChanged(); break; } case FOLDER_ID: { destinationCase_ = 3; destination_ = other.destination_; onChanged(); break; } case DESTINATION_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.FunctionOuterClass.LogOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int destinationCase_ = 0; private java.lang.Object destination_; public DestinationCase getDestinationCase() { return DestinationCase.forNumber( destinationCase_); } public Builder clearDestination() { destinationCase_ = 0; destination_ = null; onChanged(); return this; } private boolean disabled_ ; /** *
       * Is logging from function disabled.
       * 
* * bool disabled = 1; * @return The disabled. */ @java.lang.Override public boolean getDisabled() { return disabled_; } /** *
       * Is logging from function disabled.
       * 
* * bool disabled = 1; * @param value The disabled to set. * @return This builder for chaining. */ public Builder setDisabled(boolean value) { disabled_ = value; onChanged(); return this; } /** *
       * Is logging from function disabled.
       * 
* * bool disabled = 1; * @return This builder for chaining. */ public Builder clearDisabled() { disabled_ = false; onChanged(); return this; } /** *
       * Entry should be written to log group resolved by ID.
       * 
* * string log_group_id = 2 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"]; * @return Whether the logGroupId field is set. */ @java.lang.Override public boolean hasLogGroupId() { return destinationCase_ == 2; } /** *
       * Entry should be written to log group resolved by ID.
       * 
* * string log_group_id = 2 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"]; * @return The logGroupId. */ @java.lang.Override public java.lang.String getLogGroupId() { java.lang.Object ref = ""; if (destinationCase_ == 2) { ref = destination_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (destinationCase_ == 2) { destination_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Entry should be written to log group resolved by ID.
       * 
* * string log_group_id = 2 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"]; * @return The bytes for logGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getLogGroupIdBytes() { java.lang.Object ref = ""; if (destinationCase_ == 2) { ref = destination_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (destinationCase_ == 2) { destination_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Entry should be written to log group resolved by ID.
       * 
* * string log_group_id = 2 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"]; * @param value The logGroupId to set. * @return This builder for chaining. */ public Builder setLogGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } destinationCase_ = 2; destination_ = value; onChanged(); return this; } /** *
       * Entry should be written to log group resolved by ID.
       * 
* * string log_group_id = 2 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"]; * @return This builder for chaining. */ public Builder clearLogGroupId() { if (destinationCase_ == 2) { destinationCase_ = 0; destination_ = null; onChanged(); } return this; } /** *
       * Entry should be written to log group resolved by ID.
       * 
* * string log_group_id = 2 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"]; * @param value The bytes for logGroupId to set. * @return This builder for chaining. */ public Builder setLogGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationCase_ = 2; destination_ = value; onChanged(); return this; } /** *
       * Entry should be written to default log group for specified folder.
       * 
* * string folder_id = 3 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"]; * @return Whether the folderId field is set. */ @java.lang.Override public boolean hasFolderId() { return destinationCase_ == 3; } /** *
       * Entry should be written to default log group for specified folder.
       * 
* * string folder_id = 3 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"]; * @return The folderId. */ @java.lang.Override public java.lang.String getFolderId() { java.lang.Object ref = ""; if (destinationCase_ == 3) { ref = destination_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (destinationCase_ == 3) { destination_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Entry should be written to default log group for specified folder.
       * 
* * string folder_id = 3 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"]; * @return The bytes for folderId. */ @java.lang.Override public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = ""; if (destinationCase_ == 3) { ref = destination_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (destinationCase_ == 3) { destination_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Entry should be written to default log group for specified folder.
       * 
* * string folder_id = 3 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"]; * @param value The folderId to set. * @return This builder for chaining. */ public Builder setFolderId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } destinationCase_ = 3; destination_ = value; onChanged(); return this; } /** *
       * Entry should be written to default log group for specified folder.
       * 
* * string folder_id = 3 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"]; * @return This builder for chaining. */ public Builder clearFolderId() { if (destinationCase_ == 3) { destinationCase_ = 0; destination_ = null; onChanged(); } return this; } /** *
       * Entry should be written to default log group for specified folder.
       * 
* * string folder_id = 3 [(.yandex.cloud.pattern) = "([a-zA-Z][-a-zA-Z0-9_.]{0,63})?"]; * @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); destinationCase_ = 3; destination_ = value; onChanged(); return this; } private int minLevel_ = 0; /** *
       * Minimum log entry level.
       * See [LogLevel.Level] for details.
       * 
* * .yandex.cloud.logging.v1.LogLevel.Level min_level = 4; * @return The enum numeric value on the wire for minLevel. */ @java.lang.Override public int getMinLevelValue() { return minLevel_; } /** *
       * Minimum log entry level.
       * See [LogLevel.Level] for details.
       * 
* * .yandex.cloud.logging.v1.LogLevel.Level min_level = 4; * @param value The enum numeric value on the wire for minLevel to set. * @return This builder for chaining. */ public Builder setMinLevelValue(int value) { minLevel_ = value; onChanged(); return this; } /** *
       * Minimum log entry level.
       * See [LogLevel.Level] for details.
       * 
* * .yandex.cloud.logging.v1.LogLevel.Level min_level = 4; * @return The minLevel. */ @java.lang.Override public yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level getMinLevel() { @SuppressWarnings("deprecation") yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level result = yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level.valueOf(minLevel_); return result == null ? yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level.UNRECOGNIZED : result; } /** *
       * Minimum log entry level.
       * See [LogLevel.Level] for details.
       * 
* * .yandex.cloud.logging.v1.LogLevel.Level min_level = 4; * @param value The minLevel to set. * @return This builder for chaining. */ public Builder setMinLevel(yandex.cloud.api.logging.v1.LogEntryOuterClass.LogLevel.Level value) { if (value == null) { throw new NullPointerException(); } minLevel_ = value.getNumber(); onChanged(); return this; } /** *
       * Minimum log entry level.
       * See [LogLevel.Level] for details.
       * 
* * .yandex.cloud.logging.v1.LogLevel.Level min_level = 4; * @return This builder for chaining. */ public Builder clearMinLevel() { minLevel_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.serverless.functions.v1.LogOptions) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.LogOptions) private static final yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions(); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.LogOptions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LogOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LogOptions(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.FunctionOuterClass.LogOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StorageMountOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.serverless.functions.v1.StorageMount) com.google.protobuf.MessageOrBuilder { /** *
     * S3 bucket name for mounting.
     * 
* * string bucket_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-.0-9a-zA-Z]*", (.yandex.cloud.length) = "3-63"]; * @return The bucketId. */ java.lang.String getBucketId(); /** *
     * S3 bucket name for mounting.
     * 
* * string bucket_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-.0-9a-zA-Z]*", (.yandex.cloud.length) = "3-63"]; * @return The bytes for bucketId. */ com.google.protobuf.ByteString getBucketIdBytes(); /** *
     * S3 bucket prefix for mounting.
     * 
* * string prefix = 2; * @return The prefix. */ java.lang.String getPrefix(); /** *
     * S3 bucket prefix for mounting.
     * 
* * string prefix = 2; * @return The bytes for prefix. */ com.google.protobuf.ByteString getPrefixBytes(); /** *
     * Mount point directory name (not path) for mounting.
     * 
* * string mount_point_name = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-_0-9a-zA-Z]*", (.yandex.cloud.length) = "1-100"]; * @return The mountPointName. */ java.lang.String getMountPointName(); /** *
     * Mount point directory name (not path) for mounting.
     * 
* * string mount_point_name = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-_0-9a-zA-Z]*", (.yandex.cloud.length) = "1-100"]; * @return The bytes for mountPointName. */ com.google.protobuf.ByteString getMountPointNameBytes(); /** *
     * Is mount read only.
     * 
* * bool read_only = 4; * @return The readOnly. */ boolean getReadOnly(); } /** * Protobuf type {@code yandex.cloud.serverless.functions.v1.StorageMount} */ public static final class StorageMount extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.serverless.functions.v1.StorageMount) StorageMountOrBuilder { private static final long serialVersionUID = 0L; // Use StorageMount.newBuilder() to construct. private StorageMount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StorageMount() { bucketId_ = ""; prefix_ = ""; mountPointName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StorageMount(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StorageMount( 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(); bucketId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); prefix_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); mountPointName_ = s; break; } case 32: { readOnly_ = 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.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_StorageMount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_StorageMount_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount.class, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount.Builder.class); } public static final int BUCKET_ID_FIELD_NUMBER = 1; private volatile java.lang.Object bucketId_; /** *
     * S3 bucket name for mounting.
     * 
* * string bucket_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-.0-9a-zA-Z]*", (.yandex.cloud.length) = "3-63"]; * @return The bucketId. */ @java.lang.Override public java.lang.String getBucketId() { java.lang.Object ref = bucketId_; 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(); bucketId_ = s; return s; } } /** *
     * S3 bucket name for mounting.
     * 
* * string bucket_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-.0-9a-zA-Z]*", (.yandex.cloud.length) = "3-63"]; * @return The bytes for bucketId. */ @java.lang.Override public com.google.protobuf.ByteString getBucketIdBytes() { java.lang.Object ref = bucketId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); bucketId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PREFIX_FIELD_NUMBER = 2; private volatile java.lang.Object prefix_; /** *
     * S3 bucket prefix for mounting.
     * 
* * string prefix = 2; * @return The prefix. */ @java.lang.Override public java.lang.String getPrefix() { java.lang.Object ref = prefix_; 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(); prefix_ = s; return s; } } /** *
     * S3 bucket prefix for mounting.
     * 
* * string prefix = 2; * @return The bytes for prefix. */ @java.lang.Override public com.google.protobuf.ByteString getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); prefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MOUNT_POINT_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object mountPointName_; /** *
     * Mount point directory name (not path) for mounting.
     * 
* * string mount_point_name = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-_0-9a-zA-Z]*", (.yandex.cloud.length) = "1-100"]; * @return The mountPointName. */ @java.lang.Override public java.lang.String getMountPointName() { java.lang.Object ref = mountPointName_; 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(); mountPointName_ = s; return s; } } /** *
     * Mount point directory name (not path) for mounting.
     * 
* * string mount_point_name = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-_0-9a-zA-Z]*", (.yandex.cloud.length) = "1-100"]; * @return The bytes for mountPointName. */ @java.lang.Override public com.google.protobuf.ByteString getMountPointNameBytes() { java.lang.Object ref = mountPointName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mountPointName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int READ_ONLY_FIELD_NUMBER = 4; private boolean readOnly_; /** *
     * Is mount read only.
     * 
* * bool read_only = 4; * @return The readOnly. */ @java.lang.Override public boolean getReadOnly() { return readOnly_; } 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(bucketId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucketId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(prefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, prefix_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPointName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mountPointName_); } if (readOnly_ != false) { output.writeBool(4, readOnly_); } 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(bucketId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucketId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(prefix_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, prefix_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPointName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mountPointName_); } if (readOnly_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, readOnly_); } 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.FunctionOuterClass.StorageMount)) { return super.equals(obj); } yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount other = (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount) obj; if (!getBucketId() .equals(other.getBucketId())) return false; if (!getPrefix() .equals(other.getPrefix())) return false; if (!getMountPointName() .equals(other.getMountPointName())) return false; if (getReadOnly() != other.getReadOnly()) 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) + BUCKET_ID_FIELD_NUMBER; hash = (53 * hash) + getBucketId().hashCode(); hash = (37 * hash) + PREFIX_FIELD_NUMBER; hash = (53 * hash) + getPrefix().hashCode(); hash = (37 * hash) + MOUNT_POINT_NAME_FIELD_NUMBER; hash = (53 * hash) + getMountPointName().hashCode(); hash = (37 * hash) + READ_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReadOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount 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.FunctionOuterClass.StorageMount parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount 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.FunctionOuterClass.StorageMount parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount 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.FunctionOuterClass.StorageMount 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.FunctionOuterClass.StorageMount 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.FunctionOuterClass.StorageMount 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.FunctionOuterClass.StorageMount 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.FunctionOuterClass.StorageMount 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.FunctionOuterClass.StorageMount 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.FunctionOuterClass.StorageMount 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.StorageMount} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.serverless.functions.v1.StorageMount) yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMountOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_StorageMount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_StorageMount_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount.class, yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount.Builder.class); } // Construct using yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount.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(); bucketId_ = ""; prefix_ = ""; mountPointName_ = ""; readOnly_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.internal_static_yandex_cloud_serverless_functions_v1_StorageMount_descriptor; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount getDefaultInstanceForType() { return yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount build() { yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount buildPartial() { yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount result = new yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount(this); result.bucketId_ = bucketId_; result.prefix_ = prefix_; result.mountPointName_ = mountPointName_; result.readOnly_ = readOnly_; 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.FunctionOuterClass.StorageMount) { return mergeFrom((yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount other) { if (other == yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount.getDefaultInstance()) return this; if (!other.getBucketId().isEmpty()) { bucketId_ = other.bucketId_; onChanged(); } if (!other.getPrefix().isEmpty()) { prefix_ = other.prefix_; onChanged(); } if (!other.getMountPointName().isEmpty()) { mountPointName_ = other.mountPointName_; onChanged(); } if (other.getReadOnly() != false) { setReadOnly(other.getReadOnly()); } 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.FunctionOuterClass.StorageMount parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object bucketId_ = ""; /** *
       * S3 bucket name for mounting.
       * 
* * string bucket_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-.0-9a-zA-Z]*", (.yandex.cloud.length) = "3-63"]; * @return The bucketId. */ public java.lang.String getBucketId() { java.lang.Object ref = bucketId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucketId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * S3 bucket name for mounting.
       * 
* * string bucket_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-.0-9a-zA-Z]*", (.yandex.cloud.length) = "3-63"]; * @return The bytes for bucketId. */ public com.google.protobuf.ByteString getBucketIdBytes() { java.lang.Object ref = bucketId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); bucketId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * S3 bucket name for mounting.
       * 
* * string bucket_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-.0-9a-zA-Z]*", (.yandex.cloud.length) = "3-63"]; * @param value The bucketId to set. * @return This builder for chaining. */ public Builder setBucketId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bucketId_ = value; onChanged(); return this; } /** *
       * S3 bucket name for mounting.
       * 
* * string bucket_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-.0-9a-zA-Z]*", (.yandex.cloud.length) = "3-63"]; * @return This builder for chaining. */ public Builder clearBucketId() { bucketId_ = getDefaultInstance().getBucketId(); onChanged(); return this; } /** *
       * S3 bucket name for mounting.
       * 
* * string bucket_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-.0-9a-zA-Z]*", (.yandex.cloud.length) = "3-63"]; * @param value The bytes for bucketId to set. * @return This builder for chaining. */ public Builder setBucketIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bucketId_ = value; onChanged(); return this; } private java.lang.Object prefix_ = ""; /** *
       * S3 bucket prefix for mounting.
       * 
* * string prefix = 2; * @return The prefix. */ public java.lang.String getPrefix() { java.lang.Object ref = prefix_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); prefix_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * S3 bucket prefix for mounting.
       * 
* * string prefix = 2; * @return The bytes for prefix. */ public com.google.protobuf.ByteString getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); prefix_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * S3 bucket prefix for mounting.
       * 
* * string prefix = 2; * @param value The prefix to set. * @return This builder for chaining. */ public Builder setPrefix( java.lang.String value) { if (value == null) { throw new NullPointerException(); } prefix_ = value; onChanged(); return this; } /** *
       * S3 bucket prefix for mounting.
       * 
* * string prefix = 2; * @return This builder for chaining. */ public Builder clearPrefix() { prefix_ = getDefaultInstance().getPrefix(); onChanged(); return this; } /** *
       * S3 bucket prefix for mounting.
       * 
* * string prefix = 2; * @param value The bytes for prefix to set. * @return This builder for chaining. */ public Builder setPrefixBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); prefix_ = value; onChanged(); return this; } private java.lang.Object mountPointName_ = ""; /** *
       * Mount point directory name (not path) for mounting.
       * 
* * string mount_point_name = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-_0-9a-zA-Z]*", (.yandex.cloud.length) = "1-100"]; * @return The mountPointName. */ public java.lang.String getMountPointName() { java.lang.Object ref = mountPointName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPointName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Mount point directory name (not path) for mounting.
       * 
* * string mount_point_name = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-_0-9a-zA-Z]*", (.yandex.cloud.length) = "1-100"]; * @return The bytes for mountPointName. */ public com.google.protobuf.ByteString getMountPointNameBytes() { java.lang.Object ref = mountPointName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mountPointName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Mount point directory name (not path) for mounting.
       * 
* * string mount_point_name = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-_0-9a-zA-Z]*", (.yandex.cloud.length) = "1-100"]; * @param value The mountPointName to set. * @return This builder for chaining. */ public Builder setMountPointName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } mountPointName_ = value; onChanged(); return this; } /** *
       * Mount point directory name (not path) for mounting.
       * 
* * string mount_point_name = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-_0-9a-zA-Z]*", (.yandex.cloud.length) = "1-100"]; * @return This builder for chaining. */ public Builder clearMountPointName() { mountPointName_ = getDefaultInstance().getMountPointName(); onChanged(); return this; } /** *
       * Mount point directory name (not path) for mounting.
       * 
* * string mount_point_name = 3 [(.yandex.cloud.required) = true, (.yandex.cloud.pattern) = "[-_0-9a-zA-Z]*", (.yandex.cloud.length) = "1-100"]; * @param value The bytes for mountPointName to set. * @return This builder for chaining. */ public Builder setMountPointNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mountPointName_ = value; onChanged(); return this; } private boolean readOnly_ ; /** *
       * Is mount read only.
       * 
* * bool read_only = 4; * @return The readOnly. */ @java.lang.Override public boolean getReadOnly() { return readOnly_; } /** *
       * Is mount read only.
       * 
* * bool read_only = 4; * @param value The readOnly to set. * @return This builder for chaining. */ public Builder setReadOnly(boolean value) { readOnly_ = value; onChanged(); return this; } /** *
       * Is mount read only.
       * 
* * bool read_only = 4; * @return This builder for chaining. */ public Builder clearReadOnly() { readOnly_ = 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.StorageMount) } // @@protoc_insertion_point(class_scope:yandex.cloud.serverless.functions.v1.StorageMount) private static final yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount(); } public static yandex.cloud.api.serverless.functions.v1.FunctionOuterClass.StorageMount getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StorageMount parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StorageMount(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.FunctionOuterClass.StorageMount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_Function_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_Function_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_Function_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_Function_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_Version_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_Version_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_Version_EnvironmentEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_Version_EnvironmentEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_Version_NamedServiceAccountsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_Version_NamedServiceAccountsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_Resources_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_Resources_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_Package_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_Package_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_Connectivity_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_Connectivity_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_ScalingPolicy_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_ScalingPolicy_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_Secret_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_Secret_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_LogOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_LogOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_serverless_functions_v1_StorageMount_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_serverless_functions_v1_StorageMount_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n3yandex/cloud/serverless/functions/v1/f" + "unction.proto\022$yandex.cloud.serverless.f" + "unctions.v1\032\036google/protobuf/duration.pr" + "oto\032\037google/protobuf/timestamp.proto\032\'ya" + "ndex/cloud/logging/v1/log_entry.proto\032\035y" + "andex/cloud/validation.proto\"\341\003\n\010Functio" + "n\022\n\n\002id\030\001 \001(\t\022\021\n\tfolder_id\030\002 \001(\t\022.\n\ncrea" + "ted_at\030\003 \001(\0132\032.google.protobuf.Timestamp" + "\022\026\n\004name\030\004 \001(\tB\010\212\3101\0043-63\022\036\n\013description\030" + "\005 \001(\tB\t\212\3101\0050-256\022T\n\006labels\030\006 \003(\0132:.yande" + "x.cloud.serverless.functions.v1.Function" + ".LabelsEntryB\010\202\3101\004<=64\022\024\n\014log_group_id\030\007" + " \001(\t\022\027\n\017http_invoke_url\030\010 \001(\t\022E\n\006status\030" + "\t \001(\01625.yandex.cloud.serverless.function" + "s.v1.Function.Status\032-\n\013LabelsEntry\022\013\n\003k" + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"S\n\006Status\022\026\n" + "\022STATUS_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006A" + "CTIVE\020\002\022\014\n\010DELETING\020\003\022\t\n\005ERROR\020\004\"\272\010\n\007Ver" + "sion\022\n\n\002id\030\001 \001(\t\022\023\n\013function_id\030\002 \001(\t\022\036\n" + "\013description\030\003 \001(\tB\t\212\3101\0050-256\022.\n\ncreated" + "_at\030\005 \001(\0132\032.google.protobuf.Timestamp\022\017\n" + "\007runtime\030\006 \001(\t\022\022\n\nentrypoint\030\007 \001(\t\022B\n\tre" + "sources\030\010 \001(\0132/.yandex.cloud.serverless." + "functions.v1.Resources\0224\n\021execution_time" + "out\030\t \001(\0132\031.google.protobuf.Duration\022\032\n\022" + "service_account_id\030\n \001(\t\022\022\n\nimage_size\030\014" + " \001(\003\022D\n\006status\030\r \001(\01624.yandex.cloud.serv" + "erless.functions.v1.Version.Status\022\014\n\004ta" + "gs\030\016 \003(\t\022\024\n\014log_group_id\030\017 \001(\t\022S\n\013enviro" + "nment\030\020 \003(\0132>.yandex.cloud.serverless.fu" + "nctions.v1.Version.EnvironmentEntry\022H\n\014c" + "onnectivity\030\021 \001(\01322.yandex.cloud.serverl" + "ess.functions.v1.Connectivity\022g\n\026named_s" + "ervice_accounts\030\022 \003(\0132G.yandex.cloud.ser" + "verless.functions.v1.Version.NamedServic" + "eAccountsEntry\022=\n\007secrets\030\023 \003(\0132,.yandex" + ".cloud.serverless.functions.v1.Secret\022E\n" + "\013log_options\030\024 \001(\01320.yandex.cloud.server" + "less.functions.v1.LogOptions\022J\n\016storage_" + "mounts\030\025 \003(\01322.yandex.cloud.serverless.f" + "unctions.v1.StorageMount\0322\n\020EnvironmentE" + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032;\n\031" + "NamedServiceAccountsEntry\022\013\n\003key\030\001 \001(\t\022\r" + "\n\005value\030\002 \001(\t:\0028\001\":\n\006Status\022\026\n\022STATUS_UN" + "SPECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\"5\n" + "\tResources\022(\n\006memory\030\001 \001(\003B\030\372\3071\02413421772" + "8-4294967296\"O\n\007Package\022\031\n\013bucket_name\030\001" + " \001(\tB\004\350\3071\001\022\031\n\013object_name\030\002 \001(\tB\004\350\3071\001\022\016\n" + "\006sha256\030\003 \001(\t\"A\n\014Connectivity\022\022\n\nnetwork" + "_id\030\001 \001(\t\022\035\n\tsubnet_id\030\002 \003(\tB\n\212\3101\002>0\220\3101\001" + "\"\362\001\n\rScalingPolicy\022\023\n\013function_id\030\001 \001(\t\022" + "\013\n\003tag\030\002 \001(\t\022.\n\ncreated_at\030\003 \001(\0132\032.googl" + "e.protobuf.Timestamp\022/\n\013modified_at\030\004 \001(" + "\0132\032.google.protobuf.Timestamp\022#\n\033provisi" + "oned_instances_count\030\006 \001(\003\022\034\n\024zone_insta" + "nces_limit\030\007 \001(\003\022\033\n\023zone_requests_limit\030" + "\010 \001(\003\"b\n\006Secret\022\n\n\002id\030\001 \001(\t\022\022\n\nversion_i" + "d\030\002 \001(\t\022\013\n\003key\030\003 \001(\t\022\036\n\024environment_vari" + "able\030\004 \001(\tH\000B\013\n\treference\"\340\001\n\nLogOptions" + "\022\020\n\010disabled\030\001 \001(\010\022;\n\014log_group_id\030\002 \001(\t" + "B#\362\3071\037([a-zA-Z][-a-zA-Z0-9_.]{0,63})?H\000\022" + "8\n\tfolder_id\030\003 \001(\tB#\362\3071\037([a-zA-Z][-a-zA-" + "Z0-9_.]{0,63})?H\000\022:\n\tmin_level\030\004 \001(\0162\'.y" + "andex.cloud.logging.v1.LogLevel.LevelB\r\n" + "\013destination\"\237\001\n\014StorageMount\0221\n\tbucket_" + "id\030\001 \001(\tB\036\350\3071\001\212\3101\0043-63\362\3071\016[-.0-9a-zA-Z]*" + "\022\016\n\006prefix\030\002 \001(\t\0229\n\020mount_point_name\030\003 \001" + "(\tB\037\350\3071\001\212\3101\0051-100\362\3071\016[-_0-9a-zA-Z]*\022\021\n\tr" + "ead_only\030\004 \001(\010B~\n(yandex.cloud.api.serve" + "rless.functions.v1ZRgithub.com/yandex-cl" + "oud/go-genproto/yandex/cloud/serverless/" + "functions/v1;functionsb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), yandex.cloud.api.logging.v1.LogEntryOuterClass.getDescriptor(), yandex.cloud.api.Validation.getDescriptor(), }); internal_static_yandex_cloud_serverless_functions_v1_Function_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_serverless_functions_v1_Function_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_Function_descriptor, new java.lang.String[] { "Id", "FolderId", "CreatedAt", "Name", "Description", "Labels", "LogGroupId", "HttpInvokeUrl", "Status", }); internal_static_yandex_cloud_serverless_functions_v1_Function_LabelsEntry_descriptor = internal_static_yandex_cloud_serverless_functions_v1_Function_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_serverless_functions_v1_Function_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_Function_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_serverless_functions_v1_Version_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_serverless_functions_v1_Version_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_Version_descriptor, new java.lang.String[] { "Id", "FunctionId", "Description", "CreatedAt", "Runtime", "Entrypoint", "Resources", "ExecutionTimeout", "ServiceAccountId", "ImageSize", "Status", "Tags", "LogGroupId", "Environment", "Connectivity", "NamedServiceAccounts", "Secrets", "LogOptions", "StorageMounts", }); internal_static_yandex_cloud_serverless_functions_v1_Version_EnvironmentEntry_descriptor = internal_static_yandex_cloud_serverless_functions_v1_Version_descriptor.getNestedTypes().get(0); internal_static_yandex_cloud_serverless_functions_v1_Version_EnvironmentEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_Version_EnvironmentEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_serverless_functions_v1_Version_NamedServiceAccountsEntry_descriptor = internal_static_yandex_cloud_serverless_functions_v1_Version_descriptor.getNestedTypes().get(1); internal_static_yandex_cloud_serverless_functions_v1_Version_NamedServiceAccountsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_Version_NamedServiceAccountsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_yandex_cloud_serverless_functions_v1_Resources_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_serverless_functions_v1_Resources_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_Resources_descriptor, new java.lang.String[] { "Memory", }); internal_static_yandex_cloud_serverless_functions_v1_Package_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_yandex_cloud_serverless_functions_v1_Package_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_Package_descriptor, new java.lang.String[] { "BucketName", "ObjectName", "Sha256", }); internal_static_yandex_cloud_serverless_functions_v1_Connectivity_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_yandex_cloud_serverless_functions_v1_Connectivity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_Connectivity_descriptor, new java.lang.String[] { "NetworkId", "SubnetId", }); internal_static_yandex_cloud_serverless_functions_v1_ScalingPolicy_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_yandex_cloud_serverless_functions_v1_ScalingPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_ScalingPolicy_descriptor, new java.lang.String[] { "FunctionId", "Tag", "CreatedAt", "ModifiedAt", "ProvisionedInstancesCount", "ZoneInstancesLimit", "ZoneRequestsLimit", }); internal_static_yandex_cloud_serverless_functions_v1_Secret_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_yandex_cloud_serverless_functions_v1_Secret_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_Secret_descriptor, new java.lang.String[] { "Id", "VersionId", "Key", "EnvironmentVariable", "Reference", }); internal_static_yandex_cloud_serverless_functions_v1_LogOptions_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_yandex_cloud_serverless_functions_v1_LogOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_LogOptions_descriptor, new java.lang.String[] { "Disabled", "LogGroupId", "FolderId", "MinLevel", "Destination", }); internal_static_yandex_cloud_serverless_functions_v1_StorageMount_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_yandex_cloud_serverless_functions_v1_StorageMount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_serverless_functions_v1_StorageMount_descriptor, new java.lang.String[] { "BucketId", "Prefix", "MountPointName", "ReadOnly", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(yandex.cloud.api.Validation.length); 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.unique); registry.add(yandex.cloud.api.Validation.value); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); yandex.cloud.api.logging.v1.LogEntryOuterClass.getDescriptor(); yandex.cloud.api.Validation.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy