public static final class Feed.Builder extends GeneratedMessageV3.Builder<Feed.Builder> implements FeedOrBuilder
An asset feed used to export asset updates to a destinations. An asset feed filter controls what updates are exported. The asset feed must be created within a project, organization, or folder. Supported destinations are: Pub/Sub topics.Protobuf type
google.cloud.asset.v1.Feed
Modifier and Type | Method and Description |
---|---|
Feed.Builder |
addAllAssetNames(Iterable<String> values)
A list of the full names of the assets to receive updates.
|
Feed.Builder |
addAllAssetTypes(Iterable<String> values)
A list of types of the assets to receive updates.
|
Feed.Builder |
addAllRelationshipTypes(Iterable<String> values)
A list of relationship types to output, for example:
`INSTANCE_TO_INSTANCEGROUP`.
|
Feed.Builder |
addAssetNames(String value)
A list of the full names of the assets to receive updates.
|
Feed.Builder |
addAssetNamesBytes(ByteString value)
A list of the full names of the assets to receive updates.
|
Feed.Builder |
addAssetTypes(String value)
A list of types of the assets to receive updates.
|
Feed.Builder |
addAssetTypesBytes(ByteString value)
A list of types of the assets to receive updates.
|
Feed.Builder |
addRelationshipTypes(String value)
A list of relationship types to output, for example:
`INSTANCE_TO_INSTANCEGROUP`.
|
Feed.Builder |
addRelationshipTypesBytes(ByteString value)
A list of relationship types to output, for example:
`INSTANCE_TO_INSTANCEGROUP`.
|
Feed.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
Feed |
build() |
Feed |
buildPartial() |
Feed.Builder |
clear() |
Feed.Builder |
clearAssetNames()
A list of the full names of the assets to receive updates.
|
Feed.Builder |
clearAssetTypes()
A list of types of the assets to receive updates.
|
Feed.Builder |
clearCondition()
A condition which determines whether an asset update should be published.
|
Feed.Builder |
clearContentType()
Asset content type.
|
Feed.Builder |
clearFeedOutputConfig()
Required.
|
Feed.Builder |
clearField(Descriptors.FieldDescriptor field) |
Feed.Builder |
clearName()
Required.
|
Feed.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Feed.Builder |
clearRelationshipTypes()
A list of relationship types to output, for example:
`INSTANCE_TO_INSTANCEGROUP`.
|
Feed.Builder |
clone() |
String |
getAssetNames(int index)
A list of the full names of the assets to receive updates.
|
ByteString |
getAssetNamesBytes(int index)
A list of the full names of the assets to receive updates.
|
int |
getAssetNamesCount()
A list of the full names of the assets to receive updates.
|
ProtocolStringList |
getAssetNamesList()
A list of the full names of the assets to receive updates.
|
String |
getAssetTypes(int index)
A list of types of the assets to receive updates.
|
ByteString |
getAssetTypesBytes(int index)
A list of types of the assets to receive updates.
|
int |
getAssetTypesCount()
A list of types of the assets to receive updates.
|
ProtocolStringList |
getAssetTypesList()
A list of types of the assets to receive updates.
|
com.google.type.Expr |
getCondition()
A condition which determines whether an asset update should be published.
|
com.google.type.Expr.Builder |
getConditionBuilder()
A condition which determines whether an asset update should be published.
|
com.google.type.ExprOrBuilder |
getConditionOrBuilder()
A condition which determines whether an asset update should be published.
|
ContentType |
getContentType()
Asset content type.
|
int |
getContentTypeValue()
Asset content type.
|
Feed |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
FeedOutputConfig |
getFeedOutputConfig()
Required.
|
FeedOutputConfig.Builder |
getFeedOutputConfigBuilder()
Required.
|
FeedOutputConfigOrBuilder |
getFeedOutputConfigOrBuilder()
Required.
|
String |
getName()
Required.
|
ByteString |
getNameBytes()
Required.
|
String |
getRelationshipTypes(int index)
A list of relationship types to output, for example:
`INSTANCE_TO_INSTANCEGROUP`.
|
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`.
|
ProtocolStringList |
getRelationshipTypesList()
A list of relationship types to output, for example:
`INSTANCE_TO_INSTANCEGROUP`.
|
boolean |
hasCondition()
A condition which determines whether an asset update should be published.
|
boolean |
hasFeedOutputConfig()
Required.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Feed.Builder |
mergeCondition(com.google.type.Expr value)
A condition which determines whether an asset update should be published.
|
Feed.Builder |
mergeFeedOutputConfig(FeedOutputConfig value)
Required.
|
Feed.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Feed.Builder |
mergeFrom(Feed other) |
Feed.Builder |
mergeFrom(Message other) |
Feed.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Feed.Builder |
setAssetNames(int index,
String value)
A list of the full names of the assets to receive updates.
|
Feed.Builder |
setAssetTypes(int index,
String value)
A list of types of the assets to receive updates.
|
Feed.Builder |
setCondition(com.google.type.Expr.Builder builderForValue)
A condition which determines whether an asset update should be published.
|
Feed.Builder |
setCondition(com.google.type.Expr value)
A condition which determines whether an asset update should be published.
|
Feed.Builder |
setContentType(ContentType value)
Asset content type.
|
Feed.Builder |
setContentTypeValue(int value)
Asset content type.
|
Feed.Builder |
setFeedOutputConfig(FeedOutputConfig.Builder builderForValue)
Required.
|
Feed.Builder |
setFeedOutputConfig(FeedOutputConfig value)
Required.
|
Feed.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
Feed.Builder |
setName(String value)
Required.
|
Feed.Builder |
setNameBytes(ByteString value)
Required.
|
Feed.Builder |
setRelationshipTypes(int index,
String value)
A list of relationship types to output, for example:
`INSTANCE_TO_INSTANCEGROUP`.
|
Feed.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
Feed.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Feed.Builder>
public Feed.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Feed.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Feed.Builder>
public Feed getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Feed build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Feed buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Feed.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Feed.Builder>
public Feed.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Feed.Builder>
public Feed.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Feed.Builder>
public Feed.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Feed.Builder>
public Feed.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Feed.Builder>
public Feed.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Feed.Builder>
public Feed.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Feed.Builder>
public Feed.Builder mergeFrom(Feed other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Feed.Builder>
public Feed.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Feed.Builder>
IOException
public String getName()
Required. The format will be projects/{project_number}/feeds/{client-assigned_feed_identifier} or folders/{folder_number}/feeds/{client-assigned_feed_identifier} or organizations/{organization_number}/feeds/{client-assigned_feed_identifier} The client-assigned feed identifier must be unique within the parent project/folder/organization.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
getName
in interface FeedOrBuilder
public ByteString getNameBytes()
Required. The format will be projects/{project_number}/feeds/{client-assigned_feed_identifier} or folders/{folder_number}/feeds/{client-assigned_feed_identifier} or organizations/{organization_number}/feeds/{client-assigned_feed_identifier} The client-assigned feed identifier must be unique within the parent project/folder/organization.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
getNameBytes
in interface FeedOrBuilder
public Feed.Builder setName(String value)
Required. The format will be projects/{project_number}/feeds/{client-assigned_feed_identifier} or folders/{folder_number}/feeds/{client-assigned_feed_identifier} or organizations/{organization_number}/feeds/{client-assigned_feed_identifier} The client-assigned feed identifier must be unique within the parent project/folder/organization.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
value
- The name to set.public Feed.Builder clearName()
Required. The format will be projects/{project_number}/feeds/{client-assigned_feed_identifier} or folders/{folder_number}/feeds/{client-assigned_feed_identifier} or organizations/{organization_number}/feeds/{client-assigned_feed_identifier} The client-assigned feed identifier must be unique within the parent project/folder/organization.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
public Feed.Builder setNameBytes(ByteString value)
Required. The format will be projects/{project_number}/feeds/{client-assigned_feed_identifier} or folders/{folder_number}/feeds/{client-assigned_feed_identifier} or organizations/{organization_number}/feeds/{client-assigned_feed_identifier} The client-assigned feed identifier must be unique within the parent project/folder/organization.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
value
- The bytes for name to set.public ProtocolStringList getAssetNamesList()
A list of the full names of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. For a list of the full names for supported asset types, see [Resource name format](/asset-inventory/docs/resource-name-format).
repeated string asset_names = 2;
getAssetNamesList
in interface FeedOrBuilder
public int getAssetNamesCount()
A list of the full names of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. For a list of the full names for supported asset types, see [Resource name format](/asset-inventory/docs/resource-name-format).
repeated string asset_names = 2;
getAssetNamesCount
in interface FeedOrBuilder
public String getAssetNames(int index)
A list of the full names of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. For a list of the full names for supported asset types, see [Resource name format](/asset-inventory/docs/resource-name-format).
repeated string asset_names = 2;
getAssetNames
in interface FeedOrBuilder
index
- The index of the element to return.public ByteString getAssetNamesBytes(int index)
A list of the full names of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. For a list of the full names for supported asset types, see [Resource name format](/asset-inventory/docs/resource-name-format).
repeated string asset_names = 2;
getAssetNamesBytes
in interface FeedOrBuilder
index
- The index of the value to return.public Feed.Builder setAssetNames(int index, String value)
A list of the full names of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. For a list of the full names for supported asset types, see [Resource name format](/asset-inventory/docs/resource-name-format).
repeated string asset_names = 2;
index
- The index to set the value at.value
- The assetNames to set.public Feed.Builder addAssetNames(String value)
A list of the full names of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. For a list of the full names for supported asset types, see [Resource name format](/asset-inventory/docs/resource-name-format).
repeated string asset_names = 2;
value
- The assetNames to add.public Feed.Builder addAllAssetNames(Iterable<String> values)
A list of the full names of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. For a list of the full names for supported asset types, see [Resource name format](/asset-inventory/docs/resource-name-format).
repeated string asset_names = 2;
values
- The assetNames to add.public Feed.Builder clearAssetNames()
A list of the full names of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. For a list of the full names for supported asset types, see [Resource name format](/asset-inventory/docs/resource-name-format).
repeated string asset_names = 2;
public Feed.Builder addAssetNamesBytes(ByteString value)
A list of the full names of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. For a list of the full names for supported asset types, see [Resource name format](/asset-inventory/docs/resource-name-format).
repeated string asset_names = 2;
value
- The bytes of the assetNames to add.public ProtocolStringList getAssetTypesList()
A list of types of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example: `"compute.googleapis.com/Disk"` For a list of all supported asset types, see [Supported asset types](/asset-inventory/docs/supported-asset-types).
repeated string asset_types = 3;
getAssetTypesList
in interface FeedOrBuilder
public int getAssetTypesCount()
A list of types of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example: `"compute.googleapis.com/Disk"` For a list of all supported asset types, see [Supported asset types](/asset-inventory/docs/supported-asset-types).
repeated string asset_types = 3;
getAssetTypesCount
in interface FeedOrBuilder
public String getAssetTypes(int index)
A list of types of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example: `"compute.googleapis.com/Disk"` For a list of all supported asset types, see [Supported asset types](/asset-inventory/docs/supported-asset-types).
repeated string asset_types = 3;
getAssetTypes
in interface FeedOrBuilder
index
- The index of the element to return.public ByteString getAssetTypesBytes(int index)
A list of types of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example: `"compute.googleapis.com/Disk"` For a list of all supported asset types, see [Supported asset types](/asset-inventory/docs/supported-asset-types).
repeated string asset_types = 3;
getAssetTypesBytes
in interface FeedOrBuilder
index
- The index of the value to return.public Feed.Builder setAssetTypes(int index, String value)
A list of types of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example: `"compute.googleapis.com/Disk"` For a list of all supported asset types, see [Supported asset types](/asset-inventory/docs/supported-asset-types).
repeated string asset_types = 3;
index
- The index to set the value at.value
- The assetTypes to set.public Feed.Builder addAssetTypes(String value)
A list of types of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example: `"compute.googleapis.com/Disk"` For a list of all supported asset types, see [Supported asset types](/asset-inventory/docs/supported-asset-types).
repeated string asset_types = 3;
value
- The assetTypes to add.public Feed.Builder addAllAssetTypes(Iterable<String> values)
A list of types of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example: `"compute.googleapis.com/Disk"` For a list of all supported asset types, see [Supported asset types](/asset-inventory/docs/supported-asset-types).
repeated string asset_types = 3;
values
- The assetTypes to add.public Feed.Builder clearAssetTypes()
A list of types of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example: `"compute.googleapis.com/Disk"` For a list of all supported asset types, see [Supported asset types](/asset-inventory/docs/supported-asset-types).
repeated string asset_types = 3;
public Feed.Builder addAssetTypesBytes(ByteString value)
A list of types of the assets to receive updates. You must specify either or both of asset_names and asset_types. Only asset updates matching specified asset_names or asset_types are exported to the feed. Example: `"compute.googleapis.com/Disk"` For a list of all supported asset types, see [Supported asset types](/asset-inventory/docs/supported-asset-types).
repeated string asset_types = 3;
value
- The bytes of the assetTypes to add.public int getContentTypeValue()
Asset content type. If not specified, no content but the asset name and type will be returned.
.google.cloud.asset.v1.ContentType content_type = 4;
getContentTypeValue
in interface FeedOrBuilder
public Feed.Builder setContentTypeValue(int value)
Asset content type. If not specified, no content but the asset name and type will be returned.
.google.cloud.asset.v1.ContentType content_type = 4;
value
- The enum numeric value on the wire for contentType to set.public ContentType getContentType()
Asset content type. If not specified, no content but the asset name and type will be returned.
.google.cloud.asset.v1.ContentType content_type = 4;
getContentType
in interface FeedOrBuilder
public Feed.Builder setContentType(ContentType value)
Asset content type. If not specified, no content but the asset name and type will be returned.
.google.cloud.asset.v1.ContentType content_type = 4;
value
- The contentType to set.public Feed.Builder clearContentType()
Asset content type. If not specified, no content but the asset name and type will be returned.
.google.cloud.asset.v1.ContentType content_type = 4;
public boolean hasFeedOutputConfig()
Required. Feed output configuration defining where the asset updates are published to.
.google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];
hasFeedOutputConfig
in interface FeedOrBuilder
public FeedOutputConfig getFeedOutputConfig()
Required. Feed output configuration defining where the asset updates are published to.
.google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];
getFeedOutputConfig
in interface FeedOrBuilder
public Feed.Builder setFeedOutputConfig(FeedOutputConfig value)
Required. Feed output configuration defining where the asset updates are published to.
.google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];
public Feed.Builder setFeedOutputConfig(FeedOutputConfig.Builder builderForValue)
Required. Feed output configuration defining where the asset updates are published to.
.google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];
public Feed.Builder mergeFeedOutputConfig(FeedOutputConfig value)
Required. Feed output configuration defining where the asset updates are published to.
.google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];
public Feed.Builder clearFeedOutputConfig()
Required. Feed output configuration defining where the asset updates are published to.
.google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];
public FeedOutputConfig.Builder getFeedOutputConfigBuilder()
Required. Feed output configuration defining where the asset updates are published to.
.google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];
public FeedOutputConfigOrBuilder getFeedOutputConfigOrBuilder()
Required. Feed output configuration defining where the asset updates are published to.
.google.cloud.asset.v1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];
getFeedOutputConfigOrBuilder
in interface FeedOrBuilder
public boolean hasCondition()
A condition which determines whether an asset update should be published. If specified, an asset will be returned only when the expression evaluates to true. When set, `expression` field in the `Expr` must be a valid [CEL expression] (https://github.com/google/cel-spec) on a TemporalAsset with name `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted == true") will only publish Asset deletions. Other fields of `Expr` are optional. See our [user guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition) for detailed instructions.
.google.type.Expr condition = 6;
hasCondition
in interface FeedOrBuilder
public com.google.type.Expr getCondition()
A condition which determines whether an asset update should be published. If specified, an asset will be returned only when the expression evaluates to true. When set, `expression` field in the `Expr` must be a valid [CEL expression] (https://github.com/google/cel-spec) on a TemporalAsset with name `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted == true") will only publish Asset deletions. Other fields of `Expr` are optional. See our [user guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition) for detailed instructions.
.google.type.Expr condition = 6;
getCondition
in interface FeedOrBuilder
public Feed.Builder setCondition(com.google.type.Expr value)
A condition which determines whether an asset update should be published. If specified, an asset will be returned only when the expression evaluates to true. When set, `expression` field in the `Expr` must be a valid [CEL expression] (https://github.com/google/cel-spec) on a TemporalAsset with name `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted == true") will only publish Asset deletions. Other fields of `Expr` are optional. See our [user guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition) for detailed instructions.
.google.type.Expr condition = 6;
public Feed.Builder setCondition(com.google.type.Expr.Builder builderForValue)
A condition which determines whether an asset update should be published. If specified, an asset will be returned only when the expression evaluates to true. When set, `expression` field in the `Expr` must be a valid [CEL expression] (https://github.com/google/cel-spec) on a TemporalAsset with name `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted == true") will only publish Asset deletions. Other fields of `Expr` are optional. See our [user guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition) for detailed instructions.
.google.type.Expr condition = 6;
public Feed.Builder mergeCondition(com.google.type.Expr value)
A condition which determines whether an asset update should be published. If specified, an asset will be returned only when the expression evaluates to true. When set, `expression` field in the `Expr` must be a valid [CEL expression] (https://github.com/google/cel-spec) on a TemporalAsset with name `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted == true") will only publish Asset deletions. Other fields of `Expr` are optional. See our [user guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition) for detailed instructions.
.google.type.Expr condition = 6;
public Feed.Builder clearCondition()
A condition which determines whether an asset update should be published. If specified, an asset will be returned only when the expression evaluates to true. When set, `expression` field in the `Expr` must be a valid [CEL expression] (https://github.com/google/cel-spec) on a TemporalAsset with name `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted == true") will only publish Asset deletions. Other fields of `Expr` are optional. See our [user guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition) for detailed instructions.
.google.type.Expr condition = 6;
public com.google.type.Expr.Builder getConditionBuilder()
A condition which determines whether an asset update should be published. If specified, an asset will be returned only when the expression evaluates to true. When set, `expression` field in the `Expr` must be a valid [CEL expression] (https://github.com/google/cel-spec) on a TemporalAsset with name `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted == true") will only publish Asset deletions. Other fields of `Expr` are optional. See our [user guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition) for detailed instructions.
.google.type.Expr condition = 6;
public com.google.type.ExprOrBuilder getConditionOrBuilder()
A condition which determines whether an asset update should be published. If specified, an asset will be returned only when the expression evaluates to true. When set, `expression` field in the `Expr` must be a valid [CEL expression] (https://github.com/google/cel-spec) on a TemporalAsset with name `temporal_asset`. Example: a Feed with expression ("temporal_asset.deleted == true") will only publish Asset deletions. Other fields of `Expr` are optional. See our [user guide](https://cloud.google.com/asset-inventory/docs/monitoring-asset-changes-with-condition) for detailed instructions.
.google.type.Expr condition = 6;
getConditionOrBuilder
in interface FeedOrBuilder
public 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 outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. 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;
getRelationshipTypesList
in interface FeedOrBuilder
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 outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. 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;
getRelationshipTypesCount
in interface FeedOrBuilder
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 outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. 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;
getRelationshipTypes
in interface FeedOrBuilder
index
- The index of the element to return.public 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 outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. 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;
getRelationshipTypesBytes
in interface FeedOrBuilder
index
- The index of the value to return.public Feed.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 outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. 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;
index
- The index to set the value at.value
- The relationshipTypes to set.public Feed.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 outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. 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;
value
- The relationshipTypes to add.public Feed.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 outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. 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;
values
- The relationshipTypes to add.public Feed.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 outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. 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;
public Feed.Builder addRelationshipTypesBytes(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 outputs specified relationship updates on the [asset_names] or the [asset_types]. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_names] or [asset_types], or any of the [asset_names] or the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it outputs the supported relationships of the types of [asset_names] and [asset_types] or returns an error if any of the [asset_names] or the [asset_types] has no replationship support. 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;
value
- The bytes of the relationshipTypes to add.public final Feed.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Feed.Builder>
public final Feed.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Feed.Builder>
Copyright © 2022 Google LLC. All rights reserved.