Class QueryAssetsResponse.Builder (3.7.1)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QueryAssetsResponse build()
Returns
TypeDescription
QueryAssetsResponse

buildPartial()

public QueryAssetsResponse buildPartial()
Returns
TypeDescription
QueryAssetsResponse

clear()

public QueryAssetsResponse.Builder clear()
Returns
TypeDescription
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
TypeDescription
QueryAssetsResponse.Builder

This builder for chaining.

clearError()

public QueryAssetsResponse.Builder clearError()

Error status.

.google.rpc.Status error = 3;

Returns
TypeDescription
QueryAssetsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearJobReference()

public QueryAssetsResponse.Builder clearJobReference()

Reference to a query job.

string job_reference = 1;

Returns
TypeDescription
QueryAssetsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQueryResult()

public QueryAssetsResponse.Builder clearQueryResult()

Result of the query.

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

Returns
TypeDescription
QueryAssetsResponse.Builder

clearResponse()

public QueryAssetsResponse.Builder clearResponse()
Returns
TypeDescription
QueryAssetsResponse.Builder

clone()

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

getDefaultInstanceForType()

public QueryAssetsResponse getDefaultInstanceForType()
Returns
TypeDescription
QueryAssetsResponse

getDescriptorForType()

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

The done.

getError()

public Status getError()

Error status.

.google.rpc.Status error = 3;

Returns
TypeDescription
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

Error status.

.google.rpc.Status error = 3;

Returns
TypeDescription
com.google.rpc.Status.Builder

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

Error status.

.google.rpc.Status error = 3;

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getJobReference()

public String getJobReference()

Reference to a query job.

string job_reference = 1;

Returns
TypeDescription
String

The jobReference.

getJobReferenceBytes()

public ByteString getJobReferenceBytes()

Reference to a query job.

string job_reference = 1;

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

getQueryResult()

public QueryResult getQueryResult()

Result of the query.

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

Returns
TypeDescription
QueryResult

The queryResult.

getQueryResultBuilder()

public QueryResult.Builder getQueryResultBuilder()

Result of the query.

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

Returns
TypeDescription
QueryResult.Builder

getQueryResultOrBuilder()

public QueryResultOrBuilder getQueryResultOrBuilder()

Result of the query.

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

Returns
TypeDescription
QueryResultOrBuilder

getResponseCase()

public QueryAssetsResponse.ResponseCase getResponseCase()
Returns
TypeDescription
QueryAssetsResponse.ResponseCase

hasError()

public boolean hasError()

Error status.

.google.rpc.Status error = 3;

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

Whether the outputConfig field is set.

hasQueryResult()

public boolean hasQueryResult()

Result of the query.

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

Returns
TypeDescription
boolean

Whether the queryResult field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeError(Status value)

public QueryAssetsResponse.Builder mergeError(Status value)

Error status.

.google.rpc.Status error = 3;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
QueryAssetsResponse.Builder

mergeFrom(QueryAssetsResponse other)

public QueryAssetsResponse.Builder mergeFrom(QueryAssetsResponse other)
Parameter
NameDescription
otherQueryAssetsResponse
Returns
TypeDescription
QueryAssetsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeQueryResult(QueryResult value)

public QueryAssetsResponse.Builder mergeQueryResult(QueryResult value)

Result of the query.

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

Parameter
NameDescription
valueQueryResult
Returns
TypeDescription
QueryAssetsResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The done to set.

Returns
TypeDescription
QueryAssetsResponse.Builder

This builder for chaining.

setError(Status value)

public QueryAssetsResponse.Builder setError(Status value)

Error status.

.google.rpc.Status error = 3;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
QueryAssetsResponse.Builder

setError(Status.Builder builderForValue)

public QueryAssetsResponse.Builder setError(Status.Builder builderForValue)

Error status.

.google.rpc.Status error = 3;

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
QueryAssetsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setJobReference(String value)

public QueryAssetsResponse.Builder setJobReference(String value)

Reference to a query job.

string job_reference = 1;

Parameter
NameDescription
valueString

The jobReference to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for jobReference to set.

Returns
TypeDescription
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
NameDescription
valueQueryAssetsOutputConfig
Returns
TypeDescription
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
NameDescription
builderForValueQueryAssetsOutputConfig.Builder
Returns
TypeDescription
QueryAssetsResponse.Builder

setQueryResult(QueryResult value)

public QueryAssetsResponse.Builder setQueryResult(QueryResult value)

Result of the query.

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

Parameter
NameDescription
valueQueryResult
Returns
TypeDescription
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
NameDescription
builderForValueQueryResult.Builder
Returns
TypeDescription
QueryAssetsResponse.Builder

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

public QueryAssetsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
QueryAssetsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final QueryAssetsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
QueryAssetsResponse.Builder
Overrides