/// <summary> /// Gets the full hashes that match the requested hash prefix. /// This is used after a hash prefix is looked up in a threatList /// and there is a match. The client side threatList only holds partial hashes /// so the client must query this method to determine if there is a full /// hash match of a threat. /// </summary> /// <param name="hashPrefix"> /// A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 /// hash. For JSON requests, this field is base64-encoded. /// </param> /// <param name="threatTypes"> /// Required. The ThreatLists to search in. /// </param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <SearchHashesResponse> SearchHashesAsync(proto::ByteString hashPrefix, scg::IEnumerable <ThreatType> threatTypes, gaxgrpc::CallSettings callSettings = null) => SearchHashesAsync(new SearchHashesRequest { HashPrefix = hashPrefix ?? proto::ByteString.Empty, ThreatTypes = { gax::GaxPreconditions.CheckNotNull(threatTypes, nameof(threatTypes)), }, }, callSettings);
/// <summary> /// </summary> /// <param name="optional"> /// </param> /// <param name="required"> /// </param> /// <param name="repeatedOptional"> /// </param> /// <param name="repeatedRequired"> /// </param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <Response> BytesArgsAsync(proto::ByteString optional, proto::ByteString required, scg::IEnumerable <proto::ByteString> repeatedOptional, scg::IEnumerable <proto::ByteString> repeatedRequired, gaxgrpc::CallSettings callSettings = null) => BytesArgsAsync(new BytesRequest { Optional = optional ?? proto::ByteString.Empty, Required = gax::GaxPreconditions.CheckNotNull(required, nameof(required)), RepeatedOptional = { repeatedOptional ?? linq::Enumerable.Empty <proto::ByteString>(), }, RepeatedRequired = { gax::GaxPreconditions.CheckNotNull(repeatedRequired, nameof(repeatedRequired)), }, }, callSettings);
/// <summary> /// </summary> /// <param name="optional"> /// </param> /// <param name="required"> /// </param> /// <param name="repeatedOptional"> /// </param> /// <param name="repeatedRequired"> /// </param> /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <Response> BytesArgsAsync(proto::ByteString optional, proto::ByteString required, scg::IEnumerable <proto::ByteString> repeatedOptional, scg::IEnumerable <proto::ByteString> repeatedRequired, st::CancellationToken cancellationToken) => BytesArgsAsync(optional, required, repeatedOptional, repeatedRequired, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Gets the full hashes that match the requested hash prefix. /// This is used after a hash prefix is looked up in a threatList /// and there is a match. The client side threatList only holds partial hashes /// so the client must query this method to determine if there is a full /// hash match of a threat. /// </summary> /// <param name="hashPrefix"> /// A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 /// hash. For JSON requests, this field is base64-encoded. /// </param> /// <param name="threatTypes"> /// Required. The ThreatLists to search in. /// </param> /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <SearchHashesResponse> SearchHashesAsync(proto::ByteString hashPrefix, scg::IEnumerable <ThreatType> threatTypes, st::CancellationToken cancellationToken) => SearchHashesAsync(hashPrefix, threatTypes, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Gets the most recent threat list diffs. /// </summary> /// <param name="threatType"> /// The ThreatList to update. /// </param> /// <param name="versionToken"> /// The current version token of the client for the requested list (the /// client version that was received from the last successful diff). /// </param> /// <param name="constraints"> /// Required. The constraints associated with this request. /// </param> /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <ComputeThreatListDiffResponse> ComputeThreatListDiffAsync(ThreatType threatType, proto::ByteString versionToken, ComputeThreatListDiffRequest.Types.Constraints constraints, st::CancellationToken cancellationToken) => ComputeThreatListDiffAsync(threatType, versionToken, constraints, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
/// <summary> /// Gets the most recent threat list diffs. /// </summary> /// <param name="threatType"> /// The ThreatList to update. /// </param> /// <param name="versionToken"> /// The current version token of the client for the requested list (the /// client version that was received from the last successful diff). /// </param> /// <param name="constraints"> /// Required. The constraints associated with this request. /// </param> /// <param name="callSettings">If not null, applies overrides to this RPC call.</param> /// <returns>A Task containing the RPC response.</returns> public virtual stt::Task <ComputeThreatListDiffResponse> ComputeThreatListDiffAsync(ThreatType threatType, proto::ByteString versionToken, ComputeThreatListDiffRequest.Types.Constraints constraints, gaxgrpc::CallSettings callSettings = null) => ComputeThreatListDiffAsync(new ComputeThreatListDiffRequest { ThreatType = threatType, VersionToken = versionToken ?? proto::ByteString.Empty, Constraints = gax::GaxPreconditions.CheckNotNull(constraints, nameof(constraints)), }, callSettings);