Class ListRuntimesResponse.Runtime.Builder (2.50.0)

public static final class ListRuntimesResponse.Runtime.Builder extends GeneratedMessageV3.Builder<ListRuntimesResponse.Runtime.Builder> implements ListRuntimesResponse.RuntimeOrBuilder

Describes a runtime and any special information (e.g., deprecation status) related to it.

Protobuf type google.cloud.functions.v2.ListRuntimesResponse.Runtime

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllWarnings(Iterable<String> values)

public ListRuntimesResponse.Runtime.Builder addAllWarnings(Iterable<String> values)

Warning messages, e.g., a deprecation warning.

repeated string warnings = 3;

Parameter
Name Description
values Iterable<String>

The warnings to add.

Returns
Type Description
ListRuntimesResponse.Runtime.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListRuntimesResponse.Runtime.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListRuntimesResponse.Runtime.Builder
Overrides

addWarnings(String value)

public ListRuntimesResponse.Runtime.Builder addWarnings(String value)

Warning messages, e.g., a deprecation warning.

repeated string warnings = 3;

Parameter
Name Description
value String

The warnings to add.

Returns
Type Description
ListRuntimesResponse.Runtime.Builder

This builder for chaining.

addWarningsBytes(ByteString value)

public ListRuntimesResponse.Runtime.Builder addWarningsBytes(ByteString value)

Warning messages, e.g., a deprecation warning.

repeated string warnings = 3;

Parameter
Name Description
value ByteString

The bytes of the warnings to add.

Returns
Type Description
ListRuntimesResponse.Runtime.Builder

This builder for chaining.

build()

public ListRuntimesResponse.Runtime build()
Returns
Type Description
ListRuntimesResponse.Runtime

buildPartial()

public ListRuntimesResponse.Runtime buildPartial()
Returns
Type Description
ListRuntimesResponse.Runtime

clear()

public ListRuntimesResponse.Runtime.Builder clear()
Returns
Type Description
ListRuntimesResponse.Runtime.Builder
Overrides

clearDecommissionDate()

public ListRuntimesResponse.Runtime.Builder clearDecommissionDate()

Decommission date for the runtime.

.google.type.Date decommission_date = 7;

Returns
Type Description
ListRuntimesResponse.Runtime.Builder

clearDeprecationDate()

public ListRuntimesResponse.Runtime.Builder clearDeprecationDate()

Deprecation date for the runtime.

.google.type.Date deprecation_date = 6;

Returns
Type Description
ListRuntimesResponse.Runtime.Builder

clearDisplayName()

public ListRuntimesResponse.Runtime.Builder clearDisplayName()

The user facing name, eg 'Go 1.13', 'Node.js 12', etc.

string display_name = 5;

Returns
Type Description
ListRuntimesResponse.Runtime.Builder

This builder for chaining.

clearEnvironment()

public ListRuntimesResponse.Runtime.Builder clearEnvironment()

The environment for the runtime.

.google.cloud.functions.v2.Environment environment = 4;

Returns
Type Description
ListRuntimesResponse.Runtime.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ListRuntimesResponse.Runtime.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListRuntimesResponse.Runtime.Builder
Overrides

clearName()

public ListRuntimesResponse.Runtime.Builder clearName()

The name of the runtime, e.g., 'go113', 'nodejs12', etc.

string name = 1;

Returns
Type Description
ListRuntimesResponse.Runtime.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListRuntimesResponse.Runtime.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListRuntimesResponse.Runtime.Builder
Overrides

clearStage()

public ListRuntimesResponse.Runtime.Builder clearStage()

The stage of life this runtime is in, e.g., BETA, GA, etc.

.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2;

Returns
Type Description
ListRuntimesResponse.Runtime.Builder

This builder for chaining.

clearWarnings()

public ListRuntimesResponse.Runtime.Builder clearWarnings()

Warning messages, e.g., a deprecation warning.

repeated string warnings = 3;

Returns
Type Description
ListRuntimesResponse.Runtime.Builder

This builder for chaining.

clone()

public ListRuntimesResponse.Runtime.Builder clone()
Returns
Type Description
ListRuntimesResponse.Runtime.Builder
Overrides

getDecommissionDate()

public Date getDecommissionDate()

Decommission date for the runtime.

.google.type.Date decommission_date = 7;

Returns
Type Description
com.google.type.Date

