Class CreateFunctionRequest.Builder (2.62.0)

publicstaticfinalclassCreateFunctionRequest.BuilderextendsGeneratedMessageV3.Builder<CreateFunctionRequest.Builder>implementsCreateFunctionRequestOrBuilder

Request for the CreateFunction method.

Protobuf type google.cloud.functions.v2beta.CreateFunctionRequest

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicCreateFunctionRequest.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateFunctionRequest.Builder
Overrides

build()

publicCreateFunctionRequestbuild()
Returns
TypeDescription
CreateFunctionRequest

buildPartial()

publicCreateFunctionRequestbuildPartial()
Returns
TypeDescription
CreateFunctionRequest

clear()

publicCreateFunctionRequest.Builderclear()
Returns
TypeDescription
CreateFunctionRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicCreateFunctionRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateFunctionRequest.Builder
Overrides

clearFunction()

publicCreateFunctionRequest.BuilderclearFunction()

Required. Function to be created.

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

Returns
TypeDescription
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
TypeDescription
CreateFunctionRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicCreateFunctionRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateFunctionRequest.Builder

This builder for chaining.

clone()

publicCreateFunctionRequest.Builderclone()
Returns
TypeDescription
CreateFunctionRequest.Builder
Overrides

getDefaultInstanceForType()

publicCreateFunctionRequestgetDefaultInstanceForType()
Returns
TypeDescription
CreateFunctionRequest

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFunction()

publicFunctiongetFunction()

Required. Function to be created.

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

Returns
TypeDescription
Function

The function.

getFunctionBuilder()

publicFunction.BuildergetFunctionBuilder()

Required. Function to be created.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the function field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateFunctionRequest other)

publicCreateFunctionRequest.BuildermergeFrom(CreateFunctionRequestother)
Parameter
NameDescription
otherCreateFunctionRequest
Returns
TypeDescription
CreateFunctionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicCreateFunctionRequest.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateFunctionRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

publicCreateFunctionRequest.BuildermergeFrom(Messageother)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueFunction
Returns
TypeDescription
CreateFunctionRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalCreateFunctionRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateFunctionRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicCreateFunctionRequest.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueFunction
Returns
TypeDescription
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
NameDescription
builderForValueFunction.Builder
Returns
TypeDescription
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
NameDescription
valueString

The functionId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for functionId to set.

Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateFunctionRequest.Builder

This builder for chaining.

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

publicCreateFunctionRequest.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateFunctionRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalCreateFunctionRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateFunctionRequest.Builder
Overrides