Class UpdateInstanceRequest.Builder (0.103.0)

public static final class UpdateInstanceRequest.Builder extends GeneratedMessage.Builder<UpdateInstanceRequest.Builder> implements UpdateInstanceRequestOrBuilder

Request message for updating an Instance.

Protobuf type google.cloud.run.v2.UpdateInstanceRequest

Static Methods

getDescriptor()

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

Methods

build()

public UpdateInstanceRequest build()
Returns
Type Description
UpdateInstanceRequest

buildPartial()

public UpdateInstanceRequest buildPartial()
Returns
Type Description
UpdateInstanceRequest

clear()

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

clearAllowMissing()

public UpdateInstanceRequest.Builder clearAllowMissing()

Optional. If set to true, and if the Instance does not exist, it will create a new one. The caller must have run.instances.create permissions if this is set to true and the Instance does not exist.

bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UpdateInstanceRequest.Builder

This builder for chaining.

clearInstance()

public UpdateInstanceRequest.Builder clearInstance()

Required. The Instance to be updated.

.google.cloud.run.v2.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateInstanceRequest.Builder

clearUpdateMask()

public UpdateInstanceRequest.Builder clearUpdateMask()

Optional. The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UpdateInstanceRequest.Builder

clearValidateOnly()

public UpdateInstanceRequest.Builder clearValidateOnly()

Optional. Indicates that the request should be validated and default values populated, without persisting the request or updating any resources.

bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UpdateInstanceRequest.Builder

This builder for chaining.

getAllowMissing()

public boolean getAllowMissing()

Optional. If set to true, and if the Instance does not exist, it will create a new one. The caller must have run.instances.create permissions if this is set to true and the Instance does not exist.

bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The allowMissing.

getDefaultInstanceForType()

public UpdateInstanceRequest getDefaultInstanceForType()
Returns
Type Description
UpdateInstanceRequest

getDescriptorForType()

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

getInstance()

public Instance getInstance()

Required. The Instance to be updated.

.google.cloud.run.v2.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Instance

The instance.

getInstanceBuilder()

public Instance.Builder getInstanceBuilder()

Required. The Instance to be updated.

.google.cloud.run.v2.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Instance.Builder

getInstanceOrBuilder()

public InstanceOrBuilder getInstanceOrBuilder()

Required. The Instance to be updated.

.google.cloud.run.v2.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InstanceOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Optional. The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Optional. The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Optional. The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FieldMaskOrBuilder

getValidateOnly()

public boolean getValidateOnly()

Optional. Indicates that the request should be validated and default values populated, without persisting the request or updating any resources.

bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The validateOnly.

hasInstance()

public boolean hasInstance()

Required. The Instance to be updated.

.google.cloud.run.v2.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the instance field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Optional. The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateInstanceRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInstance(Instance value)

public UpdateInstanceRequest.Builder mergeInstance(Instance value)

Required. The Instance to be updated.

.google.cloud.run.v2.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Instance
Returns
Type Description
UpdateInstanceRequest.Builder

mergeUpdateMask(FieldMask value)

public UpdateInstanceRequest.Builder mergeUpdateMask(FieldMask value)

Optional. The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateInstanceRequest.Builder

setAllowMissing(boolean value)

public UpdateInstanceRequest.Builder setAllowMissing(boolean value)

Optional. If set to true, and if the Instance does not exist, it will create a new one. The caller must have run.instances.create permissions if this is set to true and the Instance does not exist.

bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The allowMissing to set.

Returns
Type Description
UpdateInstanceRequest.Builder

This builder for chaining.

setInstance(Instance value)

public UpdateInstanceRequest.Builder setInstance(Instance value)

Required. The Instance to be updated.

.google.cloud.run.v2.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Instance
Returns
Type Description
UpdateInstanceRequest.Builder

setInstance(Instance.Builder builderForValue)

public UpdateInstanceRequest.Builder setInstance(Instance.Builder builderForValue)

Required. The Instance to be updated.

.google.cloud.run.v2.Instance instance = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Instance.Builder
Returns
Type Description
UpdateInstanceRequest.Builder

setUpdateMask(FieldMask value)

public UpdateInstanceRequest.Builder setUpdateMask(FieldMask value)

Optional. The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateInstanceRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateInstanceRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Optional. The list of fields to be updated.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateInstanceRequest.Builder

setValidateOnly(boolean value)

public UpdateInstanceRequest.Builder setValidateOnly(boolean value)

Optional. Indicates that the request should be validated and default values populated, without persisting the request or updating any resources.

bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
UpdateInstanceRequest.Builder

This builder for chaining.