The decommissionDate.

getDecommissionDateBuilder()

public Date.Builder getDecommissionDateBuilder()

Decommission date for the runtime.

.google.type.Date decommission_date = 7;

Returns
Type Description
com.google.type.Date.Builder

getDecommissionDateOrBuilder()

public DateOrBuilder getDecommissionDateOrBuilder()

Decommission date for the runtime.

.google.type.Date decommission_date = 7;

Returns
Type Description
com.google.type.DateOrBuilder

getDefaultInstanceForType()

public ListRuntimesResponse.Runtime getDefaultInstanceForType()
Returns
Type Description
ListRuntimesResponse.Runtime

getDeprecationDate()

public Date getDeprecationDate()

Deprecation date for the runtime.

.google.type.Date deprecation_date = 6;

Returns
Type Description
com.google.type.Date

The deprecationDate.

getDeprecationDateBuilder()

public Date.Builder getDeprecationDateBuilder()

Deprecation date for the runtime.

.google.type.Date deprecation_date = 6;

Returns
Type Description
com.google.type.Date.Builder

getDeprecationDateOrBuilder()

public DateOrBuilder getDeprecationDateOrBuilder()

Deprecation date for the runtime.

.google.type.Date deprecation_date = 6;

Returns
Type Description
com.google.type.DateOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The user facing name, eg 'Go 1.13', 'Node.js 12', etc.

string display_name = 5;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The user facing name, eg 'Go 1.13', 'Node.js 12', etc.

string display_name = 5;

Returns
Type Description
ByteString

The bytes for displayName.

getEnvironment()

public Environment getEnvironment()

The environment for the runtime.

.google.cloud.functions.v2.Environment environment = 4;

Returns
Type Description
Environment

The environment.

getEnvironmentValue()

public int getEnvironmentValue()

The environment for the runtime.

.google.cloud.functions.v2.Environment environment = 4;

Returns
Type Description
int

The enum numeric value on the wire for environment.

getName()

public String getName()

The name of the runtime, e.g., 'go113', 'nodejs12', etc.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the runtime, e.g., 'go113', 'nodejs12', etc.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getStage()

public ListRuntimesResponse.RuntimeStage getStage()

The stage of life this runtime is in, e.g., BETA, GA, etc.

.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2;

Returns
Type Description
ListRuntimesResponse.RuntimeStage

The stage.

getStageValue()

public int getStageValue()

The stage of life this runtime is in, e.g., BETA, GA, etc.

.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2;

Returns
Type Description
int

The enum numeric value on the wire for stage.

getWarnings(int index)

public String getWarnings(int index)

Warning messages, e.g., a deprecation warning.

repeated string warnings = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The warnings at the given index.

getWarningsBytes(int index)

public ByteString getWarningsBytes(int index)

Warning messages, e.g., a deprecation warning.

repeated string warnings = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the warnings at the given index.

getWarningsCount()

public int getWarningsCount()

Warning messages, e.g., a deprecation warning.

repeated string warnings = 3;

Returns
Type Description
int

The count of warnings.

getWarningsList()

public ProtocolStringList getWarningsList()

Warning messages, e.g., a deprecation warning.

repeated string warnings = 3;

Returns
Type Description
ProtocolStringList

A list containing the warnings.

hasDecommissionDate()

public boolean hasDecommissionDate()

Decommission date for the runtime.

.google.type.Date decommission_date = 7;

Returns
Type Description
boolean

Whether the decommissionDate field is set.

hasDeprecationDate()

public boolean hasDeprecationDate()

Deprecation date for the runtime.

.google.type.Date deprecation_date = 6;

Returns
Type Description
boolean

Whether the deprecationDate field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDecommissionDate(Date value)

public ListRuntimesResponse.Runtime.Builder mergeDecommissionDate(Date value)

Decommission date for the runtime.

.google.type.Date decommission_date = 7;

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
ListRuntimesResponse.Runtime.Builder

mergeDeprecationDate(Date value)

public ListRuntimesResponse.Runtime.Builder mergeDeprecationDate(Date value)

Deprecation date for the runtime.

.google.type.Date deprecation_date = 6;

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
ListRuntimesResponse.Runtime.Builder

mergeFrom(ListRuntimesResponse.Runtime other)

