Package com.google.cloud.asset.v1
Class AttachedResource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AttachedResource.Builder>
com.google.cloud.asset.v1.AttachedResource.Builder
- All Implemented Interfaces:
AttachedResourceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AttachedResource
public static final class AttachedResource.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AttachedResource.Builder>
implements AttachedResourceOrBuilder
Attached resource representation, which is defined by the corresponding service provider. It represents an attached resource's payload.Protobuf type
google.cloud.asset.v1.AttachedResource-
Method Summary
Modifier and TypeMethodDescriptionaddAllVersionedResources(Iterable<? extends VersionedResource> values) Versioned resource representations of this attached resource.addVersionedResources(int index, VersionedResource value) Versioned resource representations of this attached resource.addVersionedResources(int index, VersionedResource.Builder builderForValue) Versioned resource representations of this attached resource.Versioned resource representations of this attached resource.addVersionedResources(VersionedResource.Builder builderForValue) Versioned resource representations of this attached resource.Versioned resource representations of this attached resource.addVersionedResourcesBuilder(int index) Versioned resource representations of this attached resource.build()clear()The type of this attached resource.Versioned resource representations of this attached resource.The type of this attached resource.com.google.protobuf.ByteStringThe type of this attached resource.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetVersionedResources(int index) Versioned resource representations of this attached resource.getVersionedResourcesBuilder(int index) Versioned resource representations of this attached resource.Versioned resource representations of this attached resource.intVersioned resource representations of this attached resource.Versioned resource representations of this attached resource.getVersionedResourcesOrBuilder(int index) Versioned resource representations of this attached resource.List<? extends VersionedResourceOrBuilder>Versioned resource representations of this attached resource.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(AttachedResource other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeVersionedResources(int index) Versioned resource representations of this attached resource.setAssetType(String value) The type of this attached resource.setAssetTypeBytes(com.google.protobuf.ByteString value) The type of this attached resource.setVersionedResources(int index, VersionedResource value) Versioned resource representations of this attached resource.setVersionedResources(int index, VersionedResource.Builder builderForValue) Versioned resource representations of this attached resource.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<AttachedResource.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<AttachedResource.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<AttachedResource.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<AttachedResource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AttachedResource.Builder>
-
mergeFrom
public AttachedResource.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<AttachedResource.Builder>- Throws:
IOException
-
getAssetType
The type of this attached resource. Example: `osconfig.googleapis.com/Inventory` You can find the supported attached asset types of each resource in this table: `https://cloud.google.com/asset-inventory/docs/supported-asset-types`
string asset_type = 1;- Specified by:
getAssetTypein interfaceAttachedResourceOrBuilder- Returns:
- The assetType.
-
getAssetTypeBytes
public com.google.protobuf.ByteString getAssetTypeBytes()The type of this attached resource. Example: `osconfig.googleapis.com/Inventory` You can find the supported attached asset types of each resource in this table: `https://cloud.google.com/asset-inventory/docs/supported-asset-types`
string asset_type = 1;- Specified by:
getAssetTypeBytesin interfaceAttachedResourceOrBuilder- Returns:
- The bytes for assetType.
-
setAssetType
The type of this attached resource. Example: `osconfig.googleapis.com/Inventory` You can find the supported attached asset types of each resource in this table: `https://cloud.google.com/asset-inventory/docs/supported-asset-types`
string asset_type = 1;- Parameters:
value- The assetType to set.- Returns:
- This builder for chaining.
-
clearAssetType
The type of this attached resource. Example: `osconfig.googleapis.com/Inventory` You can find the supported attached asset types of each resource in this table: `https://cloud.google.com/asset-inventory/docs/supported-asset-types`
string asset_type = 1;- Returns:
- This builder for chaining.
-
setAssetTypeBytes
The type of this attached resource. Example: `osconfig.googleapis.com/Inventory` You can find the supported attached asset types of each resource in this table: `https://cloud.google.com/asset-inventory/docs/supported-asset-types`
string asset_type = 1;- Parameters:
value- The bytes for assetType to set.- Returns:
- This builder for chaining.
-
getVersionedResourcesList
Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.
repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;- Specified by:
getVersionedResourcesListin interfaceAttachedResourceOrBuilder
-
getVersionedResourcesCount
public int getVersionedResourcesCount()Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.
repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;- Specified by:
getVersionedResourcesCountin interfaceAttachedResourceOrBuilder
-
getVersionedResources
Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.
repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;- Specified by:
getVersionedResourcesin interfaceAttachedResourceOrBuilder
-
setVersionedResources
Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.
repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3; -
setVersionedResources
public AttachedResource.Builder setVersionedResources(int index, VersionedResource.Builder builderForValue) Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.
repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3; -
addVersionedResources
Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.
repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3; -
addVersionedResources
Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.
repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3; -
addVersionedResources
Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.
repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3; -
addVersionedResources
public AttachedResource.Builder addVersionedResources(int index, VersionedResource.Builder builderForValue) Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.
repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3; -
addAllVersionedResources
public AttachedResource.Builder addAllVersionedResources(Iterable<? extends VersionedResource> values) Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.
repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3; -
clearVersionedResources
Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.
repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3; -
removeVersionedResources
Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.
repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3; -
getVersionedResourcesBuilder
Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.
repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3; -
getVersionedResourcesOrBuilder
Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.
repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;- Specified by:
getVersionedResourcesOrBuilderin interfaceAttachedResourceOrBuilder
-
getVersionedResourcesOrBuilderList
Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.
repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;- Specified by:
getVersionedResourcesOrBuilderListin interfaceAttachedResourceOrBuilder
-
addVersionedResourcesBuilder
Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.
repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3; -
addVersionedResourcesBuilder
Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.
repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3; -
getVersionedResourcesBuilderList
Versioned resource representations of this attached resource. This is repeated because there could be multiple versions of the attached resource representations during version migration.
repeated .google.cloud.asset.v1.VersionedResource versioned_resources = 3;
-