public static final class GetFunctionRequest.Builder extends GeneratedMessage.Builder<GetFunctionRequest.Builder> implements GetFunctionRequestOrBuilder Request for the GetFunction method.
Protobuf type google.cloud.functions.v1.GetFunctionRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GetFunctionRequest.BuilderImplements
GetFunctionRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public GetFunctionRequest build()| Returns | |
|---|---|
| Type | Description |
GetFunctionRequest |
|
buildPartial()
public GetFunctionRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
GetFunctionRequest |
|
clear()
public GetFunctionRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
GetFunctionRequest.Builder |
|
clearName()
public GetFunctionRequest.Builder clearName()Required. The name of the function which details should be obtained.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
GetFunctionRequest.Builder |
This builder for chaining. |
clearVersionId()
public GetFunctionRequest.Builder clearVersionId()Optional. The optional version of the function whose details should be obtained. The version of a 1st Gen function is an integer that starts from 1 and gets incremented on redeployments. Each deployment creates a config version of the underlying function. GCF may keep historical configs for old versions. This field can be specified to fetch the historical configs. Leave it blank or set to 0 to get the latest version of the function.
int64 version_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GetFunctionRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public GetFunctionRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GetFunctionRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()Required. The name of the function which details should be obtained.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Required. The name of the function which details should be obtained.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getVersionId()
public long getVersionId()Optional. The optional version of the function whose details should be obtained. The version of a 1st Gen function is an integer that starts from 1 and gets incremented on redeployments. Each deployment creates a config version of the underlying function. GCF may keep historical configs for old versions. This field can be specified to fetch the historical configs. Leave it blank or set to 0 to get the latest version of the function.
int64 version_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
long |
The versionId. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(GetFunctionRequest other)
public GetFunctionRequest.Builder mergeFrom(GetFunctionRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
GetFunctionRequest |
| Returns | |
|---|---|
| Type | Description |
GetFunctionRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GetFunctionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GetFunctionRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GetFunctionRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GetFunctionRequest.Builder |
|
setName(String value)
public GetFunctionRequest.Builder setName(String value)Required. The name of the function which details should be obtained.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
GetFunctionRequest.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public GetFunctionRequest.Builder setNameBytes(ByteString value)Required. The name of the function which details should be obtained.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
GetFunctionRequest.Builder |
This builder for chaining. |
setVersionId(long value)
public GetFunctionRequest.Builder setVersionId(long value)Optional. The optional version of the function whose details should be obtained. The version of a 1st Gen function is an integer that starts from 1 and gets incremented on redeployments. Each deployment creates a config version of the underlying function. GCF may keep historical configs for old versions. This field can be specified to fetch the historical configs. Leave it blank or set to 0 to get the latest version of the function.
int64 version_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe versionId to set. |
| Returns | |
|---|---|
| Type | Description |
GetFunctionRequest.Builder |
This builder for chaining. |