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

com.google.cloud.functions.v2.ListRuntimesResponse Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/functions/v2/functions.proto

// Protobuf Java Version: 3.25.4
package com.google.cloud.functions.v2;

/**
 *
 *
 * 
 * Response for the `ListRuntimes` method.
 * 
* * Protobuf type {@code google.cloud.functions.v2.ListRuntimesResponse} */ public final class ListRuntimesResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.ListRuntimesResponse) ListRuntimesResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ListRuntimesResponse.newBuilder() to construct. private ListRuntimesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ListRuntimesResponse() { runtimes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRuntimesResponse(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_ListRuntimesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_ListRuntimesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.functions.v2.ListRuntimesResponse.class, com.google.cloud.functions.v2.ListRuntimesResponse.Builder.class); } /** * * *
   * The various stages that a runtime can be in.
   * 
* * Protobuf enum {@code google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage} */ public enum RuntimeStage implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Not specified.
     * 
* * RUNTIME_STAGE_UNSPECIFIED = 0; */ RUNTIME_STAGE_UNSPECIFIED(0), /** * * *
     * The runtime is in development.
     * 
* * DEVELOPMENT = 1; */ DEVELOPMENT(1), /** * * *
     * The runtime is in the Alpha stage.
     * 
* * ALPHA = 2; */ ALPHA(2), /** * * *
     * The runtime is in the Beta stage.
     * 
* * BETA = 3; */ BETA(3), /** * * *
     * The runtime is generally available.
     * 
* * GA = 4; */ GA(4), /** * * *
     * The runtime is deprecated.
     * 
* * DEPRECATED = 5; */ DEPRECATED(5), /** * * *
     * The runtime is no longer supported.
     * 
* * DECOMMISSIONED = 6; */ DECOMMISSIONED(6), UNRECOGNIZED(-1), ; /** * * *
     * Not specified.
     * 
* * RUNTIME_STAGE_UNSPECIFIED = 0; */ public static final int RUNTIME_STAGE_UNSPECIFIED_VALUE = 0; /** * * *
     * The runtime is in development.
     * 
* * DEVELOPMENT = 1; */ public static final int DEVELOPMENT_VALUE = 1; /** * * *
     * The runtime is in the Alpha stage.
     * 
* * ALPHA = 2; */ public static final int ALPHA_VALUE = 2; /** * * *
     * The runtime is in the Beta stage.
     * 
* * BETA = 3; */ public static final int BETA_VALUE = 3; /** * * *
     * The runtime is generally available.
     * 
* * GA = 4; */ public static final int GA_VALUE = 4; /** * * *
     * The runtime is deprecated.
     * 
* * DEPRECATED = 5; */ public static final int DEPRECATED_VALUE = 5; /** * * *
     * The runtime is no longer supported.
     * 
* * DECOMMISSIONED = 6; */ public static final int DECOMMISSIONED_VALUE = 6; 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 RuntimeStage 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 RuntimeStage forNumber(int value) { switch (value) { case 0: return RUNTIME_STAGE_UNSPECIFIED; case 1: return DEVELOPMENT; case 2: return ALPHA; case 3: return BETA; case 4: return GA; case 5: return DEPRECATED; case 6: return DECOMMISSIONED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public RuntimeStage findValueByNumber(int number) { return RuntimeStage.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 com.google.cloud.functions.v2.ListRuntimesResponse.getDescriptor() .getEnumTypes() .get(0); } private static final RuntimeStage[] VALUES = values(); public static RuntimeStage 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 RuntimeStage(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage) } public interface RuntimeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.functions.v2.ListRuntimesResponse.Runtime) com.google.protobuf.MessageOrBuilder { /** * * *
     * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
     * 
* * string name = 1; * * @return The name. */ java.lang.String getName(); /** * * *
     * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
     * 
* * string name = 1; * * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * * *
     * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
     * 
* * string display_name = 5; * * @return The displayName. */ java.lang.String getDisplayName(); /** * * *
     * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
     * 
* * string display_name = 5; * * @return The bytes for displayName. */ com.google.protobuf.ByteString getDisplayNameBytes(); /** * * *
     * The stage of life this runtime is in, e.g., BETA, GA, etc.
     * 
* * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; * * @return The enum numeric value on the wire for stage. */ int getStageValue(); /** * * *
     * The stage of life this runtime is in, e.g., BETA, GA, etc.
     * 
* * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; * * @return The stage. */ com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage getStage(); /** * * *
     * Warning messages, e.g., a deprecation warning.
     * 
* * repeated string warnings = 3; * * @return A list containing the warnings. */ java.util.List getWarningsList(); /** * * *
     * Warning messages, e.g., a deprecation warning.
     * 
* * repeated string warnings = 3; * * @return The count of warnings. */ int getWarningsCount(); /** * * *
     * Warning messages, e.g., a deprecation warning.
     * 
* * repeated string warnings = 3; * * @param index The index of the element to return. * @return The warnings at the given index. */ java.lang.String getWarnings(int index); /** * * *
     * Warning messages, e.g., a deprecation warning.
     * 
* * repeated string warnings = 3; * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ com.google.protobuf.ByteString getWarningsBytes(int index); /** * * *
     * The environment for the runtime.
     * 
* * .google.cloud.functions.v2.Environment environment = 4; * * @return The enum numeric value on the wire for environment. */ int getEnvironmentValue(); /** * * *
     * The environment for the runtime.
     * 
* * .google.cloud.functions.v2.Environment environment = 4; * * @return The environment. */ com.google.cloud.functions.v2.Environment getEnvironment(); /** * * *
     * Deprecation date for the runtime.
     * 
* * .google.type.Date deprecation_date = 6; * * @return Whether the deprecationDate field is set. */ boolean hasDeprecationDate(); /** * * *
     * Deprecation date for the runtime.
     * 
* * .google.type.Date deprecation_date = 6; * * @return The deprecationDate. */ com.google.type.Date getDeprecationDate(); /** * * *
     * Deprecation date for the runtime.
     * 
* * .google.type.Date deprecation_date = 6; */ com.google.type.DateOrBuilder getDeprecationDateOrBuilder(); /** * * *
     * Decommission date for the runtime.
     * 
* * .google.type.Date decommission_date = 7; * * @return Whether the decommissionDate field is set. */ boolean hasDecommissionDate(); /** * * *
     * Decommission date for the runtime.
     * 
* * .google.type.Date decommission_date = 7; * * @return The decommissionDate. */ com.google.type.Date getDecommissionDate(); /** * * *
     * Decommission date for the runtime.
     * 
* * .google.type.Date decommission_date = 7; */ com.google.type.DateOrBuilder getDecommissionDateOrBuilder(); } /** * * *
   * Describes a runtime and any special information (e.g., deprecation status)
   * related to it.
   * 
* * Protobuf type {@code google.cloud.functions.v2.ListRuntimesResponse.Runtime} */ public static final class Runtime extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.functions.v2.ListRuntimesResponse.Runtime) RuntimeOrBuilder { private static final long serialVersionUID = 0L; // Use Runtime.newBuilder() to construct. private Runtime(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Runtime() { name_ = ""; displayName_ = ""; stage_ = 0; warnings_ = com.google.protobuf.LazyStringArrayList.emptyList(); environment_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Runtime(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.class, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
     * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
     * 
* * string name = 1; * * @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; } } /** * * *
     * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
     * 
* * string name = 1; * * @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 DISPLAY_NAME_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** * * *
     * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
     * 
* * string display_name = 5; * * @return The displayName. */ @java.lang.Override public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; } } /** * * *
     * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
     * 
* * string display_name = 5; * * @return The bytes for displayName. */ @java.lang.Override public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STAGE_FIELD_NUMBER = 2; private int stage_ = 0; /** * * *
     * The stage of life this runtime is in, e.g., BETA, GA, etc.
     * 
* * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; * * @return The enum numeric value on the wire for stage. */ @java.lang.Override public int getStageValue() { return stage_; } /** * * *
     * The stage of life this runtime is in, e.g., BETA, GA, etc.
     * 
* * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; * * @return The stage. */ @java.lang.Override public com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage getStage() { com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage result = com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage.forNumber(stage_); return result == null ? com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage.UNRECOGNIZED : result; } public static final int WARNINGS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList warnings_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
     * Warning messages, e.g., a deprecation warning.
     * 
