Class UpdateSourceRequest.Builder (2.53.0)

public static final class UpdateSourceRequest.Builder extends GeneratedMessageV3.Builder<UpdateSourceRequest.Builder> implements UpdateSourceRequestOrBuilder

Request message for updating a source.

Protobuf type google.cloud.securitycenter.v1beta1.UpdateSourceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateSourceRequest build()
Returns
Type Description
UpdateSourceRequest

buildPartial()

public UpdateSourceRequest buildPartial()
Returns
Type Description
UpdateSourceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSource()

public UpdateSourceRequest.Builder clearSource()

Required. The source resource to update.

.google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateSourceRequest.Builder

clearUpdateMask()

public UpdateSourceRequest.Builder clearUpdateMask()

The FieldMask to use when updating the source resource.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
UpdateSourceRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateSourceRequest getDefaultInstanceForType()
Returns
Type Description
UpdateSourceRequest

getDescriptorForType()

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

getSource()

public Source getSource()

Required. The source resource to update.

.google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Source

The source.

getSourceBuilder()

public Source.Builder getSourceBuilder()

Required. The source resource to update.

.google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Source.Builder

getSourceOrBuilder()

public SourceOrBuilder getSourceOrBuilder()

Required. The source resource to update.

.google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SourceOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

The FieldMask to use when updating the source resource.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

The FieldMask to use when updating the source resource.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

The FieldMask to use when updating the source resource.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMaskOrBuilder

hasSource()

public boolean hasSource()

Required. The source resource to update.

.google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the source field is set.

hasUpdateMask()

public boolean hasUpdateMask()

The FieldMask to use when updating the source resource.

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateSourceRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSource(Source value)

public UpdateSourceRequest.Builder mergeSource(Source value)

Required. The source resource to update.

.google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Source
Returns
Type Description
UpdateSourceRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateSourceRequest.Builder mergeUpdateMask(FieldMask value)

The FieldMask to use when updating the source resource.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateSourceRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSource(Source value)

public UpdateSourceRequest.Builder setSource(Source value)

Required. The source resource to update.

.google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Source
Returns
Type Description
UpdateSourceRequest.Builder

setSource(Source.Builder builderForValue)

public UpdateSourceRequest.Builder setSource(Source.Builder builderForValue)

Required. The source resource to update.

.google.cloud.securitycenter.v1beta1.Source source = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Source.Builder
Returns
Type Description
UpdateSourceRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateSourceRequest.Builder setUpdateMask(FieldMask value)

The FieldMask to use when updating the source resource.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateSourceRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateSourceRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

The FieldMask to use when updating the source resource.

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateSourceRequest.Builder