Package com.google.cloud.asset.v1
Class ListAssetsRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ListAssetsRequest.Builder>
-
- com.google.cloud.asset.v1.ListAssetsRequest.Builder
-
- All Implemented Interfaces:
ListAssetsRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ListAssetsRequest
public static final class ListAssetsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ListAssetsRequest.Builder> implements ListAssetsRequestOrBuilder
ListAssets request.
Protobuf typegoogle.cloud.asset.v1.ListAssetsRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ListAssetsRequest.Builder
addAllAssetTypes(Iterable<String> values)
A list of asset types to take a snapshot for.ListAssetsRequest.Builder
addAllRelationshipTypes(Iterable<String> values)
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`.ListAssetsRequest.Builder
addAssetTypes(String value)
A list of asset types to take a snapshot for.ListAssetsRequest.Builder
addAssetTypesBytes(com.google.protobuf.ByteString value)
A list of asset types to take a snapshot for.ListAssetsRequest.Builder
addRelationshipTypes(String value)
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`.ListAssetsRequest.Builder
addRelationshipTypesBytes(com.google.protobuf.ByteString value)
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`.ListAssetsRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ListAssetsRequest
build()
ListAssetsRequest
buildPartial()
ListAssetsRequest.Builder
clear()
ListAssetsRequest.Builder
clearAssetTypes()
A list of asset types to take a snapshot for.ListAssetsRequest.Builder
clearContentType()
Asset content type.ListAssetsRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ListAssetsRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ListAssetsRequest.Builder
clearPageSize()
The maximum number of assets to be returned in a single response.ListAssetsRequest.Builder
clearPageToken()
The `next_page_token` returned from the previous `ListAssetsResponse`, or unspecified for the first `ListAssetsRequest`.ListAssetsRequest.Builder
clearParent()
Required.ListAssetsRequest.Builder
clearReadTime()
Timestamp to take an asset snapshot.ListAssetsRequest.Builder
clearRelationshipTypes()
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`.ListAssetsRequest.Builder
clone()
String
getAssetTypes(int index)
A list of asset types to take a snapshot for.com.google.protobuf.ByteString
getAssetTypesBytes(int index)
A list of asset types to take a snapshot for.int
getAssetTypesCount()
A list of asset types to take a snapshot for.com.google.protobuf.ProtocolStringList
getAssetTypesList()
A list of asset types to take a snapshot for.ContentType
getContentType()
Asset content type.int
getContentTypeValue()
Asset content type.ListAssetsRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getPageSize()
The maximum number of assets to be returned in a single response.String
getPageToken()
The `next_page_token` returned from the previous `ListAssetsResponse`, or unspecified for the first `ListAssetsRequest`.com.google.protobuf.ByteString
getPageTokenBytes()
The `next_page_token` returned from the previous `ListAssetsResponse`, or unspecified for the first `ListAssetsRequest`.String
getParent()
Required.com.google.protobuf.ByteString
getParentBytes()
Required.com.google.protobuf.Timestamp
getReadTime()
Timestamp to take an asset snapshot.com.google.protobuf.Timestamp.Builder
getReadTimeBuilder()
Timestamp to take an asset snapshot.com.google.protobuf.TimestampOrBuilder
getReadTimeOrBuilder()
Timestamp to take an asset snapshot.String
getRelationshipTypes(int index)
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`.com.google.protobuf.ByteString
getRelationshipTypesBytes(int index)
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`.int
getRelationshipTypesCount()
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`.com.google.protobuf.ProtocolStringList
getRelationshipTypesList()
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`.boolean
hasReadTime()
Timestamp to take an asset snapshot.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ListAssetsRequest.Builder
mergeFrom(ListAssetsRequest other)
ListAssetsRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ListAssetsRequest.Builder
mergeFrom(com.google.protobuf.Message other)
ListAssetsRequest.Builder
mergeReadTime(com.google.protobuf.Timestamp value)
Timestamp to take an asset snapshot.ListAssetsRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ListAssetsRequest.Builder
setAssetTypes(int index, String value)
A list of asset types to take a snapshot for.ListAssetsRequest.Builder
setContentType(ContentType value)
Asset content type.ListAssetsRequest.Builder
setContentTypeValue(int value)
Asset content type.ListAssetsRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ListAssetsRequest.Builder
setPageSize(int value)
The maximum number of assets to be returned in a single response.ListAssetsRequest.Builder
setPageToken(String value)
The `next_page_token` returned from the previous `ListAssetsResponse`, or unspecified for the first `ListAssetsRequest`.ListAssetsRequest.Builder
setPageTokenBytes(com.google.protobuf.ByteString value)
The `next_page_token` returned from the previous `ListAssetsResponse`, or unspecified for the first `ListAssetsRequest`.ListAssetsRequest.Builder
setParent(String value)
Required.ListAssetsRequest.Builder
setParentBytes(com.google.protobuf.ByteString value)
Required.ListAssetsRequest.Builder
setReadTime(com.google.protobuf.Timestamp value)
Timestamp to take an asset snapshot.ListAssetsRequest.Builder
setReadTime(com.google.protobuf.Timestamp.Builder builderForValue)
Timestamp to take an asset snapshot.ListAssetsRequest.Builder
setRelationshipTypes(int index, String value)
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`.ListAssetsRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ListAssetsRequest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListAssetsRequest.Builder>
-
clear
public ListAssetsRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListAssetsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListAssetsRequest.Builder>
-
getDefaultInstanceForType
public ListAssetsRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ListAssetsRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ListAssetsRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ListAssetsRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListAssetsRequest.Builder>
-
setField
public ListAssetsRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListAssetsRequest.Builder>
-
clearField
public ListAssetsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListAssetsRequest.Builder>
-
clearOneof
public ListAssetsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListAssetsRequest.Builder>
-
setRepeatedField
public ListAssetsRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListAssetsRequest.Builder>
-
addRepeatedField
public ListAssetsRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListAssetsRequest.Builder>
-
mergeFrom
public ListAssetsRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ListAssetsRequest.Builder>
-
mergeFrom
public ListAssetsRequest.Builder mergeFrom(ListAssetsRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListAssetsRequest.Builder>
-
mergeFrom
public ListAssetsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ListAssetsRequest.Builder>
- Throws:
IOException
-
getParent
public String getParent()
Required. Name of the organization, folder, or project the assets belong to. Format: "organizations/[organization-number]" (such as "organizations/123"), "projects/[project-id]" (such as "projects/my-project-id"), "projects/[project-number]" (such as "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getParent
in interfaceListAssetsRequestOrBuilder
- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()
Required. Name of the organization, folder, or project the assets belong to. Format: "organizations/[organization-number]" (such as "organizations/123"), "projects/[project-id]" (such as "projects/my-project-id"), "projects/[project-number]" (such as "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getParentBytes
in interfaceListAssetsRequestOrBuilder
- Returns:
- The bytes for parent.
-
setParent
public ListAssetsRequest.Builder setParent(String value)
Required. Name of the organization, folder, or project the assets belong to. Format: "organizations/[organization-number]" (such as "organizations/123"), "projects/[project-id]" (such as "projects/my-project-id"), "projects/[project-number]" (such as "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
public ListAssetsRequest.Builder clearParent()
Required. Name of the organization, folder, or project the assets belong to. Format: "organizations/[organization-number]" (such as "organizations/123"), "projects/[project-id]" (such as "projects/my-project-id"), "projects/[project-number]" (such as "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setParentBytes
public ListAssetsRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
Required. Name of the organization, folder, or project the assets belong to. Format: "organizations/[organization-number]" (such as "organizations/123"), "projects/[project-id]" (such as "projects/my-project-id"), "projects/[project-number]" (such as "projects/12345"), or "folders/[folder-number]" (such as "folders/12345").
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for parent to set.- Returns:
- This builder for chaining.
-
hasReadTime
public boolean hasReadTime()
Timestamp to take an asset snapshot. This can only be set to a timestamp between the current time and the current time minus 35 days (inclusive). If not specified, the current time will be used. Due to delays in resource data collection and indexing, there is a volatile window during which running the same query may get different results.
.google.protobuf.Timestamp read_time = 2;
- Specified by:
hasReadTime
in interfaceListAssetsRequestOrBuilder
- Returns:
- Whether the readTime field is set.
-
getReadTime
public com.google.protobuf.Timestamp getReadTime()
Timestamp to take an asset snapshot. This can only be set to a timestamp between the current time and the current time minus 35 days (inclusive). If not specified, the current time will be used. Due to delays in resource data collection and indexing, there is a volatile window during which running the same query may get different results.
.google.protobuf.Timestamp read_time = 2;
- Specified by:
getReadTime
in interfaceListAssetsRequestOrBuilder
- Returns:
- The readTime.
-
setReadTime
public ListAssetsRequest.Builder setReadTime(com.google.protobuf.Timestamp value)
Timestamp to take an asset snapshot. This can only be set to a timestamp between the current time and the current time minus 35 days (inclusive). If not specified, the current time will be used. Due to delays in resource data collection and indexing, there is a volatile window during which running the same query may get different results.
.google.protobuf.Timestamp read_time = 2;
-
setReadTime
public ListAssetsRequest.Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue)
Timestamp to take an asset snapshot. This can only be set to a timestamp between the current time and the current time minus 35 days (inclusive). If not specified, the current time will be used. Due to delays in resource data collection and indexing, there is a volatile window during which running the same query may get different results.
.google.protobuf.Timestamp read_time = 2;
-
mergeReadTime
public ListAssetsRequest.Builder mergeReadTime(com.google.protobuf.Timestamp value)
Timestamp to take an asset snapshot. This can only be set to a timestamp between the current time and the current time minus 35 days (inclusive). If not specified, the current time will be used. Due to delays in resource data collection and indexing, there is a volatile window during which running the same query may get different results.
.google.protobuf.Timestamp read_time = 2;
-
clearReadTime
public ListAssetsRequest.Builder clearReadTime()
Timestamp to take an asset snapshot. This can only be set to a timestamp between the current time and the current time minus 35 days (inclusive). If not specified, the current time will be used. Due to delays in resource data collection and indexing, there is a volatile window during which running the same query may get different results.
.google.protobuf.Timestamp read_time = 2;
-
getReadTimeBuilder
public com.google.protobuf.Timestamp.Builder getReadTimeBuilder()
Timestamp to take an asset snapshot. This can only be set to a timestamp between the current time and the current time minus 35 days (inclusive). If not specified, the current time will be used. Due to delays in resource data collection and indexing, there is a volatile window during which running the same query may get different results.
.google.protobuf.Timestamp read_time = 2;
-
getReadTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder()
Timestamp to take an asset snapshot. This can only be set to a timestamp between the current time and the current time minus 35 days (inclusive). If not specified, the current time will be used. Due to delays in resource data collection and indexing, there is a volatile window during which running the same query may get different results.
.google.protobuf.Timestamp read_time = 2;
- Specified by:
getReadTimeOrBuilder
in interfaceListAssetsRequestOrBuilder
-
getAssetTypesList
public com.google.protobuf.ProtocolStringList getAssetTypesList()
A list of asset types to take a snapshot for. For example: "compute.googleapis.com/Disk". Regular expression is also supported. For example: * "compute.googleapis.com.*" snapshots resources whose asset type starts with "compute.googleapis.com". * ".*Instance" snapshots resources whose asset type ends with "Instance". * ".*Instance.*" snapshots resources whose asset type contains "Instance". See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported asset type, an INVALID_ARGUMENT error will be returned. If specified, only matching assets will be returned, otherwise, it will snapshot all asset types. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types.
repeated string asset_types = 3;
- Specified by:
getAssetTypesList
in interfaceListAssetsRequestOrBuilder
- Returns:
- A list containing the assetTypes.
-
getAssetTypesCount
public int getAssetTypesCount()
A list of asset types to take a snapshot for. For example: "compute.googleapis.com/Disk". Regular expression is also supported. For example: * "compute.googleapis.com.*" snapshots resources whose asset type starts with "compute.googleapis.com". * ".*Instance" snapshots resources whose asset type ends with "Instance". * ".*Instance.*" snapshots resources whose asset type contains "Instance". See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported asset type, an INVALID_ARGUMENT error will be returned. If specified, only matching assets will be returned, otherwise, it will snapshot all asset types. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types.
repeated string asset_types = 3;
- Specified by:
getAssetTypesCount
in interfaceListAssetsRequestOrBuilder
- Returns:
- The count of assetTypes.
-
getAssetTypes
public String getAssetTypes(int index)
A list of asset types to take a snapshot for. For example: "compute.googleapis.com/Disk". Regular expression is also supported. For example: * "compute.googleapis.com.*" snapshots resources whose asset type starts with "compute.googleapis.com". * ".*Instance" snapshots resources whose asset type ends with "Instance". * ".*Instance.*" snapshots resources whose asset type contains "Instance". See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported asset type, an INVALID_ARGUMENT error will be returned. If specified, only matching assets will be returned, otherwise, it will snapshot all asset types. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types.
repeated string asset_types = 3;
- Specified by:
getAssetTypes
in interfaceListAssetsRequestOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The assetTypes at the given index.
-
getAssetTypesBytes
public com.google.protobuf.ByteString getAssetTypesBytes(int index)
A list of asset types to take a snapshot for. For example: "compute.googleapis.com/Disk". Regular expression is also supported. For example: * "compute.googleapis.com.*" snapshots resources whose asset type starts with "compute.googleapis.com". * ".*Instance" snapshots resources whose asset type ends with "Instance". * ".*Instance.*" snapshots resources whose asset type contains "Instance". See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported asset type, an INVALID_ARGUMENT error will be returned. If specified, only matching assets will be returned, otherwise, it will snapshot all asset types. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types.
repeated string asset_types = 3;
- Specified by:
getAssetTypesBytes
in interfaceListAssetsRequestOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the assetTypes at the given index.
-
setAssetTypes
public ListAssetsRequest.Builder setAssetTypes(int index, String value)
A list of asset types to take a snapshot for. For example: "compute.googleapis.com/Disk". Regular expression is also supported. For example: * "compute.googleapis.com.*" snapshots resources whose asset type starts with "compute.googleapis.com". * ".*Instance" snapshots resources whose asset type ends with "Instance". * ".*Instance.*" snapshots resources whose asset type contains "Instance". See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported asset type, an INVALID_ARGUMENT error will be returned. If specified, only matching assets will be returned, otherwise, it will snapshot all asset types. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types.
repeated string asset_types = 3;
- Parameters:
index
- The index to set the value at.value
- The assetTypes to set.- Returns:
- This builder for chaining.
-
addAssetTypes
public ListAssetsRequest.Builder addAssetTypes(String value)
A list of asset types to take a snapshot for. For example: "compute.googleapis.com/Disk". Regular expression is also supported. For example: * "compute.googleapis.com.*" snapshots resources whose asset type starts with "compute.googleapis.com". * ".*Instance" snapshots resources whose asset type ends with "Instance". * ".*Instance.*" snapshots resources whose asset type contains "Instance". See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported asset type, an INVALID_ARGUMENT error will be returned. If specified, only matching assets will be returned, otherwise, it will snapshot all asset types. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types.
repeated string asset_types = 3;
- Parameters:
value
- The assetTypes to add.- Returns:
- This builder for chaining.
-
addAllAssetTypes
public ListAssetsRequest.Builder addAllAssetTypes(Iterable<String> values)
A list of asset types to take a snapshot for. For example: "compute.googleapis.com/Disk". Regular expression is also supported. For example: * "compute.googleapis.com.*" snapshots resources whose asset type starts with "compute.googleapis.com". * ".*Instance" snapshots resources whose asset type ends with "Instance". * ".*Instance.*" snapshots resources whose asset type contains "Instance". See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported asset type, an INVALID_ARGUMENT error will be returned. If specified, only matching assets will be returned, otherwise, it will snapshot all asset types. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types.
repeated string asset_types = 3;
- Parameters:
values
- The assetTypes to add.- Returns:
- This builder for chaining.
-
clearAssetTypes
public ListAssetsRequest.Builder clearAssetTypes()
A list of asset types to take a snapshot for. For example: "compute.googleapis.com/Disk". Regular expression is also supported. For example: * "compute.googleapis.com.*" snapshots resources whose asset type starts with "compute.googleapis.com". * ".*Instance" snapshots resources whose asset type ends with "Instance". * ".*Instance.*" snapshots resources whose asset type contains "Instance". See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported asset type, an INVALID_ARGUMENT error will be returned. If specified, only matching assets will be returned, otherwise, it will snapshot all asset types. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types.
repeated string asset_types = 3;
- Returns:
- This builder for chaining.
-
addAssetTypesBytes
public ListAssetsRequest.Builder addAssetTypesBytes(com.google.protobuf.ByteString value)
A list of asset types to take a snapshot for. For example: "compute.googleapis.com/Disk". Regular expression is also supported. For example: * "compute.googleapis.com.*" snapshots resources whose asset type starts with "compute.googleapis.com". * ".*Instance" snapshots resources whose asset type ends with "Instance". * ".*Instance.*" snapshots resources whose asset type contains "Instance". See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the regular expression does not match any supported asset type, an INVALID_ARGUMENT error will be returned. If specified, only matching assets will be returned, otherwise, it will snapshot all asset types. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types.
repeated string asset_types = 3;
- Parameters:
value
- The bytes of the assetTypes to add.- Returns:
- This builder for chaining.
-
getContentTypeValue
public int getContentTypeValue()
Asset content type. If not specified, no content but the asset name will be returned.
.google.cloud.asset.v1.ContentType content_type = 4;
- Specified by:
getContentTypeValue
in interfaceListAssetsRequestOrBuilder
- Returns:
- The enum numeric value on the wire for contentType.
-
setContentTypeValue
public ListAssetsRequest.Builder setContentTypeValue(int value)
Asset content type. If not specified, no content but the asset name will be returned.
.google.cloud.asset.v1.ContentType content_type = 4;
- Parameters:
value
- The enum numeric value on the wire for contentType to set.- Returns:
- This builder for chaining.
-
getContentType
public ContentType getContentType()
Asset content type. If not specified, no content but the asset name will be returned.
.google.cloud.asset.v1.ContentType content_type = 4;
- Specified by:
getContentType
in interfaceListAssetsRequestOrBuilder
- Returns:
- The contentType.
-
setContentType
public ListAssetsRequest.Builder setContentType(ContentType value)
Asset content type. If not specified, no content but the asset name will be returned.
.google.cloud.asset.v1.ContentType content_type = 4;
- Parameters:
value
- The contentType to set.- Returns:
- This builder for chaining.
-
clearContentType
public ListAssetsRequest.Builder clearContentType()
Asset content type. If not specified, no content but the asset name will be returned.
.google.cloud.asset.v1.ContentType content_type = 4;
- Returns:
- This builder for chaining.
-
getPageSize
public int getPageSize()
The maximum number of assets to be returned in a single response. Default is 100, minimum is 1, and maximum is 1000.
int32 page_size = 5;
- Specified by:
getPageSize
in interfaceListAssetsRequestOrBuilder
- Returns:
- The pageSize.
-
setPageSize
public ListAssetsRequest.Builder setPageSize(int value)
The maximum number of assets to be returned in a single response. Default is 100, minimum is 1, and maximum is 1000.
int32 page_size = 5;
- Parameters:
value
- The pageSize to set.- Returns:
- This builder for chaining.
-
clearPageSize
public ListAssetsRequest.Builder clearPageSize()
The maximum number of assets to be returned in a single response. Default is 100, minimum is 1, and maximum is 1000.
int32 page_size = 5;
- Returns:
- This builder for chaining.
-
getPageToken
public String getPageToken()
The `next_page_token` returned from the previous `ListAssetsResponse`, or unspecified for the first `ListAssetsRequest`. It is a continuation of a prior `ListAssets` call, and the API should return the next page of assets.
string page_token = 6;
- Specified by:
getPageToken
in interfaceListAssetsRequestOrBuilder
- Returns:
- The pageToken.
-
getPageTokenBytes
public com.google.protobuf.ByteString getPageTokenBytes()
The `next_page_token` returned from the previous `ListAssetsResponse`, or unspecified for the first `ListAssetsRequest`. It is a continuation of a prior `ListAssets` call, and the API should return the next page of assets.
string page_token = 6;
- Specified by:
getPageTokenBytes
in interfaceListAssetsRequestOrBuilder
- Returns:
- The bytes for pageToken.
-
setPageToken
public ListAssetsRequest.Builder setPageToken(String value)
The `next_page_token` returned from the previous `ListAssetsResponse`, or unspecified for the first `ListAssetsRequest`. It is a continuation of a prior `ListAssets` call, and the API should return the next page of assets.
string page_token = 6;
- Parameters:
value
- The pageToken to set.- Returns:
- This builder for chaining.
-
clearPageToken
public ListAssetsRequest.Builder clearPageToken()
The `next_page_token` returned from the previous `ListAssetsResponse`, or unspecified for the first `ListAssetsRequest`. It is a continuation of a prior `ListAssets` call, and the API should return the next page of assets.
string page_token = 6;
- Returns:
- This builder for chaining.
-
setPageTokenBytes
public ListAssetsRequest.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
The `next_page_token` returned from the previous `ListAssetsResponse`, or unspecified for the first `ListAssetsRequest`. It is a continuation of a prior `ListAssets` call, and the API should return the next page of assets.
string page_token = 6;
- Parameters:
value
- The bytes for pageToken to set.- Returns:
- This builder for chaining.
-
getRelationshipTypesList
public com.google.protobuf.ProtocolStringList getRelationshipTypesList()
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it snapshots specified relationships. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_types] or if any of the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it snapshots the supported relationships for all [asset_types] or returns an error if any of the [asset_types] has no relationship support. An unspecified asset types field means all supported asset_types. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
repeated string relationship_types = 7;
- Specified by:
getRelationshipTypesList
in interfaceListAssetsRequestOrBuilder
- Returns:
- A list containing the relationshipTypes.
-
getRelationshipTypesCount
public int getRelationshipTypesCount()
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it snapshots specified relationships. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_types] or if any of the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it snapshots the supported relationships for all [asset_types] or returns an error if any of the [asset_types] has no relationship support. An unspecified asset types field means all supported asset_types. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
repeated string relationship_types = 7;
- Specified by:
getRelationshipTypesCount
in interfaceListAssetsRequestOrBuilder
- Returns:
- The count of relationshipTypes.
-
getRelationshipTypes
public String getRelationshipTypes(int index)
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it snapshots specified relationships. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_types] or if any of the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it snapshots the supported relationships for all [asset_types] or returns an error if any of the [asset_types] has no relationship support. An unspecified asset types field means all supported asset_types. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
repeated string relationship_types = 7;
- Specified by:
getRelationshipTypes
in interfaceListAssetsRequestOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The relationshipTypes at the given index.
-
getRelationshipTypesBytes
public com.google.protobuf.ByteString getRelationshipTypesBytes(int index)
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it snapshots specified relationships. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_types] or if any of the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it snapshots the supported relationships for all [asset_types] or returns an error if any of the [asset_types] has no relationship support. An unspecified asset types field means all supported asset_types. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
repeated string relationship_types = 7;
- Specified by:
getRelationshipTypesBytes
in interfaceListAssetsRequestOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the relationshipTypes at the given index.
-
setRelationshipTypes
public ListAssetsRequest.Builder setRelationshipTypes(int index, String value)
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it snapshots specified relationships. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_types] or if any of the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it snapshots the supported relationships for all [asset_types] or returns an error if any of the [asset_types] has no relationship support. An unspecified asset types field means all supported asset_types. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
repeated string relationship_types = 7;
- Parameters:
index
- The index to set the value at.value
- The relationshipTypes to set.- Returns:
- This builder for chaining.
-
addRelationshipTypes
public ListAssetsRequest.Builder addRelationshipTypes(String value)
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it snapshots specified relationships. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_types] or if any of the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it snapshots the supported relationships for all [asset_types] or returns an error if any of the [asset_types] has no relationship support. An unspecified asset types field means all supported asset_types. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
repeated string relationship_types = 7;
- Parameters:
value
- The relationshipTypes to add.- Returns:
- This builder for chaining.
-
addAllRelationshipTypes
public ListAssetsRequest.Builder addAllRelationshipTypes(Iterable<String> values)
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it snapshots specified relationships. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_types] or if any of the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it snapshots the supported relationships for all [asset_types] or returns an error if any of the [asset_types] has no relationship support. An unspecified asset types field means all supported asset_types. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
repeated string relationship_types = 7;
- Parameters:
values
- The relationshipTypes to add.- Returns:
- This builder for chaining.
-
clearRelationshipTypes
public ListAssetsRequest.Builder clearRelationshipTypes()
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it snapshots specified relationships. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_types] or if any of the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it snapshots the supported relationships for all [asset_types] or returns an error if any of the [asset_types] has no relationship support. An unspecified asset types field means all supported asset_types. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
repeated string relationship_types = 7;
- Returns:
- This builder for chaining.
-
addRelationshipTypesBytes
public ListAssetsRequest.Builder addRelationshipTypesBytes(com.google.protobuf.ByteString value)
A list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it snapshots specified relationships. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_types] or if any of the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it snapshots the supported relationships for all [asset_types] or returns an error if any of the [asset_types] has no relationship support. An unspecified asset types field means all supported asset_types. See [Introduction to Cloud Asset Inventory](https://cloud.google.com/asset-inventory/docs/overview) for all supported asset types and relationship types.
repeated string relationship_types = 7;
- Parameters:
value
- The bytes of the relationshipTypes to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ListAssetsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListAssetsRequest.Builder>
-
mergeUnknownFields
public final ListAssetsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListAssetsRequest.Builder>
-
-