Package com.google.cloud.asset.v1
Class QueryAssetsResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<QueryAssetsResponse.Builder>
com.google.cloud.asset.v1.QueryAssetsResponse.Builder
- All Implemented Interfaces:
QueryAssetsResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- QueryAssetsResponse
public static final class QueryAssetsResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<QueryAssetsResponse.Builder>
implements QueryAssetsResponseOrBuilder
QueryAssets response.Protobuf type
google.cloud.asset.v1.QueryAssetsResponse-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The query response, which can be either an `error` or a valid `response`.Error status.Reference to a query job.Output configuration, which indicates that instead of being returned in an API response on the fly, the query result will be saved in a specific output.Result of the query.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleangetDone()The query response, which can be either an `error` or a valid `response`.getError()Error status.Error status.Error status.Reference to a query job.com.google.protobuf.ByteStringReference to a query job.Output configuration, which indicates that instead of being returned in an API response on the fly, the query result will be saved in a specific output.Output configuration, which indicates that instead of being returned in an API response on the fly, the query result will be saved in a specific output.Output configuration, which indicates that instead of being returned in an API response on the fly, the query result will be saved in a specific output.Result of the query.Result of the query.Result of the query.booleanhasError()Error status.booleanOutput configuration, which indicates that instead of being returned in an API response on the fly, the query result will be saved in a specific output.booleanResult of the query.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeError(Status value) Error status.mergeFrom(QueryAssetsResponse other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Output configuration, which indicates that instead of being returned in an API response on the fly, the query result will be saved in a specific output.mergeQueryResult(QueryResult value) Result of the query.setDone(boolean value) The query response, which can be either an `error` or a valid `response`.Error status.setError(Status.Builder builderForValue) Error status.setJobReference(String value) Reference to a query job.setJobReferenceBytes(com.google.protobuf.ByteString value) Reference to a query job.Output configuration, which indicates that instead of being returned in an API response on the fly, the query result will be saved in a specific output.setOutputConfig(QueryAssetsOutputConfig.Builder builderForValue) Output configuration, which indicates that instead of being returned in an API response on the fly, the query result will be saved in a specific output.setQueryResult(QueryResult value) Result of the query.setQueryResult(QueryResult.Builder builderForValue) Result of the query.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<QueryAssetsResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<QueryAssetsResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<QueryAssetsResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QueryAssetsResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<QueryAssetsResponse.Builder>
-
mergeFrom
public QueryAssetsResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QueryAssetsResponse.Builder>- Throws:
IOException
-
getResponseCase
- Specified by:
getResponseCasein interfaceQueryAssetsResponseOrBuilder
-
clearResponse
-
getJobReference
Reference to a query job.
string job_reference = 1;- Specified by:
getJobReferencein interfaceQueryAssetsResponseOrBuilder- Returns:
- The jobReference.
-
getJobReferenceBytes
public com.google.protobuf.ByteString getJobReferenceBytes()Reference to a query job.
string job_reference = 1;- Specified by:
getJobReferenceBytesin interfaceQueryAssetsResponseOrBuilder- Returns:
- The bytes for jobReference.
-
setJobReference
Reference to a query job.
string job_reference = 1;- Parameters:
value- The jobReference to set.- Returns:
- This builder for chaining.
-
clearJobReference
Reference to a query job.
string job_reference = 1;- Returns:
- This builder for chaining.
-
setJobReferenceBytes
Reference to a query job.
string job_reference = 1;- Parameters:
value- The bytes for jobReference to set.- Returns:
- This builder for chaining.
-
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 an output, the output_config field will be set. If `done` == `true`, exactly one of `error`, `query_result` or `output_config` will be set. [done] is unset unless the [QueryAssetsResponse] contains a [QueryAssetsResponse.job_reference].
bool done = 2;- Specified by:
getDonein interfaceQueryAssetsResponseOrBuilder- Returns:
- The done.
-
setDone
The query response, which can be either an `error` or a valid `response`. If `done` == `false` and the query result is being saved in an output, the output_config field will be set. If `done` == `true`, exactly one of `error`, `query_result` or `output_config` will be set. [done] is unset unless the [QueryAssetsResponse] contains a [QueryAssetsResponse.job_reference].
bool done = 2;- Parameters:
value- The done to set.- Returns:
- This builder for chaining.
-
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 an output, the output_config field will be set. If `done` == `true`, exactly one of `error`, `query_result` or `output_config` will be set. [done] is unset unless the [QueryAssetsResponse] contains a [QueryAssetsResponse.job_reference].
bool done = 2;- Returns:
- This builder for chaining.
-
hasError
public boolean hasError()Error status.
.google.rpc.Status error = 3;- Specified by:
hasErrorin interfaceQueryAssetsResponseOrBuilder- Returns:
- Whether the error field is set.
-
getError
Error status.
.google.rpc.Status error = 3;- Specified by:
getErrorin interfaceQueryAssetsResponseOrBuilder- Returns:
- The error.
-
setError
Error status.
.google.rpc.Status error = 3; -
setError
Error status.
.google.rpc.Status error = 3; -
mergeError
Error status.
.google.rpc.Status error = 3; -
clearError
Error status.
.google.rpc.Status error = 3; -
getErrorBuilder
Error status.
.google.rpc.Status error = 3; -
getErrorOrBuilder
Error status.
.google.rpc.Status error = 3;- Specified by:
getErrorOrBuilderin interfaceQueryAssetsResponseOrBuilder
-
hasQueryResult
public boolean hasQueryResult()Result of the query.
.google.cloud.asset.v1.QueryResult query_result = 4;- Specified by:
hasQueryResultin interfaceQueryAssetsResponseOrBuilder- Returns:
- Whether the queryResult field is set.
-
getQueryResult
Result of the query.
.google.cloud.asset.v1.QueryResult query_result = 4;- Specified by:
getQueryResultin interfaceQueryAssetsResponseOrBuilder- Returns:
- The queryResult.
-
setQueryResult
Result of the query.
.google.cloud.asset.v1.QueryResult query_result = 4; -
setQueryResult
Result of the query.
.google.cloud.asset.v1.QueryResult query_result = 4; -
mergeQueryResult
Result of the query.
.google.cloud.asset.v1.QueryResult query_result = 4; -
clearQueryResult
Result of the query.
.google.cloud.asset.v1.QueryResult query_result = 4; -
getQueryResultBuilder
Result of the query.
.google.cloud.asset.v1.QueryResult query_result = 4; -
getQueryResultOrBuilder
Result of the query.
.google.cloud.asset.v1.QueryResult query_result = 4;- Specified by:
getQueryResultOrBuilderin interfaceQueryAssetsResponseOrBuilder
-
hasOutputConfig
public boolean hasOutputConfig()Output configuration, which indicates that instead of being returned in an API response on the fly, the query result will be saved in a specific output.
.google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5;- Specified by:
hasOutputConfigin interfaceQueryAssetsResponseOrBuilder- Returns:
- Whether the outputConfig field is set.
-
getOutputConfig
Output configuration, which indicates that instead of being returned in an API response on the fly, the query result will be saved in a specific output.
.google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5;- Specified by:
getOutputConfigin interfaceQueryAssetsResponseOrBuilder- Returns:
- The outputConfig.
-
setOutputConfig
Output configuration, which indicates that instead of being returned in an API response on the fly, the query result will be saved in a specific output.
.google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5; -
setOutputConfig
Output configuration, which indicates that instead of being returned in an API response on the fly, the query result will be saved in a specific output.
.google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5; -
mergeOutputConfig
Output configuration, which indicates that instead of being returned in an API response on the fly, the query result will be saved in a specific output.
.google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5; -
clearOutputConfig
Output configuration, which indicates that instead of being returned in an API response on the fly, the query result will be saved in a specific output.
.google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5; -
getOutputConfigBuilder
Output configuration, which indicates that instead of being returned in an API response on the fly, the query result will be saved in a specific output.
.google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5; -
getOutputConfigOrBuilder
Output configuration, which indicates that instead of being returned in an API response on the fly, the query result will be saved in a specific output.
.google.cloud.asset.v1.QueryAssetsOutputConfig output_config = 5;- Specified by:
getOutputConfigOrBuilderin interfaceQueryAssetsResponseOrBuilder
-