Class LocationMetadata.Builder (2.25.0)

public static final class LocationMetadata.Builder extends GeneratedMessageV3.Builder<LocationMetadata.Builder> implements LocationMetadataOrBuilder

Extra GCF specific location information.

Protobuf type google.cloud.functions.v2beta.LocationMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllEnvironments(Iterable<? extends Environment> values)

public LocationMetadata.Builder addAllEnvironments(Iterable<? extends Environment> values)

The Cloud Function environments this location supports.

repeated .google.cloud.functions.v2beta.Environment environments = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.functions.v2beta.Environment>

The environments to add.

Returns
TypeDescription
LocationMetadata.Builder

This builder for chaining.

addAllEnvironmentsValue(Iterable<Integer> values)

public LocationMetadata.Builder addAllEnvironmentsValue(Iterable<Integer> values)

The Cloud Function environments this location supports.

repeated .google.cloud.functions.v2beta.Environment environments = 1;

Parameter
NameDescription
valuesIterable<Integer>

The enum numeric values on the wire for environments to add.

Returns
TypeDescription
LocationMetadata.Builder

This builder for chaining.

addEnvironments(Environment value)

public LocationMetadata.Builder addEnvironments(Environment value)

The Cloud Function environments this location supports.

repeated .google.cloud.functions.v2beta.Environment environments = 1;

Parameter
NameDescription
valueEnvironment

The environments to add.

Returns
TypeDescription
LocationMetadata.Builder

This builder for chaining.

addEnvironmentsValue(int value)

public LocationMetadata.Builder addEnvironmentsValue(int value)

The Cloud Function environments this location supports.

repeated .google.cloud.functions.v2beta.Environment environments = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for environments to add.

Returns
TypeDescription
LocationMetadata.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LocationMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LocationMetadata.Builder
Overrides

build()

public LocationMetadata build()
Returns
TypeDescription
LocationMetadata

buildPartial()

public LocationMetadata buildPartial()
Returns
TypeDescription
LocationMetadata

clear()

public LocationMetadata.Builder clear()
Returns
TypeDescription
LocationMetadata.Builder
Overrides

clearEnvironments()

public LocationMetadata.Builder clearEnvironments()

The Cloud Function environments this location supports.

repeated .google.cloud.functions.v2beta.Environment environments = 1;

Returns
TypeDescription
LocationMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public LocationMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
LocationMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public LocationMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
LocationMetadata.Builder
Overrides

clone()

public LocationMetadata.Builder clone()
Returns
TypeDescription
LocationMetadata.Builder
Overrides

getDefaultInstanceForType()

public LocationMetadata getDefaultInstanceForType()
Returns
TypeDescription
LocationMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnvironments(int index)

public Environment getEnvironments(int index)

The Cloud Function environments this location supports.

repeated .google.cloud.functions.v2beta.Environment environments = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
Environment

The environments at the given index.

getEnvironmentsCount()

public int getEnvironmentsCount()

The Cloud Function environments this location supports.

repeated .google.cloud.functions.v2beta.Environment environments = 1;

Returns
TypeDescription
int

The count of environments.

getEnvironmentsList()

public List<Environment> getEnvironmentsList()

The Cloud Function environments this location supports.

repeated .google.cloud.functions.v2beta.Environment environments = 1;

Returns
TypeDescription
List<Environment>

A list containing the environments.

getEnvironmentsValue(int index)

public int getEnvironmentsValue(int index)

The Cloud Function environments this location supports.

repeated .google.cloud.functions.v2beta.Environment environments = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of environments at the given index.

getEnvironmentsValueList()

public List<Integer> getEnvironmentsValueList()

The Cloud Function environments this location supports.

repeated .google.cloud.functions.v2beta.Environment environments = 1;

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for environments.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LocationMetadata other)

public LocationMetadata.Builder mergeFrom(LocationMetadata other)
Parameter
NameDescription
otherLocationMetadata
Returns
TypeDescription
LocationMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LocationMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocationMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public LocationMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
LocationMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LocationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LocationMetadata.Builder
Overrides

setEnvironments(int index, Environment value)

public LocationMetadata.Builder setEnvironments(int index, Environment value)

The Cloud Function environments this location supports.

repeated .google.cloud.functions.v2beta.Environment environments = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueEnvironment

The environments to set.

Returns
TypeDescription
LocationMetadata.Builder

This builder for chaining.

setEnvironmentsValue(int index, int value)

public LocationMetadata.Builder setEnvironmentsValue(int index, int value)

The Cloud Function environments this location supports.

repeated .google.cloud.functions.v2beta.Environment environments = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
LocationMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public LocationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LocationMetadata.Builder
Overrides

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

public LocationMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LocationMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LocationMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LocationMetadata.Builder
Overrides