public ListRuntimesResponse.Runtime.Builder mergeFrom(ListRuntimesResponse.Runtime other)
Parameter
Name Description
other ListRuntimesResponse.Runtime
Returns
Type Description
ListRuntimesResponse.Runtime.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListRuntimesResponse.Runtime.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListRuntimesResponse.Runtime.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListRuntimesResponse.Runtime.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListRuntimesResponse.Runtime.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListRuntimesResponse.Runtime.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListRuntimesResponse.Runtime.Builder
Overrides

setDecommissionDate(Date value)

public ListRuntimesResponse.Runtime.Builder setDecommissionDate(Date value)

Decommission date for the runtime.

.google.type.Date decommission_date = 7;

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
ListRuntimesResponse.Runtime.Builder

setDecommissionDate(Date.Builder builderForValue)

public ListRuntimesResponse.Runtime.Builder setDecommissionDate(Date.Builder builderForValue)

Decommission date for the runtime.

.google.type.Date decommission_date = 7;

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
ListRuntimesResponse.Runtime.Builder

setDeprecationDate(Date value)

public ListRuntimesResponse.Runtime.Builder setDeprecationDate(Date value)

Deprecation date for the runtime.

.google.type.Date deprecation_date = 6;

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
ListRuntimesResponse.Runtime.Builder

setDeprecationDate(Date.Builder builderForValue)

public ListRuntimesResponse.Runtime.Builder setDeprecationDate(Date.Builder builderForValue)

Deprecation date for the runtime.

.google.type.Date deprecation_date = 6;

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
ListRuntimesResponse.Runtime.Builder

setDisplayName(String value)

public ListRuntimesResponse.Runtime.Builder setDisplayName(String value)

The user facing name, eg 'Go 1.13', 'Node.js 12', etc.

string display_name = 5;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
ListRuntimesResponse.Runtime.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ListRuntimesResponse.Runtime.Builder setDisplayNameBytes(ByteString value)

The user facing name, eg 'Go 1.13', 'Node.js 12', etc.

string display_name = 5;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
ListRuntimesResponse.Runtime.Builder

This builder for chaining.

setEnvironment(Environment value)

public ListRuntimesResponse.Runtime.Builder setEnvironment(Environment value)

The environment for the runtime.

.google.cloud.functions.v2.Environment environment = 4;

Parameter
Name Description
value Environment

The environment to set.

Returns
Type Description
ListRuntimesResponse.Runtime.Builder

This builder for chaining.

setEnvironmentValue(int value)

public ListRuntimesResponse.Runtime.Builder setEnvironmentValue(int value)

The environment for the runtime.

.google.cloud.functions.v2.Environment environment = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for environment to set.

Returns
Type Description
ListRuntimesResponse.Runtime.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ListRuntimesResponse.Runtime.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListRuntimesResponse.Runtime.Builder
Overrides

setName(String value)

public ListRuntimesResponse.Runtime.Builder setName(String value)

The name of the runtime, e.g., 'go113', 'nodejs12', etc.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ListRuntimesResponse.Runtime.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ListRuntimesResponse.Runtime.Builder setNameBytes(ByteString value)

The name of the runtime, e.g., 'go113', 'nodejs12', etc.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ListRuntimesResponse.Runtime.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ListRuntimesResponse.Runtime.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListRuntimesResponse.Runtime.Builder
Overrides

setStage(ListRuntimesResponse.RuntimeStage value)

public ListRuntimesResponse.Runtime.Builder setStage(ListRuntimesResponse.RuntimeStage value)

The stage of life this runtime is in, e.g., BETA, GA, etc.

.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2;

Parameter
Name Description
value ListRuntimesResponse.RuntimeStage

The stage to set.

Returns
Type Description
ListRuntimesResponse.Runtime.Builder

This builder for chaining.

setStageValue(int value)

public ListRuntimesResponse.Runtime.Builder setStageValue(int value)

The stage of life this runtime is in, e.g., BETA, GA, etc.

.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for stage to set.

Returns
Type Description
ListRuntimesResponse.Runtime.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ListRuntimesResponse.Runtime.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListRuntimesResponse.Runtime.Builder
Overrides

setWarnings(int index, String value)

public ListRuntimesResponse.Runtime.Builder setWarnings(int index, String value)

Warning messages, e.g., a deprecation warning.

repeated string warnings = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The warnings to set.

Returns
Type Description
ListRuntimesResponse.Runtime.Builder

This builder for chaining.