Class Asset.SecurityCenterProperties.Builder

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

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

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

        public Asset.SecurityCenterProperties buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.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.SecurityCenterProperties.Builder>
      • getResourceName

        public String getResourceName()
         Immutable. The full resource name of the Google Cloud resource this asset
         represents. This field is immutable after create time. See:
         https://cloud.google.com/apis/design/resource_names#full_resource_name
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getResourceName in interface Asset.SecurityCenterPropertiesOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

        public com.google.protobuf.ByteString getResourceNameBytes()
         Immutable. The full resource name of the Google Cloud resource this asset
         represents. This field is immutable after create time. See:
         https://cloud.google.com/apis/design/resource_names#full_resource_name
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getResourceNameBytes in interface Asset.SecurityCenterPropertiesOrBuilder
        Returns:
        The bytes for resourceName.
      • setResourceName

        public Asset.SecurityCenterProperties.Builder setResourceName​(String value)
         Immutable. The full resource name of the Google Cloud resource this asset
         represents. This field is immutable after create time. See:
         https://cloud.google.com/apis/design/resource_names#full_resource_name
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The resourceName to set.
        Returns:
        This builder for chaining.
      • clearResourceName

        public Asset.SecurityCenterProperties.Builder clearResourceName()
         Immutable. The full resource name of the Google Cloud resource this asset
         represents. This field is immutable after create time. See:
         https://cloud.google.com/apis/design/resource_names#full_resource_name
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Returns:
        This builder for chaining.
      • setResourceNameBytes

        public Asset.SecurityCenterProperties.Builder setResourceNameBytes​(com.google.protobuf.ByteString value)
         Immutable. The full resource name of the Google Cloud resource this asset
         represents. This field is immutable after create time. See:
         https://cloud.google.com/apis/design/resource_names#full_resource_name
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The bytes for resourceName to set.
        Returns:
        This builder for chaining.
      • getResourceType

        public String getResourceType()
         The type of the Google Cloud resource. Examples include: APPLICATION,
         PROJECT, and ORGANIZATION. This is a case insensitive field defined by
         Security Command Center and/or the producer of the resource and is
         immutable after create time.
         
        string resource_type = 2;
        Specified by:
        getResourceType in interface Asset.SecurityCenterPropertiesOrBuilder
        Returns:
        The resourceType.
      • getResourceTypeBytes

        public com.google.protobuf.ByteString getResourceTypeBytes()
         The type of the Google Cloud resource. Examples include: APPLICATION,
         PROJECT, and ORGANIZATION. This is a case insensitive field defined by
         Security Command Center and/or the producer of the resource and is
         immutable after create time.
         
        string resource_type = 2;
        Specified by:
        getResourceTypeBytes in interface Asset.SecurityCenterPropertiesOrBuilder
        Returns:
        The bytes for resourceType.
      • setResourceType

        public Asset.SecurityCenterProperties.Builder setResourceType​(String value)
         The type of the Google Cloud resource. Examples include: APPLICATION,
         PROJECT, and ORGANIZATION. This is a case insensitive field defined by
         Security Command Center and/or the producer of the resource and is
         immutable after create time.
         
        string resource_type = 2;
        Parameters:
        value - The resourceType to set.
        Returns:
        This builder for chaining.
      • clearResourceType

        public Asset.SecurityCenterProperties.Builder clearResourceType()
         The type of the Google Cloud resource. Examples include: APPLICATION,
         PROJECT, and ORGANIZATION. This is a case insensitive field defined by
         Security Command Center and/or the producer of the resource and is
         immutable after create time.
         
        string resource_type = 2;
        Returns:
        This builder for chaining.
      • setResourceTypeBytes

        public Asset.SecurityCenterProperties.Builder setResourceTypeBytes​(com.google.protobuf.ByteString value)
         The type of the Google Cloud resource. Examples include: APPLICATION,
         PROJECT, and ORGANIZATION. This is a case insensitive field defined by
         Security Command Center and/or the producer of the resource and is
         immutable after create time.
         
        string resource_type = 2;
        Parameters:
        value - The bytes for resourceType to set.
        Returns:
        This builder for chaining.
      • getResourceParent

        public String getResourceParent()
         The full resource name of the immediate parent of the resource. See:
         https://cloud.google.com/apis/design/resource_names#full_resource_name
         
        string resource_parent = 3;
        Specified by:
        getResourceParent in interface Asset.SecurityCenterPropertiesOrBuilder
        Returns:
        The resourceParent.
      • getResourceParentBytes

        public com.google.protobuf.ByteString getResourceParentBytes()
         The full resource name of the immediate parent of the resource. See:
         https://cloud.google.com/apis/design/resource_names#full_resource_name
         
        string resource_parent = 3;
        Specified by:
        getResourceParentBytes in interface Asset.SecurityCenterPropertiesOrBuilder
        Returns:
        The bytes for resourceParent.
      • setResourceParent

        public Asset.SecurityCenterProperties.Builder setResourceParent​(String value)
         The full resource name of the immediate parent of the resource. See:
         https://cloud.google.com/apis/design/resource_names#full_resource_name
         
        string resource_parent = 3;
        Parameters:
        value - The resourceParent to set.
        Returns:
        This builder for chaining.
      • clearResourceParent

        public Asset.SecurityCenterProperties.Builder clearResourceParent()
         The full resource name of the immediate parent of the resource. See:
         https://cloud.google.com/apis/design/resource_names#full_resource_name
         
        string resource_parent = 3;
        Returns:
        This builder for chaining.
      • setResourceParentBytes

        public Asset.SecurityCenterProperties.Builder setResourceParentBytes​(com.google.protobuf.ByteString value)
         The full resource name of the immediate parent of the resource. See:
         https://cloud.google.com/apis/design/resource_names#full_resource_name
         
        string resource_parent = 3;
        Parameters:
        value - The bytes for resourceParent to set.
        Returns:
        This builder for chaining.
      • getResourceProject

        public String getResourceProject()
         The full resource name of the project the resource belongs to. See:
         https://cloud.google.com/apis/design/resource_names#full_resource_name
         
        string resource_project = 4;
        Specified by:
        getResourceProject in interface Asset.SecurityCenterPropertiesOrBuilder
        Returns:
        The resourceProject.
      • getResourceProjectBytes

        public com.google.protobuf.ByteString getResourceProjectBytes()
         The full resource name of the project the resource belongs to. See:
         https://cloud.google.com/apis/design/resource_names#full_resource_name
         
        string resource_project = 4;
        Specified by:
        getResourceProjectBytes in interface Asset.SecurityCenterPropertiesOrBuilder
        Returns:
        The bytes for resourceProject.
      • setResourceProject

        public Asset.SecurityCenterProperties.Builder setResourceProject​(String value)
         The full resource name of the project the resource belongs to. See:
         https://cloud.google.com/apis/design/resource_names#full_resource_name
         
        string resource_project = 4;
        Parameters:
        value - The resourceProject to set.
        Returns:
        This builder for chaining.
      • clearResourceProject

        public Asset.SecurityCenterProperties.Builder clearResourceProject()
         The full resource name of the project the resource belongs to. See:
         https://cloud.google.com/apis/design/resource_names#full_resource_name
         
        string resource_project = 4;
        Returns:
        This builder for chaining.
      • setResourceProjectBytes

        public Asset.SecurityCenterProperties.Builder setResourceProjectBytes​(com.google.protobuf.ByteString value)
         The full resource name of the project the resource belongs to. See:
         https://cloud.google.com/apis/design/resource_names#full_resource_name
         
        string resource_project = 4;
        Parameters:
        value - The bytes for resourceProject to set.
        Returns:
        This builder for chaining.
      • getResourceOwnersList

        public com.google.protobuf.ProtocolStringList getResourceOwnersList()
         Owners of the Google Cloud resource.
         
        repeated string resource_owners = 5;
        Specified by:
        getResourceOwnersList in interface Asset.SecurityCenterPropertiesOrBuilder
        Returns:
        A list containing the resourceOwners.
      • getResourceOwners

        public String getResourceOwners​(int index)
         Owners of the Google Cloud resource.
         
        repeated string resource_owners = 5;
        Specified by:
        getResourceOwners in interface Asset.SecurityCenterPropertiesOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The resourceOwners at the given index.
      • getResourceOwnersBytes

        public com.google.protobuf.ByteString getResourceOwnersBytes​(int index)
         Owners of the Google Cloud resource.
         
        repeated string resource_owners = 5;
        Specified by:
        getResourceOwnersBytes in interface Asset.SecurityCenterPropertiesOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the resourceOwners at the given index.
      • setResourceOwners

        public Asset.SecurityCenterProperties.Builder setResourceOwners​(int index,
                                                                        String value)
         Owners of the Google Cloud resource.
         
        repeated string resource_owners = 5;
        Parameters:
        index - The index to set the value at.
        value - The resourceOwners to set.
        Returns:
        This builder for chaining.
      • addResourceOwners

        public Asset.SecurityCenterProperties.Builder addResourceOwners​(String value)
         Owners of the Google Cloud resource.
         
        repeated string resource_owners = 5;
        Parameters:
        value - The resourceOwners to add.
        Returns:
        This builder for chaining.
      • addAllResourceOwners

        public Asset.SecurityCenterProperties.Builder addAllResourceOwners​(Iterable<String> values)
         Owners of the Google Cloud resource.
         
        repeated string resource_owners = 5;
        Parameters:
        values - The resourceOwners to add.
        Returns:
        This builder for chaining.
      • clearResourceOwners

        public Asset.SecurityCenterProperties.Builder clearResourceOwners()
         Owners of the Google Cloud resource.
         
        repeated string resource_owners = 5;
        Returns:
        This builder for chaining.
      • addResourceOwnersBytes

        public Asset.SecurityCenterProperties.Builder addResourceOwnersBytes​(com.google.protobuf.ByteString value)
         Owners of the Google Cloud resource.
         
        repeated string resource_owners = 5;
        Parameters:
        value - The bytes of the resourceOwners to add.
        Returns:
        This builder for chaining.