public static final class Feed.Builder extends com.google.protobuf.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: Cloud Pub/Sub topics.Protobuf type
google.cloud.asset.v1p2beta1.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 |
addAssetNames(String value)
A list of the full names of the assets to receive updates.
|
Feed.Builder |
addAssetNamesBytes(com.google.protobuf.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(com.google.protobuf.ByteString value)
A list of types of the assets to receive updates.
|
Feed.Builder |
addRepeatedField(com.google.protobuf.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 |
clearContentType()
Asset content type.
|
Feed.Builder |
clearFeedOutputConfig()
Required.
|
Feed.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Feed.Builder |
clearName()
Required.
|
Feed.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Feed.Builder |
clone() |
String |
getAssetNames(int index)
A list of the full names of the assets to receive updates.
|
com.google.protobuf.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.
|
com.google.protobuf.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.
|
com.google.protobuf.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.
|
com.google.protobuf.ProtocolStringList |
getAssetTypesList()
A list of types of the assets to receive updates.
|
ContentType |
getContentType()
Asset content type.
|
int |
getContentTypeValue()
Asset content type.
|
Feed |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
FeedOutputConfig |
getFeedOutputConfig()
Required.
|
FeedOutputConfig.Builder |
getFeedOutputConfigBuilder()
Required.
|
FeedOutputConfigOrBuilder |
getFeedOutputConfigOrBuilder()
Required.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
boolean |
hasFeedOutputConfig()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Feed.Builder |
mergeFeedOutputConfig(FeedOutputConfig value)
Required.
|
Feed.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Feed.Builder |
mergeFrom(Feed other) |
Feed.Builder |
mergeFrom(com.google.protobuf.Message other) |
Feed.Builder |
mergeUnknownFields(com.google.protobuf.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 |
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(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Feed.Builder |
setName(String value)
Required.
|
Feed.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Required.
|
Feed.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Feed.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Feed.Builder>public Feed.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Feed.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Feed.Builder>public Feed getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Feed build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Feed buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Feed.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Feed.Builder>public Feed.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Feed.Builder>public Feed.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Feed.Builder>public Feed.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Feed.Builder>public Feed.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Feed.Builder>public Feed.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Feed.Builder>public Feed.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Feed.Builder>public Feed.Builder mergeFrom(Feed other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Feed.Builder>public Feed.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Feed.Builder>IOExceptionpublic 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 FeedOrBuilderpublic com.google.protobuf.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 FeedOrBuilderpublic 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(com.google.protobuf.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 com.google.protobuf.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 and asset_types are exported to the feed. For example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. See [Resource Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more info.
repeated string asset_names = 2;getAssetNamesList in interface FeedOrBuilderpublic 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 and asset_types are exported to the feed. For example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. See [Resource Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more info.
repeated string asset_names = 2;getAssetNamesCount in interface FeedOrBuilderpublic 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 and asset_types are exported to the feed. For example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. See [Resource Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more info.
repeated string asset_names = 2;getAssetNames in interface FeedOrBuilderindex - The index of the element to return.public com.google.protobuf.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 and asset_types are exported to the feed. For example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. See [Resource Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more info.
repeated string asset_names = 2;getAssetNamesBytes in interface FeedOrBuilderindex - 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 and asset_types are exported to the feed. For example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. See [Resource Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more info.
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 and asset_types are exported to the feed. For example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. See [Resource Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more info.
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 and asset_types are exported to the feed. For example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. See [Resource Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more info.
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 and asset_types are exported to the feed. For example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. See [Resource Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more info.
repeated string asset_names = 2;public Feed.Builder addAssetNamesBytes(com.google.protobuf.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 and asset_types are exported to the feed. For example: `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. See [Resource Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more info.
repeated string asset_names = 2;value - The bytes of the assetNames to add.public com.google.protobuf.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 and asset_types are exported to the feed. For example: "compute.googleapis.com/Disk" See [Introduction to Cloud Asset Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) for all supported asset types.
repeated string asset_types = 3;getAssetTypesList in interface FeedOrBuilderpublic 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 and asset_types are exported to the feed. For example: "compute.googleapis.com/Disk" See [Introduction to Cloud Asset Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) for all supported asset types.
repeated string asset_types = 3;getAssetTypesCount in interface FeedOrBuilderpublic 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 and asset_types are exported to the feed. For example: "compute.googleapis.com/Disk" See [Introduction to Cloud Asset Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) for all supported asset types.
repeated string asset_types = 3;getAssetTypes in interface FeedOrBuilderindex - The index of the element to return.public com.google.protobuf.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 and asset_types are exported to the feed. For example: "compute.googleapis.com/Disk" See [Introduction to Cloud Asset Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) for all supported asset types.
repeated string asset_types = 3;getAssetTypesBytes in interface FeedOrBuilderindex - 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 and asset_types are exported to the feed. For example: "compute.googleapis.com/Disk" See [Introduction to Cloud Asset Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) for all 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 and asset_types are exported to the feed. For example: "compute.googleapis.com/Disk" See [Introduction to Cloud Asset Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) for all 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 and asset_types are exported to the feed. For example: "compute.googleapis.com/Disk" See [Introduction to Cloud Asset Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) for all 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 and asset_types are exported to the feed. For example: "compute.googleapis.com/Disk" See [Introduction to Cloud Asset Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) for all supported asset types.
repeated string asset_types = 3;public Feed.Builder addAssetTypesBytes(com.google.protobuf.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 and asset_types are exported to the feed. For example: "compute.googleapis.com/Disk" See [Introduction to Cloud Asset Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview) for all 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.v1p2beta1.ContentType content_type = 4;getContentTypeValue in interface FeedOrBuilderpublic 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.v1p2beta1.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.v1p2beta1.ContentType content_type = 4;getContentType in interface FeedOrBuilderpublic 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.v1p2beta1.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.v1p2beta1.ContentType content_type = 4;public boolean hasFeedOutputConfig()
Required. Feed output configuration defining where the asset updates are published to.
.google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];
hasFeedOutputConfig in interface FeedOrBuilderpublic FeedOutputConfig getFeedOutputConfig()
Required. Feed output configuration defining where the asset updates are published to.
.google.cloud.asset.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];
getFeedOutputConfig in interface FeedOrBuilderpublic Feed.Builder setFeedOutputConfig(FeedOutputConfig value)
Required. Feed output configuration defining where the asset updates are published to.
.google.cloud.asset.v1p2beta1.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.v1p2beta1.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.v1p2beta1.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.v1p2beta1.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.v1p2beta1.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.v1p2beta1.FeedOutputConfig feed_output_config = 5 [(.google.api.field_behavior) = REQUIRED];
getFeedOutputConfigOrBuilder in interface FeedOrBuilderpublic final Feed.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Feed.Builder>public final Feed.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Feed.Builder>Copyright © 2020 Google LLC. All rights reserved.