Class OnDeployUpdatePolicy.Builder (2.50.0)

public static final class OnDeployUpdatePolicy.Builder extends GeneratedMessageV3.Builder<OnDeployUpdatePolicy.Builder> implements OnDeployUpdatePolicyOrBuilder

Security patches are only applied when a function is redeployed.

Protobuf type google.cloud.functions.v2.OnDeployUpdatePolicy

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OnDeployUpdatePolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OnDeployUpdatePolicy.Builder
Overrides

build()

public OnDeployUpdatePolicy build()
Returns
Type Description
OnDeployUpdatePolicy

buildPartial()

public OnDeployUpdatePolicy buildPartial()
Returns
Type Description
OnDeployUpdatePolicy

clear()

public OnDeployUpdatePolicy.Builder clear()
Returns
Type Description
OnDeployUpdatePolicy.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public OnDeployUpdatePolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
OnDeployUpdatePolicy.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public OnDeployUpdatePolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
OnDeployUpdatePolicy.Builder
Overrides

clearRuntimeVersion()

public OnDeployUpdatePolicy.Builder clearRuntimeVersion()

Output only. contains the runtime version which was used during latest function deployment.

string runtime_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
OnDeployUpdatePolicy.Builder

This builder for chaining.

clone()

public OnDeployUpdatePolicy.Builder clone()
Returns
Type Description
OnDeployUpdatePolicy.Builder
Overrides

getDefaultInstanceForType()

public OnDeployUpdatePolicy getDefaultInstanceForType()
Returns
Type Description
OnDeployUpdatePolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRuntimeVersion()

public String getRuntimeVersion()

Output only. contains the runtime version which was used during latest function deployment.

string runtime_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The runtimeVersion.

getRuntimeVersionBytes()

public ByteString getRuntimeVersionBytes()

Output only. contains the runtime version which was used during latest function deployment.

string runtime_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for runtimeVersion.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OnDeployUpdatePolicy other)

public OnDeployUpdatePolicy.Builder mergeFrom(OnDeployUpdatePolicy other)
Parameter
Name Description
other OnDeployUpdatePolicy
Returns
Type Description
OnDeployUpdatePolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OnDeployUpdatePolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OnDeployUpdatePolicy.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public OnDeployUpdatePolicy.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
OnDeployUpdatePolicy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OnDeployUpdatePolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OnDeployUpdatePolicy.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public OnDeployUpdatePolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OnDeployUpdatePolicy.Builder
Overrides

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

public OnDeployUpdatePolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OnDeployUpdatePolicy.Builder
Overrides

setRuntimeVersion(String value)

public OnDeployUpdatePolicy.Builder setRuntimeVersion(String value)

Output only. contains the runtime version which was used during latest function deployment.

string runtime_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The runtimeVersion to set.

Returns
Type Description
OnDeployUpdatePolicy.Builder

This builder for chaining.

setRuntimeVersionBytes(ByteString value)

public OnDeployUpdatePolicy.Builder setRuntimeVersionBytes(ByteString value)

Output only. contains the runtime version which was used during latest function deployment.

string runtime_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for runtimeVersion to set.

Returns
Type Description
OnDeployUpdatePolicy.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final OnDeployUpdatePolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OnDeployUpdatePolicy.Builder
Overrides