Class UpdateSavedQueryRequest.Builder (3.7.1)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateSavedQueryRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateSavedQueryRequest.Builder
Overrides

build()

public UpdateSavedQueryRequest build()
Returns
TypeDescription
UpdateSavedQueryRequest

buildPartial()

public UpdateSavedQueryRequest buildPartial()
Returns
TypeDescription
UpdateSavedQueryRequest

clear()

public UpdateSavedQueryRequest.Builder clear()
Returns
TypeDescription
UpdateSavedQueryRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UpdateSavedQueryRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UpdateSavedQueryRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateSavedQueryRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
UpdateSavedQueryRequest.Builder

clone()

public UpdateSavedQueryRequest.Builder clone()
Returns
TypeDescription
UpdateSavedQueryRequest.Builder
Overrides

getDefaultInstanceForType()

public UpdateSavedQueryRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateSavedQueryRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
SavedQueryOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Required. The list of fields to update.

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

Returns
TypeDescription
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
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. The list of fields to update.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateSavedQueryRequest other)

public UpdateSavedQueryRequest.Builder mergeFrom(UpdateSavedQueryRequest other)
Parameter
NameDescription
otherUpdateSavedQueryRequest
Returns
TypeDescription
UpdateSavedQueryRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateSavedQueryRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateSavedQueryRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UpdateSavedQueryRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueSavedQuery
Returns
TypeDescription
UpdateSavedQueryRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateSavedQueryRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateSavedQueryRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateSavedQueryRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateSavedQueryRequest.Builder
Overrides

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

public UpdateSavedQueryRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSavedQuery
Returns
TypeDescription
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
NameDescription
builderForValueSavedQuery.Builder
Returns
TypeDescription
UpdateSavedQueryRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateSavedQueryRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateSavedQueryRequest.Builder