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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public AttachedResource.Builder mergeFrom(AttachedResource other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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`
       
      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`
       
      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`
       
      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`
       
      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`
       
      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;