Class 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.GeneratedMessageV3.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 Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedResource.Builder>
      • clear

        public AttachedResource.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedResource.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedResource.Builder>
      • getDefaultInstanceForType

        public AttachedResource getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public AttachedResource build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public AttachedResource buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public AttachedResource.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedResource.Builder>
      • setField

        public AttachedResource.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedResource.Builder>
      • clearField

        public AttachedResource.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedResource.Builder>
      • clearOneof

        public AttachedResource.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedResource.Builder>
      • setRepeatedField

        public AttachedResource.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         int index,
                                                         Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedResource.Builder>
      • addRepeatedField

        public AttachedResource.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedResource.Builder>
      • mergeFrom

        public AttachedResource.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttachedResource.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedResource.Builder>
      • mergeFrom

        public AttachedResource.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttachedResource.Builder>
        Throws:
        IOException
      • getAssetType

        public String 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#searchable_asset_types`
         
        string asset_type = 1;
        Specified by:
        getAssetType in interface AttachedResourceOrBuilder
        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#searchable_asset_types`
         
        string asset_type = 1;
        Specified by:
        getAssetTypeBytes in interface AttachedResourceOrBuilder
        Returns:
        The bytes for assetType.
      • setAssetType

        public AttachedResource.Builder setAssetType​(String value)
         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#searchable_asset_types`
         
        string asset_type = 1;
        Parameters:
        value - The assetType to set.
        Returns:
        This builder for chaining.
      • clearAssetType

        public AttachedResource.Builder 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#searchable_asset_types`
         
        string asset_type = 1;
        Returns:
        This builder for chaining.
      • setAssetTypeBytes

        public AttachedResource.Builder setAssetTypeBytes​(com.google.protobuf.ByteString value)
         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#searchable_asset_types`
         
        string asset_type = 1;
        Parameters:
        value - The bytes for assetType to set.
        Returns:
        This builder for chaining.
      • getVersionedResourcesList

        public List<VersionedResource> 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:
        getVersionedResourcesList in interface AttachedResourceOrBuilder
      • 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:
        getVersionedResourcesCount in interface AttachedResourceOrBuilder
      • getVersionedResources

        public VersionedResource getVersionedResources​(int index)
         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:
        getVersionedResources in interface AttachedResourceOrBuilder
      • setVersionedResources

        public AttachedResource.Builder setVersionedResources​(int index,
                                                              VersionedResource value)
         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

        public AttachedResource.Builder addVersionedResources​(VersionedResource value)
         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 value)
         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​(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

        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

        public AttachedResource.Builder 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

        public AttachedResource.Builder removeVersionedResources​(int index)
         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

        public VersionedResource.Builder getVersionedResourcesBuilder​(int index)
         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

        public VersionedResourceOrBuilder getVersionedResourcesOrBuilder​(int index)
         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:
        getVersionedResourcesOrBuilder in interface AttachedResourceOrBuilder
      • getVersionedResourcesOrBuilderList

        public List<? extends VersionedResourceOrBuilder> 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:
        getVersionedResourcesOrBuilderList in interface AttachedResourceOrBuilder
      • addVersionedResourcesBuilder

        public VersionedResource.Builder 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

        public VersionedResource.Builder addVersionedResourcesBuilder​(int index)
         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

        public List<VersionedResource.Builder> 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;
      • setUnknownFields

        public final AttachedResource.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedResource.Builder>
      • mergeUnknownFields

        public final AttachedResource.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttachedResource.Builder>