Class ListAssetsRequest.Builder (3.7.1)

public static final class ListAssetsRequest.Builder extends GeneratedMessageV3.Builder<ListAssetsRequest.Builder> implements ListAssetsRequestOrBuilder

ListAssets request.

Protobuf type google.cloud.asset.v1p5beta1.ListAssetsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllAssetTypes(Iterable<String> values)

public ListAssetsRequest.Builder addAllAssetTypes(Iterable<String> values)

A list of asset types of which to take a snapshot for. For example: "compute.googleapis.com/Disk". If specified, only matching assets will be returned. See Introduction to Cloud Asset Inventory for all supported asset types.

repeated string asset_types = 3;

Parameter
NameDescription
valuesIterable<String>

The assetTypes to add.

Returns
TypeDescription
ListAssetsRequest.Builder

This builder for chaining.

addAssetTypes(String value)

public ListAssetsRequest.Builder addAssetTypes(String value)

A list of asset types of which to take a snapshot for. For example: "compute.googleapis.com/Disk". If specified, only matching assets will be returned. See Introduction to Cloud Asset Inventory for all supported asset types.

repeated string asset_types = 3;

Parameter
NameDescription
valueString

The assetTypes to add.

Returns
TypeDescription
ListAssetsRequest.Builder

This builder for chaining.

addAssetTypesBytes(ByteString value)

public ListAssetsRequest.Builder addAssetTypesBytes(ByteString value)

A list of asset types of which to take a snapshot for. For example: "compute.googleapis.com/Disk". If specified, only matching assets will be returned. See Introduction to Cloud Asset Inventory for all supported asset types.

repeated string asset_types = 3;

Parameter
NameDescription
valueByteString

The bytes of the assetTypes to add.

Returns
TypeDescription
ListAssetsRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListAssetsRequest build()
Returns
TypeDescription
ListAssetsRequest

buildPartial()

public ListAssetsRequest buildPartial()
Returns
TypeDescription
ListAssetsRequest

clear()

public ListAssetsRequest.Builder clear()
Returns
TypeDescription
ListAssetsRequest.Builder
Overrides

clearAssetTypes()

public ListAssetsRequest.Builder clearAssetTypes()

A list of asset types of which to take a snapshot for. For example: "compute.googleapis.com/Disk". If specified, only matching assets will be returned. See Introduction to Cloud Asset Inventory for all supported asset types.

repeated string asset_types = 3;

Returns
TypeDescription
ListAssetsRequest.Builder

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.v1p5beta1.ContentType content_type = 4;

Returns
TypeDescription
ListAssetsRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ListAssetsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListAssetsRequest.Builder
Overrides

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
TypeDescription
ListAssetsRequest.Builder

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
TypeDescription
ListAssetsRequest.Builder

This builder for chaining.

clearParent()

public ListAssetsRequest.Builder clearParent()

Required. Name of the organization or project the assets belong to. Format: "organizations/[organization-number]" (such as "organizations/123"), "projects/[project-number]" (such as "projects/my-project-id"), or "projects/[project-id]" (such as "projects/12345").

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ListAssetsRequest.Builder

This builder for chaining.

clearReadTime()

public ListAssetsRequest.Builder clearReadTime()

Timestamp to take an asset snapshot. This can only be set to a timestamp between 2018-10-02 UTC (inclusive) and the current time. 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;

Returns
TypeDescription
ListAssetsRequest.Builder

clone()

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

getAssetTypes(int index)

public String getAssetTypes(int index)

A list of asset types of which to take a snapshot for. For example: "compute.googleapis.com/Disk". If specified, only matching assets will be returned. See Introduction to Cloud Asset Inventory for all supported asset types.

repeated string asset_types = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The assetTypes at the given index.

getAssetTypesBytes(int index)

public ByteString getAssetTypesBytes(int index)

A list of asset types of which to take a snapshot for. For example: "compute.googleapis.com/Disk". If specified, only matching assets will be returned. See Introduction to Cloud Asset Inventory for all supported asset types.

repeated string asset_types = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the assetTypes at the given index.

getAssetTypesCount()

public int getAssetTypesCount()

A list of asset types of which to take a snapshot for. For example: "compute.googleapis.com/Disk". If specified, only matching assets will be returned. See Introduction to Cloud Asset Inventory for all supported asset types.

repeated string asset_types = 3;

Returns
TypeDescription
int

The count of assetTypes.

getAssetTypesList()

public ProtocolStringList getAssetTypesList()

A list of asset types of which to take a snapshot for. For example: "compute.googleapis.com/Disk". If specified, only matching assets will be returned. See Introduction to Cloud Asset Inventory for all supported asset types.

repeated string asset_types = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the assetTypes.

getContentType()

public ContentType getContentType()

Asset content type. If not specified, no content but the asset name will be returned.

.google.cloud.asset.v1p5beta1.ContentType content_type = 4;

Returns
TypeDescription
ContentType

The contentType.

getContentTypeValue()

public int getContentTypeValue()

Asset content type. If not specified, no content but the asset name will be returned.

.google.cloud.asset.v1p5beta1.ContentType content_type = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for contentType.

getDefaultInstanceForType()

public ListAssetsRequest getDefaultInstanceForType()
Returns
TypeDescription
ListAssetsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
int

