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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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()
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