* * repeated string warnings = 3; * * @return A list containing the warnings. */ public com.google.protobuf.ProtocolStringList getWarningsList() { return warnings_; } /** * * *
     * Warning messages, e.g., a deprecation warning.
     * 
* * repeated string warnings = 3; * * @return The count of warnings. */ public int getWarningsCount() { return warnings_.size(); } /** * * *
     * Warning messages, e.g., a deprecation warning.
     * 
* * repeated string warnings = 3; * * @param index The index of the element to return. * @return The warnings at the given index. */ public java.lang.String getWarnings(int index) { return warnings_.get(index); } /** * * *
     * Warning messages, e.g., a deprecation warning.
     * 
* * repeated string warnings = 3; * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ public com.google.protobuf.ByteString getWarningsBytes(int index) { return warnings_.getByteString(index); } public static final int ENVIRONMENT_FIELD_NUMBER = 4; private int environment_ = 0; /** * * *
     * The environment for the runtime.
     * 
* * .google.cloud.functions.v2.Environment environment = 4; * * @return The enum numeric value on the wire for environment. */ @java.lang.Override public int getEnvironmentValue() { return environment_; } /** * * *
     * The environment for the runtime.
     * 
* * .google.cloud.functions.v2.Environment environment = 4; * * @return The environment. */ @java.lang.Override public com.google.cloud.functions.v2.Environment getEnvironment() { com.google.cloud.functions.v2.Environment result = com.google.cloud.functions.v2.Environment.forNumber(environment_); return result == null ? com.google.cloud.functions.v2.Environment.UNRECOGNIZED : result; } public static final int DEPRECATION_DATE_FIELD_NUMBER = 6; private com.google.type.Date deprecationDate_; /** * * *
     * Deprecation date for the runtime.
     * 
* * .google.type.Date deprecation_date = 6; * * @return Whether the deprecationDate field is set. */ @java.lang.Override public boolean hasDeprecationDate() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Deprecation date for the runtime.
     * 
