Class UpdateSavedQueryRequest.Builder (3.46.0)

public static final class UpdateSavedQueryRequest.Builder extends GeneratedMessageV3.Builder<UpdateSavedQueryRequest.Builder> implements UpdateSavedQueryRequestOrBuilder

Request to update a saved query.

Protobuf type google.cloud.asset.v1.UpdateSavedQueryRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateSavedQueryRequest build()
Returns
Type Description
UpdateSavedQueryRequest

buildPartial()

public UpdateSavedQueryRequest buildPartial()
Returns
Type Description
UpdateSavedQueryRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSavedQuery()

public UpdateSavedQueryRequest.Builder clearSavedQuery()

Required. The saved query to update.

The saved query's name field is used to identify the one to update, which has format as below:

  • projects/project_number/savedQueries/saved_query_id
  • folders/folder_number/savedQueries/saved_query_id
  • organizations/organization_number/savedQueries/saved_query_id

.google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateSavedQueryRequest.Builder

clearUpdateMask()

public UpdateSavedQueryRequest.Builder clearUpdateMask()

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateSavedQueryRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateSavedQueryRequest getDefaultInstanceForType()
Returns
Type Description
UpdateSavedQueryRequest

getDescriptorForType()

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

getSavedQuery()

public SavedQuery getSavedQuery()

Required. The saved query to update.

The saved query's name field is used to identify the one to update, which has format as below:

  • projects/project_number/savedQueries/saved_query_id
  • folders/folder_number/savedQueries/saved_query_id
  • organizations/organization_number/savedQueries/saved_query_id

.google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SavedQuery

The savedQuery.

getSavedQueryBuilder()

public SavedQuery.Builder getSavedQueryBuilder()

Required. The saved query to update.

The saved query's name field is used to identify the one to update, which has format as below:

  • projects/project_number/savedQueries/saved_query_id
  • folders/folder_number/savedQueries/saved_query_id
  • organizations/organization_number/savedQueries/saved_query_id

.google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SavedQuery.Builder

getSavedQueryOrBuilder()

public SavedQueryOrBuilder getSavedQueryOrBuilder()

Required. The saved query to update.

The saved query's name field is used to identify the one to update, which has format as below:

  • projects/project_number/savedQueries/saved_query_id
  • folders/folder_number/savedQueries/saved_query_id
  • organizations/organization_number/savedQueries/saved_query_id

.google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SavedQueryOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMaskOrBuilder

hasSavedQuery()

public boolean hasSavedQuery()

Required. The saved query to update.

The saved query's name field is used to identify the one to update, which has format as below:

  • projects/project_number/savedQueries/saved_query_id
  • folders/folder_number/savedQueries/saved_query_id
  • organizations/organization_number/savedQueries/saved_query_id

.google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the savedQuery field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

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(UpdateSavedQueryRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSavedQuery(SavedQuery value)

public UpdateSavedQueryRequest.Builder mergeSavedQuery(SavedQuery value)

Required. The saved query to update.

The saved query's name field is used to identify the one to update, which has format as below:

  • projects/project_number/savedQueries/saved_query_id
  • folders/folder_number/savedQueries/saved_query_id
  • organizations/organization_number/savedQueries/saved_query_id

.google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SavedQuery
Returns
Type Description
UpdateSavedQueryRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateSavedQueryRequest.Builder mergeUpdateMask(FieldMask value)

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateSavedQueryRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSavedQuery(SavedQuery value)

public UpdateSavedQueryRequest.Builder setSavedQuery(SavedQuery value)

Required. The saved query to update.

The saved query's name field is used to identify the one to update, which has format as below:

  • projects/project_number/savedQueries/saved_query_id
  • folders/folder_number/savedQueries/saved_query_id
  • organizations/organization_number/savedQueries/saved_query_id

.google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SavedQuery
Returns
Type Description
UpdateSavedQueryRequest.Builder

setSavedQuery(SavedQuery.Builder builderForValue)

public UpdateSavedQueryRequest.Builder setSavedQuery(SavedQuery.Builder builderForValue)

Required. The saved query to update.

The saved query's name field is used to identify the one to update, which has format as below:

  • projects/project_number/savedQueries/saved_query_id
  • folders/folder_number/savedQueries/saved_query_id
  • organizations/organization_number/savedQueries/saved_query_id

.google.cloud.asset.v1.SavedQuery saved_query = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue SavedQuery.Builder
Returns
Type Description
UpdateSavedQueryRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateSavedQueryRequest.Builder setUpdateMask(FieldMask value)

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateSavedQueryRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateSavedQueryRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. The list of fields to update.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateSavedQueryRequest.Builder