- 3.59.0 (latest)
- 3.58.0
- 3.57.0
- 3.56.0
- 3.55.0
- 3.53.0
- 3.52.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.2-SNAPSHOT
- 3.6.0
- 3.4.1
- 3.3.1
- 3.2.17
public static final class BatchGetAssetsHistoryRequest.Builder extends GeneratedMessageV3.Builder<BatchGetAssetsHistoryRequest.Builder> implements BatchGetAssetsHistoryRequestOrBuilder
Batch get assets history request.
Protobuf type google.cloud.asset.v1.BatchGetAssetsHistoryRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BatchGetAssetsHistoryRequest.BuilderImplements
BatchGetAssetsHistoryRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllAssetNames(Iterable<String> values)
public BatchGetAssetsHistoryRequest.Builder addAllAssetNames(Iterable<String> values)
A list of the full names of the assets.
See: https://cloud.google.com/asset-inventory/docs/resource-name-format
Example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
.
The request becomes a no-op if the asset name list is empty, and the max
size of the asset name list is 100 in one request.
repeated string asset_names = 2;
Parameter | |
---|---|
Name | Description |
values |
Iterable<String> The assetNames to add. |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
This builder for chaining. |
addAllRelationshipTypes(Iterable<String> values)
public BatchGetAssetsHistoryRequest.Builder addAllRelationshipTypes(Iterable<String> values)
Optional. 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 outputs specified relationships' history on the [asset_names]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or if any of the [asset_names]'s types doesn't belong to the source types of the [relationship_types].
- Otherwise: it outputs the supported relationships' history on the [asset_names] or returns an error if any of the [asset_names]'s types has no relationship support. See Introduction to Cloud Asset Inventory for all supported asset types and relationship types.
repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
values |
Iterable<String> The relationshipTypes to add. |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
This builder for chaining. |
addAssetNames(String value)
public BatchGetAssetsHistoryRequest.Builder addAssetNames(String value)
A list of the full names of the assets.
See: https://cloud.google.com/asset-inventory/docs/resource-name-format
Example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
.
The request becomes a no-op if the asset name list is empty, and the max
size of the asset name list is 100 in one request.
repeated string asset_names = 2;
Parameter | |
---|---|
Name | Description |
value |
String The assetNames to add. |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
This builder for chaining. |
addAssetNamesBytes(ByteString value)
public BatchGetAssetsHistoryRequest.Builder addAssetNamesBytes(ByteString value)
A list of the full names of the assets.
See: https://cloud.google.com/asset-inventory/docs/resource-name-format
Example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
.
The request becomes a no-op if the asset name list is empty, and the max
size of the asset name list is 100 in one request.
repeated string asset_names = 2;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes of the assetNames to add. |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
This builder for chaining. |
addRelationshipTypes(String value)
public BatchGetAssetsHistoryRequest.Builder addRelationshipTypes(String value)
Optional. 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 outputs specified relationships' history on the [asset_names]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or if any of the [asset_names]'s types doesn't belong to the source types of the [relationship_types].
- Otherwise: it outputs the supported relationships' history on the [asset_names] or returns an error if any of the [asset_names]'s types has no relationship support. See Introduction to Cloud Asset Inventory for all supported asset types and relationship types.
repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The relationshipTypes to add. |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
This builder for chaining. |
addRelationshipTypesBytes(ByteString value)
public BatchGetAssetsHistoryRequest.Builder addRelationshipTypesBytes(ByteString value)
Optional. 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 outputs specified relationships' history on the [asset_names]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or if any of the [asset_names]'s types doesn't belong to the source types of the [relationship_types].
- Otherwise: it outputs the supported relationships' history on the [asset_names] or returns an error if any of the [asset_names]'s types has no relationship support. See Introduction to Cloud Asset Inventory for all supported asset types and relationship types.
repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes of the relationshipTypes to add. |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BatchGetAssetsHistoryRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
build()
public BatchGetAssetsHistoryRequest build()
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest |
buildPartial()
public BatchGetAssetsHistoryRequest buildPartial()
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest |
clear()
public BatchGetAssetsHistoryRequest.Builder clear()
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
clearAssetNames()
public BatchGetAssetsHistoryRequest.Builder clearAssetNames()
A list of the full names of the assets.
See: https://cloud.google.com/asset-inventory/docs/resource-name-format
Example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
.
The request becomes a no-op if the asset name list is empty, and the max
size of the asset name list is 100 in one request.
repeated string asset_names = 2;
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
This builder for chaining. |
clearContentType()
public BatchGetAssetsHistoryRequest.Builder clearContentType()
Optional. The content type.
.google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public BatchGetAssetsHistoryRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public BatchGetAssetsHistoryRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
clearParent()
public BatchGetAssetsHistoryRequest.Builder clearParent()
Required. The relative name of the root asset. It can only be an organization number (such as "organizations/123"), a project ID (such as "projects/my-project-id")", or a project number (such as "projects/12345").
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
This builder for chaining. |
clearReadTimeWindow()
public BatchGetAssetsHistoryRequest.Builder clearReadTimeWindow()
Optional. The time window for the asset history. Both start_time and end_time are optional and if set, it must be after the current time minus 35 days. If end_time is not set, it is default to current timestamp. If start_time is not set, the snapshot of the assets at end_time will be returned. The returned results contain all temporal assets whose time window overlap with read_time_window.
.google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
clearRelationshipTypes()
public BatchGetAssetsHistoryRequest.Builder clearRelationshipTypes()
Optional. 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 outputs specified relationships' history on the [asset_names]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or if any of the [asset_names]'s types doesn't belong to the source types of the [relationship_types].
- Otherwise: it outputs the supported relationships' history on the [asset_names] or returns an error if any of the [asset_names]'s types has no relationship support. See Introduction to Cloud Asset Inventory for all supported asset types and relationship types.
repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
This builder for chaining. |
clone()
public BatchGetAssetsHistoryRequest.Builder clone()
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
getAssetNames(int index)
public String getAssetNames(int index)
A list of the full names of the assets.
See: https://cloud.google.com/asset-inventory/docs/resource-name-format
Example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
.
The request becomes a no-op if the asset name list is empty, and the max
size of the asset name list is 100 in one request.
repeated string asset_names = 2;
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String |
The assetNames at the given index. |
getAssetNamesBytes(int index)
public ByteString getAssetNamesBytes(int index)
A list of the full names of the assets.
See: https://cloud.google.com/asset-inventory/docs/resource-name-format
Example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
.
The request becomes a no-op if the asset name list is empty, and the max
size of the asset name list is 100 in one request.
repeated string asset_names = 2;
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString |
The bytes of the assetNames at the given index. |
getAssetNamesCount()
public int getAssetNamesCount()
A list of the full names of the assets.
See: https://cloud.google.com/asset-inventory/docs/resource-name-format
Example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
.
The request becomes a no-op if the asset name list is empty, and the max
size of the asset name list is 100 in one request.
repeated string asset_names = 2;
Returns | |
---|---|
Type | Description |
int |
The count of assetNames. |
getAssetNamesList()
public ProtocolStringList getAssetNamesList()
A list of the full names of the assets.
See: https://cloud.google.com/asset-inventory/docs/resource-name-format
Example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
.
The request becomes a no-op if the asset name list is empty, and the max
size of the asset name list is 100 in one request.
repeated string asset_names = 2;
Returns | |
---|---|
Type | Description |
ProtocolStringList |
A list containing the assetNames. |
getContentType()
public ContentType getContentType()
Optional. The content type.
.google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ContentType |
The contentType. |
getContentTypeValue()
public int getContentTypeValue()
Optional. The content type.
.google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for contentType. |
getDefaultInstanceForType()
public BatchGetAssetsHistoryRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getParent()
public String getParent()
Required. The relative name of the root asset. It can only be an organization number (such as "organizations/123"), a project ID (such as "projects/my-project-id")", or a project number (such as "projects/12345").
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes()
Required. The relative name of the root asset. It can only be an organization number (such as "organizations/123"), a project ID (such as "projects/my-project-id")", or a project number (such as "projects/12345").
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for parent. |
getReadTimeWindow()
public TimeWindow getReadTimeWindow()
Optional. The time window for the asset history. Both start_time and end_time are optional and if set, it must be after the current time minus 35 days. If end_time is not set, it is default to current timestamp. If start_time is not set, the snapshot of the assets at end_time will be returned. The returned results contain all temporal assets whose time window overlap with read_time_window.
.google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
TimeWindow |
The readTimeWindow. |
getReadTimeWindowBuilder()
public TimeWindow.Builder getReadTimeWindowBuilder()
Optional. The time window for the asset history. Both start_time and end_time are optional and if set, it must be after the current time minus 35 days. If end_time is not set, it is default to current timestamp. If start_time is not set, the snapshot of the assets at end_time will be returned. The returned results contain all temporal assets whose time window overlap with read_time_window.
.google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
TimeWindow.Builder |
getReadTimeWindowOrBuilder()
public TimeWindowOrBuilder getReadTimeWindowOrBuilder()
Optional. The time window for the asset history. Both start_time and end_time are optional and if set, it must be after the current time minus 35 days. If end_time is not set, it is default to current timestamp. If start_time is not set, the snapshot of the assets at end_time will be returned. The returned results contain all temporal assets whose time window overlap with read_time_window.
.google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
TimeWindowOrBuilder |
getRelationshipTypes(int index)
public String getRelationshipTypes(int index)
Optional. 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 outputs specified relationships' history on the [asset_names]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or if any of the [asset_names]'s types doesn't belong to the source types of the [relationship_types].
- Otherwise: it outputs the supported relationships' history on the [asset_names] or returns an error if any of the [asset_names]'s types has no relationship support. See Introduction to Cloud Asset Inventory for all supported asset types and relationship types.
repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String |
The relationshipTypes at the given index. |
getRelationshipTypesBytes(int index)
public ByteString getRelationshipTypesBytes(int index)
Optional. 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 outputs specified relationships' history on the [asset_names]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or if any of the [asset_names]'s types doesn't belong to the source types of the [relationship_types].
- Otherwise: it outputs the supported relationships' history on the [asset_names] or returns an error if any of the [asset_names]'s types has no relationship support. See Introduction to Cloud Asset Inventory for all supported asset types and relationship types.
repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString |
The bytes of the relationshipTypes at the given index. |
getRelationshipTypesCount()
public int getRelationshipTypesCount()
Optional. 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 outputs specified relationships' history on the [asset_names]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or if any of the [asset_names]'s types doesn't belong to the source types of the [relationship_types].
- Otherwise: it outputs the supported relationships' history on the [asset_names] or returns an error if any of the [asset_names]'s types has no relationship support. See Introduction to Cloud Asset Inventory for all supported asset types and relationship types.
repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
The count of relationshipTypes. |
getRelationshipTypesList()
public ProtocolStringList getRelationshipTypesList()
Optional. 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 outputs specified relationships' history on the [asset_names]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or if any of the [asset_names]'s types doesn't belong to the source types of the [relationship_types].
- Otherwise: it outputs the supported relationships' history on the [asset_names] or returns an error if any of the [asset_names]'s types has no relationship support. See Introduction to Cloud Asset Inventory for all supported asset types and relationship types.
repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ProtocolStringList |
A list containing the relationshipTypes. |
hasReadTimeWindow()
public boolean hasReadTimeWindow()
Optional. The time window for the asset history. Both start_time and end_time are optional and if set, it must be after the current time minus 35 days. If end_time is not set, it is default to current timestamp. If start_time is not set, the snapshot of the assets at end_time will be returned. The returned results contain all temporal assets whose time window overlap with read_time_window.
.google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the readTimeWindow field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(BatchGetAssetsHistoryRequest other)
public BatchGetAssetsHistoryRequest.Builder mergeFrom(BatchGetAssetsHistoryRequest other)
Parameter | |
---|---|
Name | Description |
other |
BatchGetAssetsHistoryRequest |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BatchGetAssetsHistoryRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public BatchGetAssetsHistoryRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
mergeReadTimeWindow(TimeWindow value)
public BatchGetAssetsHistoryRequest.Builder mergeReadTimeWindow(TimeWindow value)
Optional. The time window for the asset history. Both start_time and end_time are optional and if set, it must be after the current time minus 35 days. If end_time is not set, it is default to current timestamp. If start_time is not set, the snapshot of the assets at end_time will be returned. The returned results contain all temporal assets whose time window overlap with read_time_window.
.google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
TimeWindow |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BatchGetAssetsHistoryRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
setAssetNames(int index, String value)
public BatchGetAssetsHistoryRequest.Builder setAssetNames(int index, String value)
A list of the full names of the assets.
See: https://cloud.google.com/asset-inventory/docs/resource-name-format
Example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
.
The request becomes a no-op if the asset name list is empty, and the max
size of the asset name list is 100 in one request.
repeated string asset_names = 2;
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
String The assetNames to set. |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
This builder for chaining. |
setContentType(ContentType value)
public BatchGetAssetsHistoryRequest.Builder setContentType(ContentType value)
Optional. The content type.
.google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ContentType The contentType to set. |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
This builder for chaining. |
setContentTypeValue(int value)
public BatchGetAssetsHistoryRequest.Builder setContentTypeValue(int value)
Optional. The content type.
.google.cloud.asset.v1.ContentType content_type = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for contentType to set. |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public BatchGetAssetsHistoryRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
setParent(String value)
public BatchGetAssetsHistoryRequest.Builder setParent(String value)
Required. The relative name of the root asset. It can only be an organization number (such as "organizations/123"), a project ID (such as "projects/my-project-id")", or a project number (such as "projects/12345").
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The parent to set. |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public BatchGetAssetsHistoryRequest.Builder setParentBytes(ByteString value)
Required. The relative name of the root asset. It can only be an organization number (such as "organizations/123"), a project ID (such as "projects/my-project-id")", or a project number (such as "projects/12345").
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for parent to set. |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
This builder for chaining. |
setReadTimeWindow(TimeWindow value)
public BatchGetAssetsHistoryRequest.Builder setReadTimeWindow(TimeWindow value)
Optional. The time window for the asset history. Both start_time and end_time are optional and if set, it must be after the current time minus 35 days. If end_time is not set, it is default to current timestamp. If start_time is not set, the snapshot of the assets at end_time will be returned. The returned results contain all temporal assets whose time window overlap with read_time_window.
.google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
TimeWindow |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
setReadTimeWindow(TimeWindow.Builder builderForValue)
public BatchGetAssetsHistoryRequest.Builder setReadTimeWindow(TimeWindow.Builder builderForValue)
Optional. The time window for the asset history. Both start_time and end_time are optional and if set, it must be after the current time minus 35 days. If end_time is not set, it is default to current timestamp. If start_time is not set, the snapshot of the assets at end_time will be returned. The returned results contain all temporal assets whose time window overlap with read_time_window.
.google.cloud.asset.v1.TimeWindow read_time_window = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
TimeWindow.Builder |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
setRelationshipTypes(int index, String value)
public BatchGetAssetsHistoryRequest.Builder setRelationshipTypes(int index, String value)
Optional. 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 outputs specified relationships' history on the [asset_names]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or if any of the [asset_names]'s types doesn't belong to the source types of the [relationship_types].
- Otherwise: it outputs the supported relationships' history on the [asset_names] or returns an error if any of the [asset_names]'s types has no relationship support. See Introduction to Cloud Asset Inventory for all supported asset types and relationship types.
repeated string relationship_types = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
String The relationshipTypes to set. |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BatchGetAssetsHistoryRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final BatchGetAssetsHistoryRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
BatchGetAssetsHistoryRequest.Builder |