Class RelatedAssets.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RelatedAssets.Builder>
com.google.cloud.asset.v1.RelatedAssets.Builder
All Implemented Interfaces:
RelatedAssetsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RelatedAssets

public static final class RelatedAssets.Builder extends com.google.protobuf.GeneratedMessage.Builder<RelatedAssets.Builder> implements RelatedAssetsOrBuilder
 DEPRECATED. This message only presents for the purpose of
 backward-compatibility. The server will never populate this message in
 responses.
 The detailed related assets with the `relationship_type`.
 
Protobuf type google.cloud.asset.v1.RelatedAssets
  • 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<RelatedAssets.Builder>
    • clear

      public RelatedAssets.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<RelatedAssets.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<RelatedAssets.Builder>
    • getDefaultInstanceForType

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

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

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

      public RelatedAssets.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<RelatedAssets.Builder>
    • mergeFrom

      public RelatedAssets.Builder mergeFrom(RelatedAssets other)
    • isInitialized

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

      public RelatedAssets.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<RelatedAssets.Builder>
      Throws:
      IOException
    • hasRelationshipAttributes

      public boolean hasRelationshipAttributes()
       The detailed relationship attributes.
       
      .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1;
      Specified by:
      hasRelationshipAttributes in interface RelatedAssetsOrBuilder
      Returns:
      Whether the relationshipAttributes field is set.
    • getRelationshipAttributes

      public RelationshipAttributes getRelationshipAttributes()
       The detailed relationship attributes.
       
      .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1;
      Specified by:
      getRelationshipAttributes in interface RelatedAssetsOrBuilder
      Returns:
      The relationshipAttributes.
    • setRelationshipAttributes

      public RelatedAssets.Builder setRelationshipAttributes(RelationshipAttributes value)
       The detailed relationship attributes.
       
      .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1;
    • setRelationshipAttributes

      public RelatedAssets.Builder setRelationshipAttributes(RelationshipAttributes.Builder builderForValue)
       The detailed relationship attributes.
       
      .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1;
    • mergeRelationshipAttributes

      public RelatedAssets.Builder mergeRelationshipAttributes(RelationshipAttributes value)
       The detailed relationship attributes.
       
      .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1;
    • clearRelationshipAttributes

      public RelatedAssets.Builder clearRelationshipAttributes()
       The detailed relationship attributes.
       
      .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1;
    • getRelationshipAttributesBuilder

      public RelationshipAttributes.Builder getRelationshipAttributesBuilder()
       The detailed relationship attributes.
       
      .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1;
    • getRelationshipAttributesOrBuilder

      public RelationshipAttributesOrBuilder getRelationshipAttributesOrBuilder()
       The detailed relationship attributes.
       
      .google.cloud.asset.v1.RelationshipAttributes relationship_attributes = 1;
      Specified by:
      getRelationshipAttributesOrBuilder in interface RelatedAssetsOrBuilder
    • getAssetsList

      public List<RelatedAsset> getAssetsList()
       The peer resources of the relationship.
       
      repeated .google.cloud.asset.v1.RelatedAsset assets = 2;
      Specified by:
      getAssetsList in interface RelatedAssetsOrBuilder
    • getAssetsCount

      public int getAssetsCount()
       The peer resources of the relationship.
       
      repeated .google.cloud.asset.v1.RelatedAsset assets = 2;
      Specified by:
      getAssetsCount in interface RelatedAssetsOrBuilder
    • getAssets

      public RelatedAsset getAssets(int index)
       The peer resources of the relationship.
       
      repeated .google.cloud.asset.v1.RelatedAsset assets = 2;
      Specified by:
      getAssets in interface RelatedAssetsOrBuilder
    • setAssets

      public RelatedAssets.Builder setAssets(int index, RelatedAsset value)
       The peer resources of the relationship.
       
      repeated .google.cloud.asset.v1.RelatedAsset assets = 2;
    • setAssets

      public RelatedAssets.Builder setAssets(int index, RelatedAsset.Builder builderForValue)
       The peer resources of the relationship.
       
      repeated .google.cloud.asset.v1.RelatedAsset assets = 2;
    • addAssets

      public RelatedAssets.Builder addAssets(RelatedAsset value)
       The peer resources of the relationship.
       
      repeated .google.cloud.asset.v1.RelatedAsset assets = 2;
    • addAssets

      public RelatedAssets.Builder addAssets(int index, RelatedAsset value)
       The peer resources of the relationship.
       
      repeated .google.cloud.asset.v1.RelatedAsset assets = 2;
    • addAssets

      public RelatedAssets.Builder addAssets(RelatedAsset.Builder builderForValue)
       The peer resources of the relationship.
       
      repeated .google.cloud.asset.v1.RelatedAsset assets = 2;
    • addAssets

      public RelatedAssets.Builder addAssets(int index, RelatedAsset.Builder builderForValue)
       The peer resources of the relationship.
       
      repeated .google.cloud.asset.v1.RelatedAsset assets = 2;
    • addAllAssets

      public RelatedAssets.Builder addAllAssets(Iterable<? extends RelatedAsset> values)
       The peer resources of the relationship.
       
      repeated .google.cloud.asset.v1.RelatedAsset assets = 2;
    • clearAssets

      public RelatedAssets.Builder clearAssets()
       The peer resources of the relationship.
       
      repeated .google.cloud.asset.v1.RelatedAsset assets = 2;
    • removeAssets

      public RelatedAssets.Builder removeAssets(int index)
       The peer resources of the relationship.
       
      repeated .google.cloud.asset.v1.RelatedAsset assets = 2;
    • getAssetsBuilder

      public RelatedAsset.Builder getAssetsBuilder(int index)
       The peer resources of the relationship.
       
      repeated .google.cloud.asset.v1.RelatedAsset assets = 2;
    • getAssetsOrBuilder

      public RelatedAssetOrBuilder getAssetsOrBuilder(int index)
       The peer resources of the relationship.
       
      repeated .google.cloud.asset.v1.RelatedAsset assets = 2;
      Specified by:
      getAssetsOrBuilder in interface RelatedAssetsOrBuilder
    • getAssetsOrBuilderList

      public List<? extends RelatedAssetOrBuilder> getAssetsOrBuilderList()
       The peer resources of the relationship.
       
      repeated .google.cloud.asset.v1.RelatedAsset assets = 2;
      Specified by:
      getAssetsOrBuilderList in interface RelatedAssetsOrBuilder
    • addAssetsBuilder

      public RelatedAsset.Builder addAssetsBuilder()
       The peer resources of the relationship.
       
      repeated .google.cloud.asset.v1.RelatedAsset assets = 2;
    • addAssetsBuilder

      public RelatedAsset.Builder addAssetsBuilder(int index)
       The peer resources of the relationship.
       
      repeated .google.cloud.asset.v1.RelatedAsset assets = 2;
    • getAssetsBuilderList

      public List<RelatedAsset.Builder> getAssetsBuilderList()
       The peer resources of the relationship.
       
      repeated .google.cloud.asset.v1.RelatedAsset assets = 2;