Class Asset.Builder

  • All Implemented Interfaces:
    AssetOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Asset

    public static final class Asset.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
    implements AssetOrBuilder
     An asset represents a resource in your environment. Asset types include
     virtual machines and databases.
     
    Protobuf type google.cloud.migrationcenter.v1.Asset
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Asset.Builder>
      • internalGetFieldAccessorTable

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

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

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

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

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

        public Asset.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<Asset.Builder>
      • setField

        public Asset.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<Asset.Builder>
      • clearField

        public Asset.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<Asset.Builder>
      • clearOneof

        public Asset.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<Asset.Builder>
      • setRepeatedField

        public Asset.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<Asset.Builder>
      • addRepeatedField

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

        public Asset.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<Asset.Builder>
      • isInitialized

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

        public Asset.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<Asset.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Output only. The full name of the asset.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface AssetOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The full name of the asset.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface AssetOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Asset.Builder setName​(String value)
         Output only. The full name of the asset.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Asset.Builder clearName()
         Output only. The full name of the asset.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public Asset.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The full name of the asset.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The timestamp when the asset was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface AssetOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The timestamp when the asset was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface AssetOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public Asset.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The timestamp when the asset was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public Asset.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The timestamp when the asset was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public Asset.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The timestamp when the asset was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public Asset.Builder clearCreateTime()
         Output only. The timestamp when the asset was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. The timestamp when the asset was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The timestamp when the asset was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface AssetOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The timestamp when the asset was last updated.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface AssetOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The timestamp when the asset was last updated.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface AssetOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public Asset.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The timestamp when the asset was last updated.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUpdateTime

        public Asset.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The timestamp when the asset was last updated.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeUpdateTime

        public Asset.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. The timestamp when the asset was last updated.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearUpdateTime

        public Asset.Builder clearUpdateTime()
         Output only. The timestamp when the asset was last updated.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         Output only. The timestamp when the asset was last updated.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The timestamp when the asset was last updated.
         
        .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface AssetOrBuilder
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: AssetOrBuilder
         Labels as key value pairs.
         
        map<string, string> labels = 4;
        Specified by:
        getLabelsCount in interface AssetOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         Labels as key value pairs.
         
        map<string, string> labels = 4;
        Specified by:
        containsLabels in interface AssetOrBuilder
      • removeLabels

        public Asset.Builder removeLabels​(String key)
         Labels as key value pairs.
         
        map<string, string> labels = 4;
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • putLabels

        public Asset.Builder putLabels​(String key,
                                       String value)
         Labels as key value pairs.
         
        map<string, string> labels = 4;
      • putAllLabels

        public Asset.Builder putAllLabels​(Map<String,​String> values)
         Labels as key value pairs.
         
        map<string, string> labels = 4;
      • getAttributesCount

        public int getAttributesCount()
        Description copied from interface: AssetOrBuilder
         Generic asset attributes.
         
        map<string, string> attributes = 5;
        Specified by:
        getAttributesCount in interface AssetOrBuilder
      • containsAttributes

        public boolean containsAttributes​(String key)
         Generic asset attributes.
         
        map<string, string> attributes = 5;
        Specified by:
        containsAttributes in interface AssetOrBuilder
      • removeAttributes

        public Asset.Builder removeAttributes​(String key)
         Generic asset attributes.
         
        map<string, string> attributes = 5;
      • getMutableAttributes

        @Deprecated
        public Map<String,​String> getMutableAttributes()
        Deprecated.
        Use alternate mutation accessors instead.
      • putAttributes

        public Asset.Builder putAttributes​(String key,
                                           String value)
         Generic asset attributes.
         
        map<string, string> attributes = 5;
      • putAllAttributes

        public Asset.Builder putAllAttributes​(Map<String,​String> values)
         Generic asset attributes.
         
        map<string, string> attributes = 5;
      • hasMachineDetails

        public boolean hasMachineDetails()
         Output only. Asset information specific for virtual and physical
         machines.
         
        .google.cloud.migrationcenter.v1.MachineDetails machine_details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasMachineDetails in interface AssetOrBuilder
        Returns:
        Whether the machineDetails field is set.
      • getMachineDetails

        public MachineDetails getMachineDetails()
         Output only. Asset information specific for virtual and physical
         machines.
         
        .google.cloud.migrationcenter.v1.MachineDetails machine_details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMachineDetails in interface AssetOrBuilder
        Returns:
        The machineDetails.
      • setMachineDetails

        public Asset.Builder setMachineDetails​(MachineDetails value)
         Output only. Asset information specific for virtual and physical
         machines.
         
        .google.cloud.migrationcenter.v1.MachineDetails machine_details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setMachineDetails

        public Asset.Builder setMachineDetails​(MachineDetails.Builder builderForValue)
         Output only. Asset information specific for virtual and physical
         machines.
         
        .google.cloud.migrationcenter.v1.MachineDetails machine_details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeMachineDetails

        public Asset.Builder mergeMachineDetails​(MachineDetails value)
         Output only. Asset information specific for virtual and physical
         machines.
         
        .google.cloud.migrationcenter.v1.MachineDetails machine_details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearMachineDetails

        public Asset.Builder clearMachineDetails()
         Output only. Asset information specific for virtual and physical
         machines.
         
        .google.cloud.migrationcenter.v1.MachineDetails machine_details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getMachineDetailsBuilder

        public MachineDetails.Builder getMachineDetailsBuilder()
         Output only. Asset information specific for virtual and physical
         machines.
         
        .google.cloud.migrationcenter.v1.MachineDetails machine_details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getMachineDetailsOrBuilder

        public MachineDetailsOrBuilder getMachineDetailsOrBuilder()
         Output only. Asset information specific for virtual and physical
         machines.
         
        .google.cloud.migrationcenter.v1.MachineDetails machine_details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMachineDetailsOrBuilder in interface AssetOrBuilder
      • hasInsightList

        public boolean hasInsightList()
         Output only. The list of insights associated with the asset.
         
        .google.cloud.migrationcenter.v1.InsightList insight_list = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasInsightList in interface AssetOrBuilder
        Returns:
        Whether the insightList field is set.
      • getInsightList

        public InsightList getInsightList()
         Output only. The list of insights associated with the asset.
         
        .google.cloud.migrationcenter.v1.InsightList insight_list = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getInsightList in interface AssetOrBuilder
        Returns:
        The insightList.
      • setInsightList

        public Asset.Builder setInsightList​(InsightList value)
         Output only. The list of insights associated with the asset.
         
        .google.cloud.migrationcenter.v1.InsightList insight_list = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setInsightList

        public Asset.Builder setInsightList​(InsightList.Builder builderForValue)
         Output only. The list of insights associated with the asset.
         
        .google.cloud.migrationcenter.v1.InsightList insight_list = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeInsightList

        public Asset.Builder mergeInsightList​(InsightList value)
         Output only. The list of insights associated with the asset.
         
        .google.cloud.migrationcenter.v1.InsightList insight_list = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearInsightList

        public Asset.Builder clearInsightList()
         Output only. The list of insights associated with the asset.
         
        .google.cloud.migrationcenter.v1.InsightList insight_list = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getInsightListBuilder

        public InsightList.Builder getInsightListBuilder()
         Output only. The list of insights associated with the asset.
         
        .google.cloud.migrationcenter.v1.InsightList insight_list = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getInsightListOrBuilder

        public InsightListOrBuilder getInsightListOrBuilder()
         Output only. The list of insights associated with the asset.
         
        .google.cloud.migrationcenter.v1.InsightList insight_list = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getInsightListOrBuilder in interface AssetOrBuilder
      • hasPerformanceData

        public boolean hasPerformanceData()
         Output only. Performance data for the asset.
         
        .google.cloud.migrationcenter.v1.AssetPerformanceData performance_data = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasPerformanceData in interface AssetOrBuilder
        Returns:
        Whether the performanceData field is set.
      • getPerformanceData

        public AssetPerformanceData getPerformanceData()
         Output only. Performance data for the asset.
         
        .google.cloud.migrationcenter.v1.AssetPerformanceData performance_data = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPerformanceData in interface AssetOrBuilder
        Returns:
        The performanceData.
      • setPerformanceData

        public Asset.Builder setPerformanceData​(AssetPerformanceData value)
         Output only. Performance data for the asset.
         
        .google.cloud.migrationcenter.v1.AssetPerformanceData performance_data = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setPerformanceData

        public Asset.Builder setPerformanceData​(AssetPerformanceData.Builder builderForValue)
         Output only. Performance data for the asset.
         
        .google.cloud.migrationcenter.v1.AssetPerformanceData performance_data = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergePerformanceData

        public Asset.Builder mergePerformanceData​(AssetPerformanceData value)
         Output only. Performance data for the asset.
         
        .google.cloud.migrationcenter.v1.AssetPerformanceData performance_data = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearPerformanceData

        public Asset.Builder clearPerformanceData()
         Output only. Performance data for the asset.
         
        .google.cloud.migrationcenter.v1.AssetPerformanceData performance_data = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getPerformanceDataBuilder

        public AssetPerformanceData.Builder getPerformanceDataBuilder()
         Output only. Performance data for the asset.
         
        .google.cloud.migrationcenter.v1.AssetPerformanceData performance_data = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getSourcesList

        public com.google.protobuf.ProtocolStringList getSourcesList()
         Output only. The list of sources contributing to the asset.
         
        repeated string sources = 22 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getSourcesList in interface AssetOrBuilder
        Returns:
        A list containing the sources.
      • getSourcesCount

        public int getSourcesCount()
         Output only. The list of sources contributing to the asset.
         
        repeated string sources = 22 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getSourcesCount in interface AssetOrBuilder
        Returns:
        The count of sources.
      • getSources

        public String getSources​(int index)
         Output only. The list of sources contributing to the asset.
         
        repeated string sources = 22 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getSources in interface AssetOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The sources at the given index.
      • getSourcesBytes

        public com.google.protobuf.ByteString getSourcesBytes​(int index)
         Output only. The list of sources contributing to the asset.
         
        repeated string sources = 22 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getSourcesBytes in interface AssetOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the sources at the given index.
      • setSources

        public Asset.Builder setSources​(int index,
                                        String value)
         Output only. The list of sources contributing to the asset.
         
        repeated string sources = 22 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        index - The index to set the value at.
        value - The sources to set.
        Returns:
        This builder for chaining.
      • addSources

        public Asset.Builder addSources​(String value)
         Output only. The list of sources contributing to the asset.
         
        repeated string sources = 22 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The sources to add.
        Returns:
        This builder for chaining.
      • addAllSources

        public Asset.Builder addAllSources​(Iterable<String> values)
         Output only. The list of sources contributing to the asset.
         
        repeated string sources = 22 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        values - The sources to add.
        Returns:
        This builder for chaining.
      • clearSources

        public Asset.Builder clearSources()
         Output only. The list of sources contributing to the asset.
         
        repeated string sources = 22 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • addSourcesBytes

        public Asset.Builder addSourcesBytes​(com.google.protobuf.ByteString value)
         Output only. The list of sources contributing to the asset.
         
        repeated string sources = 22 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes of the sources to add.
        Returns:
        This builder for chaining.
      • getAssignedGroupsList

        public com.google.protobuf.ProtocolStringList getAssignedGroupsList()
         Output only. The list of groups that the asset is assigned to.
         
        repeated string assigned_groups = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getAssignedGroupsList in interface AssetOrBuilder
        Returns:
        A list containing the assignedGroups.
      • getAssignedGroupsCount

        public int getAssignedGroupsCount()
         Output only. The list of groups that the asset is assigned to.
         
        repeated string assigned_groups = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getAssignedGroupsCount in interface AssetOrBuilder
        Returns:
        The count of assignedGroups.
      • getAssignedGroups

        public String getAssignedGroups​(int index)
         Output only. The list of groups that the asset is assigned to.
         
        repeated string assigned_groups = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getAssignedGroups in interface AssetOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The assignedGroups at the given index.
      • getAssignedGroupsBytes

        public com.google.protobuf.ByteString getAssignedGroupsBytes​(int index)
         Output only. The list of groups that the asset is assigned to.
         
        repeated string assigned_groups = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getAssignedGroupsBytes in interface AssetOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the assignedGroups at the given index.
      • setAssignedGroups

        public Asset.Builder setAssignedGroups​(int index,
                                               String value)
         Output only. The list of groups that the asset is assigned to.
         
        repeated string assigned_groups = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        index - The index to set the value at.
        value - The assignedGroups to set.
        Returns:
        This builder for chaining.
      • addAssignedGroups

        public Asset.Builder addAssignedGroups​(String value)
         Output only. The list of groups that the asset is assigned to.
         
        repeated string assigned_groups = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The assignedGroups to add.
        Returns:
        This builder for chaining.
      • addAllAssignedGroups

        public Asset.Builder addAllAssignedGroups​(Iterable<String> values)
         Output only. The list of groups that the asset is assigned to.
         
        repeated string assigned_groups = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        values - The assignedGroups to add.
        Returns:
        This builder for chaining.
      • clearAssignedGroups

        public Asset.Builder clearAssignedGroups()
         Output only. The list of groups that the asset is assigned to.
         
        repeated string assigned_groups = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • addAssignedGroupsBytes

        public Asset.Builder addAssignedGroupsBytes​(com.google.protobuf.ByteString value)
         Output only. The list of groups that the asset is assigned to.
         
        repeated string assigned_groups = 23 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes of the assignedGroups to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Asset.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<Asset.Builder>
      • mergeUnknownFields

        public final Asset.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<Asset.Builder>