* * .google.type.Date deprecation_date = 6; * * @return The deprecationDate. */ @java.lang.Override public com.google.type.Date getDeprecationDate() { return deprecationDate_ == null ? com.google.type.Date.getDefaultInstance() : deprecationDate_; } /** * * *
     * Deprecation date for the runtime.
     * 
* * .google.type.Date deprecation_date = 6; */ @java.lang.Override public com.google.type.DateOrBuilder getDeprecationDateOrBuilder() { return deprecationDate_ == null ? com.google.type.Date.getDefaultInstance() : deprecationDate_; } public static final int DECOMMISSION_DATE_FIELD_NUMBER = 7; private com.google.type.Date decommissionDate_; /** * * *
     * Decommission date for the runtime.
     * 
* * .google.type.Date decommission_date = 7; * * @return Whether the decommissionDate field is set. */ @java.lang.Override public boolean hasDecommissionDate() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Decommission date for the runtime.
     * 
* * .google.type.Date decommission_date = 7; * * @return The decommissionDate. */ @java.lang.Override public com.google.type.Date getDecommissionDate() { return decommissionDate_ == null ? com.google.type.Date.getDefaultInstance() : decommissionDate_; } /** * * *
     * Decommission date for the runtime.
     * 
* * .google.type.Date decommission_date = 7; */ @java.lang.Override public com.google.type.DateOrBuilder getDecommissionDateOrBuilder() { return decommissionDate_ == null ? com.google.type.Date.getDefaultInstance() : decommissionDate_; } 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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (stage_ != com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage .RUNTIME_STAGE_UNSPECIFIED .getNumber()) { output.writeEnum(2, stage_); } for (int i = 0; i < warnings_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, warnings_.getRaw(i)); } if (environment_ != com.google.cloud.functions.v2.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { output.writeEnum(4, environment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getDeprecationDate()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(7, getDecommissionDate()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (stage_ != com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage .RUNTIME_STAGE_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, stage_); } { int dataSize = 0; for (int i = 0; i < warnings_.size(); i++) { dataSize += computeStringSizeNoTag(warnings_.getRaw(i)); } size += dataSize; size += 1 * getWarningsList().size(); } if (environment_ != com.google.cloud.functions.v2.Environment.ENVIRONMENT_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, environment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDeprecationDate()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDecommissionDate()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.functions.v2.ListRuntimesResponse.Runtime)) { return super.equals(obj); } com.google.cloud.functions.v2.ListRuntimesResponse.Runtime other = (com.google.cloud.functions.v2.ListRuntimesResponse.Runtime) obj; if (!getName().equals(other.getName())) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; if (stage_ != other.stage_) return false; if (!getWarningsList().equals(other.getWarningsList())) return false; if (environment_ != other.environment_) return false; if (hasDeprecationDate() != other.hasDeprecationDate()) return false; if (hasDeprecationDate()) { if (!getDeprecationDate().equals(other.getDeprecationDate())) return false; } if (hasDecommissionDate() != other.hasDecommissionDate()) return false; if (hasDecommissionDate()) { if (!getDecommissionDate().equals(other.getDecommissionDate())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + STAGE_FIELD_NUMBER; hash = (53 * hash) + stage_; if (getWarningsCount() > 0) { hash = (37 * hash) + WARNINGS_FIELD_NUMBER; hash = (53 * hash) + getWarningsList().hashCode(); } hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; hash = (53 * hash) + environment_; if (hasDeprecationDate()) { hash = (37 * hash) + DEPRECATION_DATE_FIELD_NUMBER; hash = (53 * hash) + getDeprecationDate().hashCode(); } if (hasDecommissionDate()) { hash = (37 * hash) + DECOMMISSION_DATE_FIELD_NUMBER; hash = (53 * hash) + getDecommissionDate().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime 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 com.google.cloud.functions.v2.ListRuntimesResponse.Runtime parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime 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 com.google.cloud.functions.v2.ListRuntimesResponse.Runtime parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime 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( com.google.cloud.functions.v2.ListRuntimesResponse.Runtime 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; } /** * * *
     * Describes a runtime and any special information (e.g., deprecation status)
     * related to it.
     * 
* * Protobuf type {@code google.cloud.functions.v2.ListRuntimesResponse.Runtime} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.ListRuntimesResponse.Runtime) com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.class, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder.class); } // Construct using com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDeprecationDateFieldBuilder(); getDecommissionDateFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; displayName_ = ""; stage_ = 0; warnings_ = com.google.protobuf.LazyStringArrayList.emptyList(); environment_ = 0; deprecationDate_ = null; if (deprecationDateBuilder_ != null) { deprecationDateBuilder_.dispose(); deprecationDateBuilder_ = null; } decommissionDate_ = null; if (decommissionDateBuilder_ != null) { decommissionDateBuilder_.dispose(); decommissionDateBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_ListRuntimesResponse_Runtime_descriptor; } @java.lang.Override public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime getDefaultInstanceForType() { return com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.getDefaultInstance(); } @java.lang.Override public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime build() { com.google.cloud.functions.v2.ListRuntimesResponse.Runtime result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime buildPartial() { com.google.cloud.functions.v2.ListRuntimesResponse.Runtime result = new com.google.cloud.functions.v2.ListRuntimesResponse.Runtime(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.functions.v2.ListRuntimesResponse.Runtime result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.displayName_ = displayName_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.stage_ = stage_; } if (((from_bitField0_ & 0x00000008) != 0)) { warnings_.makeImmutable(); result.warnings_ = warnings_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.environment_ = environment_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000020) != 0)) { result.deprecationDate_ = deprecationDateBuilder_ == null ? deprecationDate_ : deprecationDateBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000040) != 0)) { result.decommissionDate_ = decommissionDateBuilder_ == null ? decommissionDate_ : decommissionDateBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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 com.google.cloud.functions.v2.ListRuntimesResponse.Runtime) { return mergeFrom((com.google.cloud.functions.v2.ListRuntimesResponse.Runtime) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.functions.v2.ListRuntimesResponse.Runtime other) { if (other == com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; bitField0_ |= 0x00000002; onChanged(); } if (other.stage_ != 0) { setStageValue(other.getStageValue()); } if (!other.warnings_.isEmpty()) { if (warnings_.isEmpty()) { warnings_ = other.warnings_; bitField0_ |= 0x00000008; } else { ensureWarningsIsMutable(); warnings_.addAll(other.warnings_); } onChanged(); } if (other.environment_ != 0) { setEnvironmentValue(other.getEnvironmentValue()); } if (other.hasDeprecationDate()) { mergeDeprecationDate(other.getDeprecationDate()); } if (other.hasDecommissionDate()) { mergeDecommissionDate(other.getDecommissionDate()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { stage_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 16 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureWarningsIsMutable(); warnings_.add(s); break; } // case 26 case 32: { environment_ = input.readEnum(); bitField0_ |= 0x00000010; break; } // case 32 case 42: { displayName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 42 case 50: { input.readMessage( getDeprecationDateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage( getDecommissionDateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
       * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
       * 
* * string name = 1; * * @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; } } /** * * *
       * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
       * 
* * string name = 1; * * @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; } } /** * * *
       * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
       * 
* * string name = 1; * * @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; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
       * 
* * string name = 1; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
       * 
* * string name = 1; * * @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; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object displayName_ = ""; /** * * *
       * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
       * 
* * string display_name = 5; * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
       * 
* * string display_name = 5; * * @return The bytes for displayName. */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
       * 
* * string display_name = 5; * * @param value The displayName to set. * @return This builder for chaining. */ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
       * 
* * string display_name = 5; * * @return This builder for chaining. */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
       * 
* * string display_name = 5; * * @param value The bytes for displayName to set. * @return This builder for chaining. */ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private int stage_ = 0; /** * * *
       * The stage of life this runtime is in, e.g., BETA, GA, etc.
       * 
* * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; * * @return The enum numeric value on the wire for stage. */ @java.lang.Override public int getStageValue() { return stage_; } /** * * *
       * The stage of life this runtime is in, e.g., BETA, GA, etc.
       * 
* * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; * * @param value The enum numeric value on the wire for stage to set. * @return This builder for chaining. */ public Builder setStageValue(int value) { stage_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * The stage of life this runtime is in, e.g., BETA, GA, etc.
       * 
* * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; * * @return The stage. */ @java.lang.Override public com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage getStage() { com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage result = com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage.forNumber(stage_); return result == null ? com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage.UNRECOGNIZED : result; } /** * * *
       * The stage of life this runtime is in, e.g., BETA, GA, etc.
       * 
* * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; * * @param value The stage to set. * @return This builder for chaining. */ public Builder setStage( com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; stage_ = value.getNumber(); onChanged(); return this; } /** * * *
       * The stage of life this runtime is in, e.g., BETA, GA, etc.
       * 
* * .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2; * * @return This builder for chaining. */ public Builder clearStage() { bitField0_ = (bitField0_ & ~0x00000004); stage_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList warnings_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureWarningsIsMutable() { if (!warnings_.isModifiable()) { warnings_ = new com.google.protobuf.LazyStringArrayList(warnings_); } bitField0_ |= 0x00000008; } /** * * *
       * Warning messages, e.g., a deprecation warning.
       * 
* * repeated string warnings = 3; * * @return A list containing the warnings. */ public com.google.protobuf.ProtocolStringList getWarningsList() { warnings_.makeImmutable(); return warnings_; } /** * * *
       * Warning messages, e.g., a deprecation warning.
       * 
* * repeated string warnings = 3; * * @return The count of warnings. */ public int getWarningsCount() { return warnings_.size(); } /** * * *
       * Warning messages, e.g., a deprecation warning.
       * 
* * repeated string warnings = 3; * * @param index The index of the element to return. * @return The warnings at the given index. */ public java.lang.String getWarnings(int index) { return warnings_.get(index); } /** * * *
       * Warning messages, e.g., a deprecation warning.
       * 
* * repeated string warnings = 3; * * @param index The index of the value to return. * @return The bytes of the warnings at the given index. */ public com.google.protobuf.ByteString getWarningsBytes(int index) { return warnings_.getByteString(index); } /** * * *
       * Warning messages, e.g., a deprecation warning.
       * 
* * repeated string warnings = 3; * * @param index The index to set the value at. * @param value The warnings to set. * @return This builder for chaining. */ public Builder setWarnings(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureWarningsIsMutable(); warnings_.set(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Warning messages, e.g., a deprecation warning.
       * 
* * repeated string warnings = 3; * * @param value The warnings to add. * @return This builder for chaining. */ public Builder addWarnings(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureWarningsIsMutable(); warnings_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Warning messages, e.g., a deprecation warning.
       * 
* * repeated string warnings = 3; * * @param values The warnings to add. * @return This builder for chaining. */ public Builder addAllWarnings(java.lang.Iterable values) { ensureWarningsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * Warning messages, e.g., a deprecation warning.
       * 
* * repeated string warnings = 3; * * @return This builder for chaining. */ public Builder clearWarnings() { warnings_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); ; onChanged(); return this; } /** * * *
       * Warning messages, e.g., a deprecation warning.
       * 
* * repeated string warnings = 3; * * @param value The bytes of the warnings to add. * @return This builder for chaining. */ public Builder addWarningsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureWarningsIsMutable(); warnings_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } private int environment_ = 0; /** * * *
       * The environment for the runtime.
       * 
* * .google.cloud.functions.v2.Environment environment = 4; * * @return The enum numeric value on the wire for environment. */ @java.lang.Override public int getEnvironmentValue() { return environment_; } /** * * *
       * The environment for the runtime.
       * 
* * .google.cloud.functions.v2.Environment environment = 4; * * @param value The enum numeric value on the wire for environment to set. * @return This builder for chaining. */ public Builder setEnvironmentValue(int value) { environment_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
       * The environment for the runtime.
       * 
* * .google.cloud.functions.v2.Environment environment = 4; * * @return The environment. */ @java.lang.Override public com.google.cloud.functions.v2.Environment getEnvironment() { com.google.cloud.functions.v2.Environment result = com.google.cloud.functions.v2.Environment.forNumber(environment_); return result == null ? com.google.cloud.functions.v2.Environment.UNRECOGNIZED : result; } /** * * *
       * The environment for the runtime.
       * 
* * .google.cloud.functions.v2.Environment environment = 4; * * @param value The environment to set. * @return This builder for chaining. */ public Builder setEnvironment(com.google.cloud.functions.v2.Environment value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; environment_ = value.getNumber(); onChanged(); return this; } /** * * *
       * The environment for the runtime.
       * 
* * .google.cloud.functions.v2.Environment environment = 4; * * @return This builder for chaining. */ public Builder clearEnvironment() { bitField0_ = (bitField0_ & ~0x00000010); environment_ = 0; onChanged(); return this; } private com.google.type.Date deprecationDate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> deprecationDateBuilder_; /** * * *
       * Deprecation date for the runtime.
       * 
* * .google.type.Date deprecation_date = 6; * * @return Whether the deprecationDate field is set. */ public boolean hasDeprecationDate() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
       * Deprecation date for the runtime.
       * 
* * .google.type.Date deprecation_date = 6; * * @return The deprecationDate. */ public com.google.type.Date getDeprecationDate() { if (deprecationDateBuilder_ == null) { return deprecationDate_ == null ? com.google.type.Date.getDefaultInstance() : deprecationDate_; } else { return deprecationDateBuilder_.getMessage(); } } /** * * *
       * Deprecation date for the runtime.
       * 
* * .google.type.Date deprecation_date = 6; */ public Builder setDeprecationDate(com.google.type.Date value) { if (deprecationDateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } deprecationDate_ = value; } else { deprecationDateBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
       * Deprecation date for the runtime.
       * 
* * .google.type.Date deprecation_date = 6; */ public Builder setDeprecationDate(com.google.type.Date.Builder builderForValue) { if (deprecationDateBuilder_ == null) { deprecationDate_ = builderForValue.build(); } else { deprecationDateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
       * Deprecation date for the runtime.
       * 
* * .google.type.Date deprecation_date = 6; */ public Builder mergeDeprecationDate(com.google.type.Date value) { if (deprecationDateBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && deprecationDate_ != null && deprecationDate_ != com.google.type.Date.getDefaultInstance()) { getDeprecationDateBuilder().mergeFrom(value); } else { deprecationDate_ = value; } } else { deprecationDateBuilder_.mergeFrom(value); } if (deprecationDate_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** * * *
       * Deprecation date for the runtime.
       * 
* * .google.type.Date deprecation_date = 6; */ public Builder clearDeprecationDate() { bitField0_ = (bitField0_ & ~0x00000020); deprecationDate_ = null; if (deprecationDateBuilder_ != null) { deprecationDateBuilder_.dispose(); deprecationDateBuilder_ = null; } onChanged(); return this; } /** * * *
       * Deprecation date for the runtime.
       * 
* * .google.type.Date deprecation_date = 6; */ public com.google.type.Date.Builder getDeprecationDateBuilder() { bitField0_ |= 0x00000020; onChanged(); return getDeprecationDateFieldBuilder().getBuilder(); } /** * * *
       * Deprecation date for the runtime.
       * 
* * .google.type.Date deprecation_date = 6; */ public com.google.type.DateOrBuilder getDeprecationDateOrBuilder() { if (deprecationDateBuilder_ != null) { return deprecationDateBuilder_.getMessageOrBuilder(); } else { return deprecationDate_ == null ? com.google.type.Date.getDefaultInstance() : deprecationDate_; } } /** * * *
       * Deprecation date for the runtime.
       * 
* * .google.type.Date deprecation_date = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> getDeprecationDateFieldBuilder() { if (deprecationDateBuilder_ == null) { deprecationDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( getDeprecationDate(), getParentForChildren(), isClean()); deprecationDate_ = null; } return deprecationDateBuilder_; } private com.google.type.Date decommissionDate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> decommissionDateBuilder_; /** * * *
       * Decommission date for the runtime.
       * 
* * .google.type.Date decommission_date = 7; * * @return Whether the decommissionDate field is set. */ public boolean hasDecommissionDate() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
       * Decommission date for the runtime.
       * 
* * .google.type.Date decommission_date = 7; * * @return The decommissionDate. */ public com.google.type.Date getDecommissionDate() { if (decommissionDateBuilder_ == null) { return decommissionDate_ == null ? com.google.type.Date.getDefaultInstance() : decommissionDate_; } else { return decommissionDateBuilder_.getMessage(); } } /** * * *
       * Decommission date for the runtime.
       * 
* * .google.type.Date decommission_date = 7; */ public Builder setDecommissionDate(com.google.type.Date value) { if (decommissionDateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } decommissionDate_ = value; } else { decommissionDateBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
       * Decommission date for the runtime.
       * 
* * .google.type.Date decommission_date = 7; */ public Builder setDecommissionDate(com.google.type.Date.Builder builderForValue) { if (decommissionDateBuilder_ == null) { decommissionDate_ = builderForValue.build(); } else { decommissionDateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
       * Decommission date for the runtime.
       * 
* * .google.type.Date decommission_date = 7; */ public Builder mergeDecommissionDate(com.google.type.Date value) { if (decommissionDateBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && decommissionDate_ != null && decommissionDate_ != com.google.type.Date.getDefaultInstance()) { getDecommissionDateBuilder().mergeFrom(value); } else { decommissionDate_ = value; } } else { decommissionDateBuilder_.mergeFrom(value); } if (decommissionDate_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** * * *
       * Decommission date for the runtime.
       * 
* * .google.type.Date decommission_date = 7; */ public Builder clearDecommissionDate() { bitField0_ = (bitField0_ & ~0x00000040); decommissionDate_ = null; if (decommissionDateBuilder_ != null) { decommissionDateBuilder_.dispose(); decommissionDateBuilder_ = null; } onChanged(); return this; } /** * * *
       * Decommission date for the runtime.
       * 
* * .google.type.Date decommission_date = 7; */ public com.google.type.Date.Builder getDecommissionDateBuilder() { bitField0_ |= 0x00000040; onChanged(); return getDecommissionDateFieldBuilder().getBuilder(); } /** * * *
       * Decommission date for the runtime.
       * 
* * .google.type.Date decommission_date = 7; */ public com.google.type.DateOrBuilder getDecommissionDateOrBuilder() { if (decommissionDateBuilder_ != null) { return decommissionDateBuilder_.getMessageOrBuilder(); } else { return decommissionDate_ == null ? com.google.type.Date.getDefaultInstance() : decommissionDate_; } } /** * * *
       * Decommission date for the runtime.
       * 
* * .google.type.Date decommission_date = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> getDecommissionDateFieldBuilder() { if (decommissionDateBuilder_ == null) { decommissionDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( getDecommissionDate(), getParentForChildren(), isClean()); decommissionDate_ = null; } return decommissionDateBuilder_; } @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:google.cloud.functions.v2.ListRuntimesResponse.Runtime) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.ListRuntimesResponse.Runtime) private static final com.google.cloud.functions.v2.ListRuntimesResponse.Runtime DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.ListRuntimesResponse.Runtime(); } public static com.google.cloud.functions.v2.ListRuntimesResponse.Runtime getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Runtime parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int RUNTIMES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List runtimes_; /** * * *
   * The runtimes that match the request.
   * 
* * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ @java.lang.Override public java.util.List getRuntimesList() { return runtimes_; } /** * * *
   * The runtimes that match the request.
   * 
* * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ @java.lang.Override public java.util.List< ? extends com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder> getRuntimesOrBuilderList() { return runtimes_; } /** * * *
   * The runtimes that match the request.
   * 
* * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ @java.lang.Override public int getRuntimesCount() { return runtimes_.size(); } /** * * *
   * The runtimes that match the request.
   * 
* * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ @java.lang.Override public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime getRuntimes(int index) { return runtimes_.get(index); } /** * * *
   * The runtimes that match the request.
   * 
* * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ @java.lang.Override public com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder getRuntimesOrBuilder( int index) { return runtimes_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < runtimes_.size(); i++) { output.writeMessage(1, runtimes_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < runtimes_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, runtimes_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.functions.v2.ListRuntimesResponse)) { return super.equals(obj); } com.google.cloud.functions.v2.ListRuntimesResponse other = (com.google.cloud.functions.v2.ListRuntimesResponse) obj; if (!getRuntimesList().equals(other.getRuntimesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getRuntimesCount() > 0) { hash = (37 * hash) + RUNTIMES_FIELD_NUMBER; hash = (53 * hash) + getRuntimesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.functions.v2.ListRuntimesResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.functions.v2.ListRuntimesResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.functions.v2.ListRuntimesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.functions.v2.ListRuntimesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.functions.v2.ListRuntimesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.functions.v2.ListRuntimesResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.functions.v2.ListRuntimesResponse parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.functions.v2.ListRuntimesResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.functions.v2.ListRuntimesResponse parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.functions.v2.ListRuntimesResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.functions.v2.ListRuntimesResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.functions.v2.ListRuntimesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.cloud.functions.v2.ListRuntimesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * Response for the `ListRuntimes` method.
   * 
* * Protobuf type {@code google.cloud.functions.v2.ListRuntimesResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.functions.v2.ListRuntimesResponse) com.google.cloud.functions.v2.ListRuntimesResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_ListRuntimesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_ListRuntimesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.functions.v2.ListRuntimesResponse.class, com.google.cloud.functions.v2.ListRuntimesResponse.Builder.class); } // Construct using com.google.cloud.functions.v2.ListRuntimesResponse.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (runtimesBuilder_ == null) { runtimes_ = java.util.Collections.emptyList(); } else { runtimes_ = null; runtimesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.functions.v2.FunctionsProto .internal_static_google_cloud_functions_v2_ListRuntimesResponse_descriptor; } @java.lang.Override public com.google.cloud.functions.v2.ListRuntimesResponse getDefaultInstanceForType() { return com.google.cloud.functions.v2.ListRuntimesResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.functions.v2.ListRuntimesResponse build() { com.google.cloud.functions.v2.ListRuntimesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.functions.v2.ListRuntimesResponse buildPartial() { com.google.cloud.functions.v2.ListRuntimesResponse result = new com.google.cloud.functions.v2.ListRuntimesResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.cloud.functions.v2.ListRuntimesResponse result) { if (runtimesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { runtimes_ = java.util.Collections.unmodifiableList(runtimes_); bitField0_ = (bitField0_ & ~0x00000001); } result.runtimes_ = runtimes_; } else { result.runtimes_ = runtimesBuilder_.build(); } } private void buildPartial0(com.google.cloud.functions.v2.ListRuntimesResponse result) { int from_bitField0_ = bitField0_; } @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 com.google.cloud.functions.v2.ListRuntimesResponse) { return mergeFrom((com.google.cloud.functions.v2.ListRuntimesResponse) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.functions.v2.ListRuntimesResponse other) { if (other == com.google.cloud.functions.v2.ListRuntimesResponse.getDefaultInstance()) return this; if (runtimesBuilder_ == null) { if (!other.runtimes_.isEmpty()) { if (runtimes_.isEmpty()) { runtimes_ = other.runtimes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRuntimesIsMutable(); runtimes_.addAll(other.runtimes_); } onChanged(); } } else { if (!other.runtimes_.isEmpty()) { if (runtimesBuilder_.isEmpty()) { runtimesBuilder_.dispose(); runtimesBuilder_ = null; runtimes_ = other.runtimes_; bitField0_ = (bitField0_ & ~0x00000001); runtimesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRuntimesFieldBuilder() : null; } else { runtimesBuilder_.addAllMessages(other.runtimes_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.cloud.functions.v2.ListRuntimesResponse.Runtime m = input.readMessage( com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.parser(), extensionRegistry); if (runtimesBuilder_ == null) { ensureRuntimesIsMutable(); runtimes_.add(m); } else { runtimesBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List runtimes_ = java.util.Collections.emptyList(); private void ensureRuntimesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { runtimes_ = new java.util.ArrayList( runtimes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.functions.v2.ListRuntimesResponse.Runtime, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder, com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder> runtimesBuilder_; /** * * *
     * The runtimes that match the request.
     * 
* * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ public java.util.List getRuntimesList() { if (runtimesBuilder_ == null) { return java.util.Collections.unmodifiableList(runtimes_); } else { return runtimesBuilder_.getMessageList(); } } /** * * *
     * The runtimes that match the request.
     * 
* * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ public int getRuntimesCount() { if (runtimesBuilder_ == null) { return runtimes_.size(); } else { return runtimesBuilder_.getCount(); } } /** * * *
     * The runtimes that match the request.
     * 
* * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime getRuntimes(int index) { if (runtimesBuilder_ == null) { return runtimes_.get(index); } else { return runtimesBuilder_.getMessage(index); } } /** * * *
     * The runtimes that match the request.
     * 
* * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder setRuntimes( int index, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime value) { if (runtimesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRuntimesIsMutable(); runtimes_.set(index, value); onChanged(); } else { runtimesBuilder_.setMessage(index, value); } return this; } /** * * *
     * The runtimes that match the request.
     * 
* * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder setRuntimes( int index, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder builderForValue) { if (runtimesBuilder_ == null) { ensureRuntimesIsMutable(); runtimes_.set(index, builderForValue.build()); onChanged(); } else { runtimesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * The runtimes that match the request.
     * 
* * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder addRuntimes(com.google.cloud.functions.v2.ListRuntimesResponse.Runtime value) { if (runtimesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRuntimesIsMutable(); runtimes_.add(value); onChanged(); } else { runtimesBuilder_.addMessage(value); } return this; } /** * * *
     * The runtimes that match the request.
     * 
* * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder addRuntimes( int index, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime value) { if (runtimesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRuntimesIsMutable(); runtimes_.add(index, value); onChanged(); } else { runtimesBuilder_.addMessage(index, value); } return this; } /** * * *
     * The runtimes that match the request.
     * 
* * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder addRuntimes( com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder builderForValue) { if (runtimesBuilder_ == null) { ensureRuntimesIsMutable(); runtimes_.add(builderForValue.build()); onChanged(); } else { runtimesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * The runtimes that match the request.
     * 
* * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder addRuntimes( int index, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder builderForValue) { if (runtimesBuilder_ == null) { ensureRuntimesIsMutable(); runtimes_.add(index, builderForValue.build()); onChanged(); } else { runtimesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * The runtimes that match the request.
     * 
* * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder addAllRuntimes( java.lang.Iterable values) { if (runtimesBuilder_ == null) { ensureRuntimesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, runtimes_); onChanged(); } else { runtimesBuilder_.addAllMessages(values); } return this; } /** * * *
     * The runtimes that match the request.
     * 
* * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder clearRuntimes() { if (runtimesBuilder_ == null) { runtimes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { runtimesBuilder_.clear(); } return this; } /** * * *
     * The runtimes that match the request.
     * 
* * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ public Builder removeRuntimes(int index) { if (runtimesBuilder_ == null) { ensureRuntimesIsMutable(); runtimes_.remove(index); onChanged(); } else { runtimesBuilder_.remove(index); } return this; } /** * * *
     * The runtimes that match the request.
     * 
* * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder getRuntimesBuilder( int index) { return getRuntimesFieldBuilder().getBuilder(index); } /** * * *
     * The runtimes that match the request.
     * 
* * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ public com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder getRuntimesOrBuilder( int index) { if (runtimesBuilder_ == null) { return runtimes_.get(index); } else { return runtimesBuilder_.getMessageOrBuilder(index); } } /** * * *
     * The runtimes that match the request.
     * 
* * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ public java.util.List< ? extends com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder> getRuntimesOrBuilderList() { if (runtimesBuilder_ != null) { return runtimesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(runtimes_); } } /** * * *
     * The runtimes that match the request.
     * 
* * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder addRuntimesBuilder() { return getRuntimesFieldBuilder() .addBuilder( com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.getDefaultInstance()); } /** * * *
     * The runtimes that match the request.
     * 
* * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ public com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder addRuntimesBuilder( int index) { return getRuntimesFieldBuilder() .addBuilder( index, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.getDefaultInstance()); } /** * * *
     * The runtimes that match the request.
     * 
* * repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1; */ public java.util.List getRuntimesBuilderList() { return getRuntimesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.functions.v2.ListRuntimesResponse.Runtime, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder, com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder> getRuntimesFieldBuilder() { if (runtimesBuilder_ == null) { runtimesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.functions.v2.ListRuntimesResponse.Runtime, com.google.cloud.functions.v2.ListRuntimesResponse.Runtime.Builder, com.google.cloud.functions.v2.ListRuntimesResponse.RuntimeOrBuilder>( runtimes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); runtimes_ = null; } return runtimesBuilder_; } @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:google.cloud.functions.v2.ListRuntimesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.functions.v2.ListRuntimesResponse) private static final com.google.cloud.functions.v2.ListRuntimesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.functions.v2.ListRuntimesResponse(); } public static com.google.cloud.functions.v2.ListRuntimesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListRuntimesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.functions.v2.ListRuntimesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy