Class UpdateScopeRequest.Builder (0.3.0)

public static final class UpdateScopeRequest.Builder extends GeneratedMessage.Builder<UpdateScopeRequest.Builder> implements UpdateScopeRequestOrBuilder

Message for updating a Scope.

Protobuf type google.cloud.observability.v1.UpdateScopeRequest

Static Methods

getDescriptor()

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

Methods

build()

public UpdateScopeRequest build()
Returns
Type Description
UpdateScopeRequest

buildPartial()

public UpdateScopeRequest buildPartial()
Returns
Type Description
UpdateScopeRequest

clear()

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

clearScope()

public UpdateScopeRequest.Builder clearScope()

Required. The resource being updated.

.google.cloud.observability.v1.Scope scope = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateScopeRequest.Builder

clearUpdateMask()

public UpdateScopeRequest.Builder clearUpdateMask()

Optional. Field mask is used to specify the fields to be overwritten in the Scope resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten when it is in the mask. If the user does not provide a mask, then all fields present in the request are overwritten.

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

Returns
Type Description
UpdateScopeRequest.Builder

getDefaultInstanceForType()

public UpdateScopeRequest getDefaultInstanceForType()
Returns
Type Description
UpdateScopeRequest

getDescriptorForType()

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

getScope()

public Scope getScope()

Required. The resource being updated.

.google.cloud.observability.v1.Scope scope = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Scope

The scope.

getScopeBuilder()

public Scope.Builder getScopeBuilder()

Required. The resource being updated.

.google.cloud.observability.v1.Scope scope = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Scope.Builder

getScopeOrBuilder()

public ScopeOrBuilder getScopeOrBuilder()

Required. The resource being updated.

.google.cloud.observability.v1.Scope scope = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ScopeOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Optional. Field mask is used to specify the fields to be overwritten in the Scope resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten when it is in the mask. If the user does not provide a mask, then all fields present in the request are overwritten.

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

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Optional. Field mask is used to specify the fields to be overwritten in the Scope resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten when it is in the mask. If the user does not provide a mask, then all fields present in the request are overwritten.

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

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Optional. Field mask is used to specify the fields to be overwritten in the Scope resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten when it is in the mask. If the user does not provide a mask, then all fields present in the request are overwritten.

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

Returns
Type Description
FieldMaskOrBuilder

hasScope()

public boolean hasScope()

Required. The resource being updated.

.google.cloud.observability.v1.Scope scope = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the scope field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Optional. Field mask is used to specify the fields to be overwritten in the Scope resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten when it is in the mask. If the user does not provide a mask, then all fields present in the request are overwritten.

.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(UpdateScopeRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeScope(Scope value)

public UpdateScopeRequest.Builder mergeScope(Scope value)

Required. The resource being updated.

.google.cloud.observability.v1.Scope scope = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Scope
Returns
Type Description
UpdateScopeRequest.Builder

mergeUpdateMask(FieldMask value)

public UpdateScopeRequest.Builder mergeUpdateMask(FieldMask value)

Optional. Field mask is used to specify the fields to be overwritten in the Scope resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten when it is in the mask. If the user does not provide a mask, then all fields present in the request are overwritten.

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

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateScopeRequest.Builder

setScope(Scope value)

public UpdateScopeRequest.Builder setScope(Scope value)

Required. The resource being updated.

.google.cloud.observability.v1.Scope scope = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Scope
Returns
Type Description
UpdateScopeRequest.Builder

setScope(Scope.Builder builderForValue)

public UpdateScopeRequest.Builder setScope(Scope.Builder builderForValue)

Required. The resource being updated.

.google.cloud.observability.v1.Scope scope = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Scope.Builder
Returns
Type Description
UpdateScopeRequest.Builder

setUpdateMask(FieldMask value)

public UpdateScopeRequest.Builder setUpdateMask(FieldMask value)

Optional. Field mask is used to specify the fields to be overwritten in the Scope resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten when it is in the mask. If the user does not provide a mask, then all fields present in the request are overwritten.

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

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateScopeRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateScopeRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Optional. Field mask is used to specify the fields to be overwritten in the Scope resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten when it is in the mask. If the user does not provide a mask, then all fields present in the request are overwritten.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateScopeRequest.Builder