Class CreateFunctionRequest (2.21.0)

public final class CreateFunctionRequest extends GeneratedMessageV3 implements CreateFunctionRequestOrBuilder

Request for the CreateFunction method.

Protobuf type google.cloud.functions.v2.CreateFunctionRequest

Static Fields

FUNCTION_FIELD_NUMBER

public static final int FUNCTION_FIELD_NUMBER
Field Value
TypeDescription
int

FUNCTION_ID_FIELD_NUMBER

public static final int FUNCTION_ID_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateFunctionRequest getDefaultInstance()
Returns
TypeDescription
CreateFunctionRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CreateFunctionRequest.Builder newBuilder()
Returns
TypeDescription
CreateFunctionRequest.Builder

newBuilder(CreateFunctionRequest prototype)

public static CreateFunctionRequest.Builder newBuilder(CreateFunctionRequest prototype)
Parameter
NameDescription
prototypeCreateFunctionRequest
Returns
TypeDescription
CreateFunctionRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateFunctionRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateFunctionRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateFunctionRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateFunctionRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CreateFunctionRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CreateFunctionRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateFunctionRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateFunctionRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateFunctionRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CreateFunctionRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateFunctionRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateFunctionRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateFunctionRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CreateFunctionRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateFunctionRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateFunctionRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CreateFunctionRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateFunctionRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateFunctionRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateFunctionRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CreateFunctionRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CreateFunctionRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateFunctionRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateFunctionRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CreateFunctionRequest> parser()
Returns
TypeDescription
Parser<CreateFunctionRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CreateFunctionRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateFunctionRequest

getFunction()

public Function getFunction()

Required. Function to be created.

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

Returns
TypeDescription
Function

The function.

getFunctionId()

public String getFunctionId()

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()

public ByteString getFunctionIdBytes()

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()

public FunctionOrBuilder getFunctionOrBuilder()

Required. Function to be created.

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

Returns
TypeDescription
FunctionOrBuilder

getParent()

public String getParent()

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()

public ByteString getParentBytes()

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.

getParserForType()

public Parser<CreateFunctionRequest> getParserForType()
Returns
TypeDescription
Parser<CreateFunctionRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasFunction()

public boolean hasFunction()

Required. Function to be created.

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

Returns
TypeDescription
boolean

Whether the function field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CreateFunctionRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateFunctionRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateFunctionRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CreateFunctionRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CreateFunctionRequest.Builder toBuilder()
Returns
TypeDescription
CreateFunctionRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException