Class QueryAssetsResponse.Builder (3.48.0)

public static final class QueryAssetsResponse.Builder extends GeneratedMessageV3.Builder<QueryAssetsResponse.Builder> implements QueryAssetsResponseOrBuilder

QueryAssets response.

Protobuf type google.cloud.asset.v1.QueryAssetsResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QueryAssetsResponse build()
Returns
Type Description
QueryAssetsResponse

buildPartial()

public QueryAssetsResponse buildPartial()
Returns
Type Description
QueryAssetsResponse

clear()

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

clearDone()

public QueryAssetsResponse.Builder clearDone()

The query response, which can be either an error or a valid response.

If done == false and the query result is being saved in a output, the output_config field will be set. If done == true, exactly one of error, query_result or output_config will be set.

bool done = 2;

Returns
Type Description
QueryAssetsResponse.Builder

This builder for chaining.

clearError()

public QueryAssetsResponse.Builder clearError()

Error status.

.google.rpc.Status error = 3;

Returns
Type Description
QueryAssetsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearJobReference()

public QueryAssetsResponse.Builder clearJobReference()

Reference to a query job.

string job_reference = 1;

Returns
Type Description
QueryAssetsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOutputConfig()

public QueryAssetsResponse.Builder clearOutputConfig()

Output configuration which indicates instead of being returned in API response on the fly, the query result will be saved in a specific output.

.google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5;

Returns
Type Description
QueryAssetsResponse.Builder

clearQueryResult()

public QueryAssetsResponse.Builder clearQueryResult()

Result of the query.

.google.cloud.asset.v1.QueryResult query_result = 4;

Returns
Type Description
QueryAssetsResponse.Builder

clearResponse()

public QueryAssetsResponse.Builder clearResponse()
Returns
Type Description
QueryAssetsResponse.Builder

clone()

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

getDefaultInstanceForType()

public QueryAssetsResponse getDefaultInstanceForType()
Returns
Type Description
QueryAssetsResponse

getDescriptorForType()

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

getDone()

public boolean getDone()

The query response, which can be either an error or a valid response.

If done == false and the query result is being saved in a output, the output_config field will be set. If done == true, exactly one of error, query_result or output_config will be set.

bool done = 2;

Returns
Type Description
boolean

The done.

getError()

public Status getError()

Error status.

.google.rpc.Status error = 3;

Returns
Type Description
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

Error status.

.google.rpc.Status error = 3;

Returns
Type Description
com.google.rpc.Status.Builder

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

Error status.

.google.rpc.Status error = 3;

Returns
Type Description
com.google.rpc.StatusOrBuilder

getJobReference()

public String getJobReference()

Reference to a query job.

string job_reference = 1;

Returns
Type Description
String

The jobReference.

getJobReferenceBytes()

public ByteString getJobReferenceBytes()

Reference to a query job.

string job_reference = 1;

Returns
Type Description
ByteString

The bytes for jobReference.

getOutputConfig()

public QueryAssetsOutputConfig getOutputConfig()

Output configuration which indicates instead of being returned in API response on the fly, the query result will be saved in a specific output.

.google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5;

Returns
Type Description
QueryAssetsOutputConfig

The outputConfig.

getOutputConfigBuilder()

public QueryAssetsOutputConfig.Builder getOutputConfigBuilder()

Output configuration which indicates instead of being returned in API response on the fly, the query result will be saved in a specific output.

.google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5;

Returns
Type Description
QueryAssetsOutputConfig.Builder

getOutputConfigOrBuilder()

public QueryAssetsOutputConfigOrBuilder getOutputConfigOrBuilder()

Output configuration which indicates instead of being returned in API response on the fly, the query result will be saved in a specific output.

.google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5;

Returns
Type Description
QueryAssetsOutputConfigOrBuilder

getQueryResult()

public QueryResult getQueryResult()

Result of the query.

.google.cloud.asset.v1.QueryResult query_result = 4;

Returns
Type Description
QueryResult

The queryResult.

getQueryResultBuilder()

public QueryResult.Builder getQueryResultBuilder()

Result of the query.

.google.cloud.asset.v1.QueryResult query_result = 4;

Returns
Type Description
QueryResult.Builder

getQueryResultOrBuilder()

public QueryResultOrBuilder getQueryResultOrBuilder()

Result of the query.

.google.cloud.asset.v1.QueryResult query_result = 4;

Returns
Type Description
QueryResultOrBuilder

getResponseCase()

