Class LocationMetadata.Builder (2.44.0)

publicstaticfinalclass LocationMetadata.BuilderextendsGeneratedMessageV3.Builder<LocationMetadata.Builder>implementsLocationMetadataOrBuilder

Extra GCF specific location information.

Protobuf type google.cloud.functions.v2alpha.LocationMetadata

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAllEnvironments(Iterable<? extends Environment> values)

publicLocationMetadata.BuilderaddAllEnvironments(Iterable<?extendsEnvironment>values)

The Cloud Function environments this location supports.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.functions.v2alpha.Environment>

The environments to add.

Returns
Type Description
LocationMetadata.Builder

This builder for chaining.

addAllEnvironmentsValue(Iterable<Integer> values)

publicLocationMetadata.BuilderaddAllEnvironmentsValue(Iterable<Integer>values)

The Cloud Function environments this location supports.

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

Parameter
Name Description
values Iterable<Integer>

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

Returns
Type Description
LocationMetadata.Builder

This builder for chaining.

addEnvironments(Environment value)

publicLocationMetadata.BuilderaddEnvironments(Environmentvalue)

The Cloud Function environments this location supports.

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

Parameter
Name Description
value Environment

The environments to add.

Returns
Type Description
LocationMetadata.Builder

This builder for chaining.

addEnvironmentsValue(int value)

publicLocationMetadata.BuilderaddEnvironmentsValue(intvalue)

The Cloud Function environments this location supports.

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

Parameter
Name Description
value int

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

Returns
Type Description
LocationMetadata.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicLocationMetadata.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LocationMetadata.Builder
Overrides

build()

publicLocationMetadatabuild()
Returns
Type Description
LocationMetadata

buildPartial()

publicLocationMetadatabuildPartial()
Returns
Type Description
LocationMetadata

clear()

publicLocationMetadata.Builderclear()
Returns
Type Description
LocationMetadata.Builder
Overrides

clearEnvironments()

publicLocationMetadata.BuilderclearEnvironments()

The Cloud Function environments this location supports.

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

Returns
Type Description
LocationMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicLocationMetadata.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LocationMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicLocationMetadata.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LocationMetadata.Builder
Overrides

clone()

publicLocationMetadata.Builderclone()
Returns
Type Description
LocationMetadata.Builder
Overrides

getDefaultInstanceForType()

publicLocationMetadatagetDefaultInstanceForType()
Returns
Type Description
LocationMetadata

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnvironments(int index)

publicEnvironmentgetEnvironments(intindex)

The Cloud Function environments this location supports.

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
Environment

The environments at the given index.

getEnvironmentsCount()

publicintgetEnvironmentsCount()

The Cloud Function environments this location supports.

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

Returns
Type Description
int

The count of environments.

getEnvironmentsList()

publicList<Environment>getEnvironmentsList()

The Cloud Function environments this location supports.

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

Returns
Type Description
List<Environment>

A list containing the environments.

getEnvironmentsValue(int index)

publicintgetEnvironmentsValue(intindex)

The Cloud Function environments this location supports.

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

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

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

getEnvironmentsValueList()

publicList<Integer>getEnvironmentsValueList()

The Cloud Function environments this location supports.

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

Returns
Type Description
List<Integer>

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

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LocationMetadata other)

publicLocationMetadata.BuildermergeFrom(LocationMetadataother)
Parameter
Name Description
other LocationMetadata
Returns
Type Description
LocationMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicLocationMetadata.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LocationMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicLocationMetadata.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
LocationMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalLocationMetadata.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LocationMetadata.Builder
Overrides

setEnvironments(int index, Environment value)

publicLocationMetadata.BuildersetEnvironments(intindex,Environmentvalue)

The Cloud Function environments this location supports.

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

Parameters
Name Description
index int

The index to set the value at.

value Environment

The environments to set.

Returns
Type Description
LocationMetadata.Builder

This builder for chaining.

setEnvironmentsValue(int index, int value)

publicLocationMetadata.BuildersetEnvironmentsValue(intindex,intvalue)

The Cloud Function environments this location supports.

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

Parameters
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
LocationMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicLocationMetadata.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LocationMetadata.Builder
Overrides

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

publicLocationMetadata.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LocationMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalLocationMetadata.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LocationMetadata.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.