Class CreateFunctionRequest.Builder (2.62.0)

publicstaticfinalclass CreateFunctionRequest.BuilderextendsGeneratedMessageV3.Builder<CreateFunctionRequest.Builder>implementsCreateFunctionRequestOrBuilder

Request for the CreateFunction method.

Protobuf type google.cloud.functions.v2beta.CreateFunctionRequest

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

publicCreateFunctionRequestbuild()
Returns
Type Description
CreateFunctionRequest

buildPartial()

publicCreateFunctionRequestbuildPartial()
Returns
Type Description
CreateFunctionRequest

clear()

publicCreateFunctionRequest.Builderclear()
Returns
Type Description
CreateFunctionRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicCreateFunctionRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateFunctionRequest.Builder
Overrides

clearFunction()

publicCreateFunctionRequest.BuilderclearFunction()

Required. Function to be created.

.google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateFunctionRequest.Builder

clearFunctionId()

publicCreateFunctionRequest.BuilderclearFunctionId()

The ID to use for the function, which will become the final component of the function's resource name.

This value should be 4-63 characters, and valid characters are /a-z-/.

string function_id = 3;

Returns
Type Description
CreateFunctionRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicCreateFunctionRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateFunctionRequest.Builder
Overrides

clearParent()

publicCreateFunctionRequest.BuilderclearParent()

Required. The project and location in which the function should be created, specified in the format projects/*/locations/*

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateFunctionRequest.Builder

This builder for chaining.

clone()

publicCreateFunctionRequest.Builderclone()
Returns
Type Description
CreateFunctionRequest.Builder
Overrides

getDefaultInstanceForType()

publicCreateFunctionRequestgetDefaultInstanceForType()
Returns
Type Description
CreateFunctionRequest

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFunction()

publicFunctiongetFunction()

Required. Function to be created.

.google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Function

The function.

getFunctionBuilder()

publicFunction.BuildergetFunctionBuilder()

Required. Function to be created.

.google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Function.Builder

getFunctionId()

publicStringgetFunctionId()

The ID to use for the function, which will become the final component of the function's resource name.

This value should be 4-63 characters, and valid characters are /a-z-/.

string function_id = 3;

Returns
Type Description
String

The functionId.

getFunctionIdBytes()

publicByteStringgetFunctionIdBytes()

The ID to use for the function, which will become the final component of the function's resource name.

This value should be 4-63 characters, and valid characters are /a-z-/.

string function_id = 3;

Returns
Type Description
ByteString

The bytes for functionId.

getFunctionOrBuilder()

publicFunctionOrBuildergetFunctionOrBuilder()

Required. Function to be created.

.google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FunctionOrBuilder

getParent()

publicStringgetParent()

Required. The project and location in which the function should be created, specified in the format projects/*/locations/*

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

publicByteStringgetParentBytes()

Required. The project and location in which the function should be created, specified in the format projects/*/locations/*

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasFunction()

publicbooleanhasFunction()

Required. Function to be created.

.google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the function field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateFunctionRequest other)

publicCreateFunctionRequest.BuildermergeFrom(CreateFunctionRequestother)
Parameter
Name Description
other CreateFunctionRequest
Returns
Type Description
CreateFunctionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

publicCreateFunctionRequest.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
CreateFunctionRequest.Builder
Overrides

mergeFunction(Function value)

publicCreateFunctionRequest.BuildermergeFunction(Functionvalue)

Required. Function to be created.

.google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Function
Returns
Type Description
CreateFunctionRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalCreateFunctionRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateFunctionRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setFunction(Function value)

publicCreateFunctionRequest.BuildersetFunction(Functionvalue)

Required. Function to be created.

.google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Function
Returns
Type Description
CreateFunctionRequest.Builder

setFunction(Function.Builder builderForValue)

publicCreateFunctionRequest.BuildersetFunction(Function.BuilderbuilderForValue)

Required. Function to be created.

.google.cloud.functions.v2beta.Function function = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Function.Builder
Returns
Type Description
CreateFunctionRequest.Builder

setFunctionId(String value)

publicCreateFunctionRequest.BuildersetFunctionId(Stringvalue)

The ID to use for the function, which will become the final component of the function's resource name.

This value should be 4-63 characters, and valid characters are /a-z-/.

string function_id = 3;

Parameter
Name Description
value String

The functionId to set.

Returns
Type Description
CreateFunctionRequest.Builder

This builder for chaining.

setFunctionIdBytes(ByteString value)

publicCreateFunctionRequest.BuildersetFunctionIdBytes(ByteStringvalue)

The ID to use for the function, which will become the final component of the function's resource name.

This value should be 4-63 characters, and valid characters are /a-z-/.

string function_id = 3;

Parameter
Name Description
value ByteString

The bytes for functionId to set.

Returns
Type Description
CreateFunctionRequest.Builder

This builder for chaining.

setParent(String value)

publicCreateFunctionRequest.BuildersetParent(Stringvalue)

Required. The project and location in which the function should be created, specified in the format projects/*/locations/*

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateFunctionRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

publicCreateFunctionRequest.BuildersetParentBytes(ByteStringvalue)

Required. The project and location in which the function should be created, specified in the format projects/*/locations/*

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateFunctionRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalCreateFunctionRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateFunctionRequest.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.