public QueryAssetsResponse.ResponseCase getResponseCase()
Returns
Type Description
QueryAssetsResponse.ResponseCase

hasError()

public boolean hasError()

Error status.

.google.rpc.Status error = 3;

Returns
Type Description
boolean

Whether the error field is set.

hasOutputConfig()

public boolean hasOutputConfig()

Output configuration which indicates instead of being returned in API response on the fly, the query result will be saved in a specific output.

.google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5;

Returns
Type Description
boolean

Whether the outputConfig field is set.

hasQueryResult()

public boolean hasQueryResult()

Result of the query.

.google.cloud.asset.v1.QueryResult query_result = 4;

Returns
Type Description
boolean

Whether the queryResult field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeError(Status value)

public QueryAssetsResponse.Builder mergeError(Status value)

Error status.

.google.rpc.Status error = 3;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
QueryAssetsResponse.Builder

mergeFrom(QueryAssetsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeOutputConfig(QueryAssetsOutputConfig value)

public QueryAssetsResponse.Builder mergeOutputConfig(QueryAssetsOutputConfig value)

Output configuration which indicates instead of being returned in API response on the fly, the query result will be saved in a specific output.

.google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5;

Parameter
Name Description
value QueryAssetsOutputConfig
Returns
Type Description
QueryAssetsResponse.Builder

mergeQueryResult(QueryResult value)

public QueryAssetsResponse.Builder mergeQueryResult(QueryResult value)

Result of the query.

.google.cloud.asset.v1.QueryResult query_result = 4;

Parameter
Name Description
value QueryResult
Returns
Type Description
QueryAssetsResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDone(boolean value)

public QueryAssetsResponse.Builder setDone(boolean value)

The query response, which can be either an error or a valid response.

If done == false and the query result is being saved in a output, the output_config field will be set. If done == true, exactly one of error, query_result or output_config will be set.

bool done = 2;

Parameter
Name Description
value boolean

The done to set.

Returns
Type Description
QueryAssetsResponse.Builder

This builder for chaining.

setError(Status value)

public QueryAssetsResponse.Builder setError(Status value)

Error status.

.google.rpc.Status error = 3;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
QueryAssetsResponse.Builder

setError(Status.Builder builderForValue)

public QueryAssetsResponse.Builder setError(Status.Builder builderForValue)

Error status.

.google.rpc.Status error = 3;

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
QueryAssetsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setJobReference(String value)

public QueryAssetsResponse.Builder setJobReference(String value)

Reference to a query job.

string job_reference = 1;

Parameter
Name Description
value String

The jobReference to set.

Returns
Type Description
QueryAssetsResponse.Builder

This builder for chaining.

setJobReferenceBytes(ByteString value)

public QueryAssetsResponse.Builder setJobReferenceBytes(ByteString value)

Reference to a query job.

string job_reference = 1;

Parameter
Name Description
value ByteString

The bytes for jobReference to set.

Returns
Type Description
QueryAssetsResponse.Builder

This builder for chaining.

setOutputConfig(QueryAssetsOutputConfig value)

public QueryAssetsResponse.Builder setOutputConfig(QueryAssetsOutputConfig value)

Output configuration which indicates instead of being returned in API response on the fly, the query result will be saved in a specific output.

.google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5;

Parameter
Name Description
value QueryAssetsOutputConfig
Returns
Type Description
QueryAssetsResponse.Builder

setOutputConfig(QueryAssetsOutputConfig.Builder builderForValue)

public QueryAssetsResponse.Builder setOutputConfig(QueryAssetsOutputConfig.Builder builderForValue)

Output configuration which indicates instead of being returned in API response on the fly, the query result will be saved in a specific output.

.google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5;

Parameter
Name Description
builderForValue QueryAssetsOutputConfig.Builder
Returns
Type Description
QueryAssetsResponse.Builder

setQueryResult(QueryResult value)

public QueryAssetsResponse.Builder setQueryResult(QueryResult value)

Result of the query.

.google.cloud.asset.v1.QueryResult query_result = 4;

Parameter
Name Description
value QueryResult
Returns
Type Description
QueryAssetsResponse.Builder

setQueryResult(QueryResult.Builder builderForValue)

public QueryAssetsResponse.Builder setQueryResult(QueryResult.Builder builderForValue)

Result of the query.

.google.cloud.asset.v1.QueryResult query_result = 4;

Parameter
Name Description
builderForValue QueryResult.Builder
Returns
Type Description
QueryAssetsResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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