Send feedback
Class CreateFunctionRequest.Builder (2.4.2)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.4.2 keyboard_arrow_down
public static final class CreateFunctionRequest . Builder extends GeneratedMessageV3 . Builder<CreateFunctionRequest . Builder > implements CreateFunctionRequestOrBuilder
Request for the CreateFunction
method.
Protobuf type google.cloud.functions.v1.CreateFunctionRequest
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateFunctionRequest . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public CreateFunctionRequest build ()
Returns
buildPartial()
public CreateFunctionRequest buildPartial ()
Returns
clear()
public CreateFunctionRequest . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateFunctionRequest . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearFunction()
public CreateFunctionRequest . Builder clearFunction ()
Required. Function to be created.
.google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearLocation()
public CreateFunctionRequest . Builder clearLocation ()
Required. The project and location in which the function should be created, specified
in the format projects/*/locations/*
string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateFunctionRequest . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clone()
public CreateFunctionRequest . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public CreateFunctionRequest getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getFunction()
public CloudFunction getFunction ()
Required. Function to be created.
.google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getFunctionBuilder()
public CloudFunction . Builder getFunctionBuilder ()
Required. Function to be created.
.google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getFunctionOrBuilder()
public CloudFunctionOrBuilder getFunctionOrBuilder ()
Required. Function to be created.
.google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getLocation()
public String getLocation ()
Required. The project and location in which the function should be created, specified
in the format projects/*/locations/*
string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type Description String The location.
getLocationBytes()
public ByteString getLocationBytes ()
Required. The project and location in which the function should be created, specified
in the format projects/*/locations/*
string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
hasFunction()
public boolean hasFunction ()
Required. Function to be created.
.google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type Description boolean Whether the function field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(CreateFunctionRequest other)
public CreateFunctionRequest . Builder mergeFrom ( CreateFunctionRequest other )
Parameter
Returns
public CreateFunctionRequest . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateFunctionRequest . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeFunction(CloudFunction value)
public CreateFunctionRequest . Builder mergeFunction ( CloudFunction value )
Required. Function to be created.
.google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateFunctionRequest . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateFunctionRequest . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setFunction(CloudFunction value)
public CreateFunctionRequest . Builder setFunction ( CloudFunction value )
Required. Function to be created.
.google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setFunction(CloudFunction.Builder builderForValue)
public CreateFunctionRequest . Builder setFunction ( CloudFunction . Builder builderForValue )
Required. Function to be created.
.google.cloud.functions.v1.CloudFunction function = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setLocation(String value)
public CreateFunctionRequest . Builder setLocation ( String value )
Required. The project and location in which the function should be created, specified
in the format projects/*/locations/*
string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name Description value String
The location to set.
Returns
setLocationBytes(ByteString value)
public CreateFunctionRequest . Builder setLocationBytes ( ByteString value )
Required. The project and location in which the function should be created, specified
in the format projects/*/locations/*
string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name Description value ByteString
The bytes for location to set.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateFunctionRequest . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateFunctionRequest . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
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-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]