Package com.google.cloud.asset.v1p2beta1
Class Feed.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Feed.Builder>
com.google.cloud.asset.v1p2beta1.Feed.Builder
- All Implemented Interfaces:
FeedOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Feed
public static final class Feed.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllAssetNames(Iterable<String> values) A list of the full names of the assets to receive updates.addAllAssetTypes(Iterable<String> values) A list of types of the assets to receive updates.addAssetNames(String value) A list of the full names of the assets to receive updates.addAssetNamesBytes(com.google.protobuf.ByteString value) A list of the full names of the assets to receive updates.addAssetTypes(String value) A list of types of the assets to receive updates.addAssetTypesBytes(com.google.protobuf.ByteString value) A list of types of the assets to receive updates.build()clear()A list of the full names of the assets to receive updates.A list of types of the assets to receive updates.Asset content type.Required.Required.getAssetNames(int index) A list of the full names of the assets to receive updates.com.google.protobuf.ByteStringgetAssetNamesBytes(int index) A list of the full names of the assets to receive updates.intA list of the full names of the assets to receive updates.com.google.protobuf.ProtocolStringListA list of the full names of the assets to receive updates.getAssetTypes(int index) A list of types of the assets to receive updates.com.google.protobuf.ByteStringgetAssetTypesBytes(int index) A list of types of the assets to receive updates.intA list of types of the assets to receive updates.com.google.protobuf.ProtocolStringListA list of types of the assets to receive updates.Asset content type.intAsset content type.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.Required.Required.getName()Required.com.google.protobuf.ByteStringRequired.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanRequired.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAssetNames(int index, String value) A list of the full names of the assets to receive updates.setAssetTypes(int index, String value) A list of types of the assets to receive updates.setContentType(ContentType value) Asset content type.setContentTypeValue(int value) Asset content type.Required.setFeedOutputConfig(FeedOutputConfig.Builder builderForValue) Required.Required.setNameBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Feed.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Feed.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Feed.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Feed.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Feed.Builder>
-
mergeFrom
public Feed.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Feed.Builder>- Throws:
IOException
-
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];- Specified by:
getNamein interfaceFeedOrBuilder- Returns:
- The name.
-
getNameBytes
public 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];- Specified by:
getNameBytesin interfaceFeedOrBuilder- Returns:
- The bytes for name.
-
setName
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getAssetNamesList
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 or 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;- Specified by:
getAssetNamesListin interfaceFeedOrBuilder- Returns:
- A list containing the assetNames.
-
getAssetNamesCount
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. 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;- Specified by:
getAssetNamesCountin interfaceFeedOrBuilder- Returns:
- The count of assetNames.
-
getAssetNames
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. 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;- Specified by:
getAssetNamesin interfaceFeedOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The assetNames at the given index.
-
getAssetNamesBytes
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 or 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;- Specified by:
getAssetNamesBytesin interfaceFeedOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the assetNames at the given index.
-
setAssetNames
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. 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;- Parameters:
index- The index to set the value at.value- The assetNames to set.- Returns:
- This builder for chaining.
-
addAssetNames
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. 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;- Parameters:
value- The assetNames to add.- Returns:
- This builder for chaining.
-
addAllAssetNames
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. 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;- Parameters:
values- The assetNames to add.- Returns:
- This builder for chaining.
-
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. 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;- Returns:
- This builder for chaining.
-
addAssetNamesBytes
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. 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;- Parameters:
value- The bytes of the assetNames to add.- Returns:
- This builder for chaining.
-
getAssetTypesList
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 or 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;- Specified by:
getAssetTypesListin interfaceFeedOrBuilder- Returns:
- A list containing the assetTypes.
-
getAssetTypesCount
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. 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;- Specified by:
getAssetTypesCountin interfaceFeedOrBuilder- Returns:
- The count of assetTypes.
-
getAssetTypes
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. 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;- Specified by:
getAssetTypesin interfaceFeedOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The assetTypes at the given index.
-
getAssetTypesBytes
public com.google.protobuf.ByteString getAssetTypesBytes(int index) A list of 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. 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;- Specified by:
getAssetTypesBytesin interfaceFeedOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the assetTypes at the given index.
-
setAssetTypes
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. 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;- Parameters:
index- The index to set the value at.value- The assetTypes to set.- Returns:
- This builder for chaining.
-
addAssetTypes
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. 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;- Parameters:
value- The assetTypes to add.- Returns:
- This builder for chaining.
-
addAllAssetTypes
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. 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;- Parameters:
values- The assetTypes to add.- Returns:
- This builder for chaining.
-
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. 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;- Returns:
- This builder for chaining.
-
addAssetTypesBytes
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. 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;- Parameters:
value- The bytes of the assetTypes to add.- Returns:
- This builder for chaining.
-
getContentTypeValue
public int getContentTypeValue()Asset content type. If not specified, no content but the asset name and type will be returned.
.google.cloud.asset.v1p2beta1.ContentType content_type = 4;- Specified by:
getContentTypeValuein interfaceFeedOrBuilder- Returns:
- The enum numeric value on the wire for contentType.
-
setContentTypeValue
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;- Parameters:
value- The enum numeric value on the wire for contentType to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getContentTypein interfaceFeedOrBuilder- Returns:
- The contentType.
-
setContentType
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;- Parameters:
value- The contentType to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
hasFeedOutputConfig
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];- Specified by:
hasFeedOutputConfigin interfaceFeedOrBuilder- Returns:
- Whether the feedOutputConfig field is set.
-
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];- Specified by:
getFeedOutputConfigin interfaceFeedOrBuilder- Returns:
- The feedOutputConfig.
-
setFeedOutputConfig
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]; -
setFeedOutputConfig
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]; -
mergeFeedOutputConfig
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]; -
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]; -
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]; -
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];- Specified by:
getFeedOutputConfigOrBuilderin interfaceFeedOrBuilder
-