The pageSize.

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;

Returns
TypeDescription
String

The pageToken.

getPageTokenBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for pageToken.

getParent()

public String getParent()

Required. Name of the organization or project the assets belong to. Format: "organizations/[organization-number]" (such as "organizations/123"), "projects/[project-number]" (such as "projects/my-project-id"), or "projects/[project-id]" (such as "projects/12345").

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Name of the organization or project the assets belong to. Format: "organizations/[organization-number]" (such as "organizations/123"), "projects/[project-number]" (such as "projects/my-project-id"), or "projects/[project-id]" (such as "projects/12345").

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for parent.

getReadTime()

public Timestamp getReadTime()

Timestamp to take an asset snapshot. This can only be set to a timestamp between 2018-10-02 UTC (inclusive) and the current time. 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;

Returns
TypeDescription
Timestamp

The readTime.

getReadTimeBuilder()

public Timestamp.Builder getReadTimeBuilder()

Timestamp to take an asset snapshot. This can only be set to a timestamp between 2018-10-02 UTC (inclusive) and the current time. 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;

Returns
TypeDescription
Builder

getReadTimeOrBuilder()

public TimestampOrBuilder getReadTimeOrBuilder()

Timestamp to take an asset snapshot. This can only be set to a timestamp between 2018-10-02 UTC (inclusive) and the current time. 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;

Returns
TypeDescription
TimestampOrBuilder

hasReadTime()

public boolean hasReadTime()

Timestamp to take an asset snapshot. This can only be set to a timestamp between 2018-10-02 UTC (inclusive) and the current time. 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;

Returns
TypeDescription
boolean

Whether the readTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListAssetsRequest other)

public ListAssetsRequest.Builder mergeFrom(ListAssetsRequest other)
Parameter
NameDescription
otherListAssetsRequest
Returns
TypeDescription
ListAssetsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ListAssetsRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListAssetsRequest.Builder
Overrides

mergeReadTime(Timestamp value)

public ListAssetsRequest.Builder mergeReadTime(Timestamp value)

Timestamp to take an asset snapshot. This can only be set to a timestamp between 2018-10-02 UTC (inclusive) and the current time. 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;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ListAssetsRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListAssetsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListAssetsRequest.Builder
Overrides

setAssetTypes(int index, String value)

public ListAssetsRequest.Builder setAssetTypes(int index, String value)

A list of asset types of which to take a snapshot for. For example: "compute.googleapis.com/Disk". If specified, only matching assets will be returned. See Introduction to Cloud Asset Inventory for all supported asset types.

repeated string asset_types = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The assetTypes to set.

Returns
TypeDescription
ListAssetsRequest.Builder

This builder for chaining.

setContentType(ContentType value)

public ListAssetsRequest.Builder setContentType(ContentType value)

Asset content type. If not specified, no content but the asset name will be returned.

.google.cloud.asset.v1p5beta1.ContentType content_type = 4;

Parameter
NameDescription
valueContentType

The contentType to set.

Returns
TypeDescription
ListAssetsRequest.Builder

This builder for chaining.

setContentTypeValue(int value)

public ListAssetsRequest.Builder setContentTypeValue(int value)

Asset content type. If not specified, no content but the asset name will be returned.

.google.cloud.asset.v1p5beta1.ContentType content_type = 4;

Parameter
NameDescription
valueint

The enum numeric value on the wire for contentType to set.

Returns
TypeDescription
ListAssetsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPageSize(int value)

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;

Parameter
NameDescription
valueint

The pageSize to set.

Returns
TypeDescription
ListAssetsRequest.Builder

This builder for chaining.

setPageToken(String value)

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;

Parameter
NameDescription
valueString

The pageToken to set.

Returns
TypeDescription
ListAssetsRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListAssetsRequest.Builder setPageTokenBytes(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;

Parameter
NameDescription
valueByteString

The bytes for pageToken to set.

Returns
TypeDescription
ListAssetsRequest.Builder

This builder for chaining.

setParent(String value)

public ListAssetsRequest.Builder setParent(String value)

Required. Name of the organization or project the assets belong to. Format: "organizations/[organization-number]" (such as "organizations/123"), "projects/[project-number]" (such as "projects/my-project-id"), or "projects/[project-id]" (such as "projects/12345").

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
ListAssetsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ListAssetsRequest.Builder setParentBytes(ByteString value)

Required. Name of the organization or project the assets belong to. Format: "organizations/[organization-number]" (such as "organizations/123"), "projects/[project-number]" (such as "projects/my-project-id"), or "projects/[project-id]" (such as "projects/12345").

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
ListAssetsRequest.Builder

This builder for chaining.

setReadTime(Timestamp value)

public ListAssetsRequest.Builder setReadTime(Timestamp value)

Timestamp to take an asset snapshot. This can only be set to a timestamp between 2018-10-02 UTC (inclusive) and the current time. 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;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ListAssetsRequest.Builder

setReadTime(Timestamp.Builder builderForValue)

public ListAssetsRequest.Builder setReadTime(Timestamp.Builder builderForValue)

Timestamp to take an asset snapshot. This can only be set to a timestamp between 2018-10-02 UTC (inclusive) and the current time. 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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ListAssetsRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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