Class Resource.Builder

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

    public static final class Resource.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
    implements ResourceOrBuilder
     Information related to the Google Cloud resource.
     
    Protobuf type google.cloud.securitycenter.v1p1beta1.Resource
    • 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<Resource.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

        public String getName()
         The full resource name of the resource. See:
         https://cloud.google.com/apis/design/resource_names#full_resource_name
         
        string name = 1;
        Specified by:
        getName in interface ResourceOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The full resource name of the resource. See:
         https://cloud.google.com/apis/design/resource_names#full_resource_name
         
        string name = 1;
        Specified by:
        getNameBytes in interface ResourceOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Resource.Builder setName​(String value)
         The full resource name of the resource. See:
         https://cloud.google.com/apis/design/resource_names#full_resource_name
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Resource.Builder clearName()
         The full resource name of the resource. See:
         https://cloud.google.com/apis/design/resource_names#full_resource_name
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public Resource.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The full resource name of the resource. See:
         https://cloud.google.com/apis/design/resource_names#full_resource_name
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getProject

        public String getProject()
         The full resource name of project that the resource belongs to.
         
        string project = 2;
        Specified by:
        getProject in interface ResourceOrBuilder
        Returns:
        The project.
      • getProjectBytes

        public com.google.protobuf.ByteString getProjectBytes()
         The full resource name of project that the resource belongs to.
         
        string project = 2;
        Specified by:
        getProjectBytes in interface ResourceOrBuilder
        Returns:
        The bytes for project.
      • setProject

        public Resource.Builder setProject​(String value)
         The full resource name of project that the resource belongs to.
         
        string project = 2;
        Parameters:
        value - The project to set.
        Returns:
        This builder for chaining.
      • clearProject

        public Resource.Builder clearProject()
         The full resource name of project that the resource belongs to.
         
        string project = 2;
        Returns:
        This builder for chaining.
      • setProjectBytes

        public Resource.Builder setProjectBytes​(com.google.protobuf.ByteString value)
         The full resource name of project that the resource belongs to.
         
        string project = 2;
        Parameters:
        value - The bytes for project to set.
        Returns:
        This builder for chaining.
      • getProjectDisplayName

        public String getProjectDisplayName()
         The human readable name of project that the resource belongs to.
         
        string project_display_name = 3;
        Specified by:
        getProjectDisplayName in interface ResourceOrBuilder
        Returns:
        The projectDisplayName.
      • getProjectDisplayNameBytes

        public com.google.protobuf.ByteString getProjectDisplayNameBytes()
         The human readable name of project that the resource belongs to.
         
        string project_display_name = 3;
        Specified by:
        getProjectDisplayNameBytes in interface ResourceOrBuilder
        Returns:
        The bytes for projectDisplayName.
      • setProjectDisplayName

        public Resource.Builder setProjectDisplayName​(String value)
         The human readable name of project that the resource belongs to.
         
        string project_display_name = 3;
        Parameters:
        value - The projectDisplayName to set.
        Returns:
        This builder for chaining.
      • clearProjectDisplayName

        public Resource.Builder clearProjectDisplayName()
         The human readable name of project that the resource belongs to.
         
        string project_display_name = 3;
        Returns:
        This builder for chaining.
      • setProjectDisplayNameBytes

        public Resource.Builder setProjectDisplayNameBytes​(com.google.protobuf.ByteString value)
         The human readable name of project that the resource belongs to.
         
        string project_display_name = 3;
        Parameters:
        value - The bytes for projectDisplayName to set.
        Returns:
        This builder for chaining.
      • getParent

        public String getParent()
         The full resource name of resource's parent.
         
        string parent = 4;
        Specified by:
        getParent in interface ResourceOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         The full resource name of resource's parent.
         
        string parent = 4;
        Specified by:
        getParentBytes in interface ResourceOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public Resource.Builder setParent​(String value)
         The full resource name of resource's parent.
         
        string parent = 4;
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public Resource.Builder clearParent()
         The full resource name of resource's parent.
         
        string parent = 4;
        Returns:
        This builder for chaining.
      • setParentBytes

        public Resource.Builder setParentBytes​(com.google.protobuf.ByteString value)
         The full resource name of resource's parent.
         
        string parent = 4;
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • getParentDisplayName

        public String getParentDisplayName()
         The human readable name of resource's parent.
         
        string parent_display_name = 5;
        Specified by:
        getParentDisplayName in interface ResourceOrBuilder
        Returns:
        The parentDisplayName.
      • getParentDisplayNameBytes

        public com.google.protobuf.ByteString getParentDisplayNameBytes()
         The human readable name of resource's parent.
         
        string parent_display_name = 5;
        Specified by:
        getParentDisplayNameBytes in interface ResourceOrBuilder
        Returns:
        The bytes for parentDisplayName.
      • setParentDisplayName

        public Resource.Builder setParentDisplayName​(String value)
         The human readable name of resource's parent.
         
        string parent_display_name = 5;
        Parameters:
        value - The parentDisplayName to set.
        Returns:
        This builder for chaining.
      • clearParentDisplayName

        public Resource.Builder clearParentDisplayName()
         The human readable name of resource's parent.
         
        string parent_display_name = 5;
        Returns:
        This builder for chaining.
      • setParentDisplayNameBytes

        public Resource.Builder setParentDisplayNameBytes​(com.google.protobuf.ByteString value)
         The human readable name of resource's parent.
         
        string parent_display_name = 5;
        Parameters:
        value - The bytes for parentDisplayName to set.
        Returns:
        This builder for chaining.
      • getFoldersList

        public List<Folder> getFoldersList()
         Output only. Contains a Folder message for each folder in the assets ancestry.
         The first folder is the deepest nested folder, and the last folder is the
         folder directly under the Organization.
         
        repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getFoldersList in interface ResourceOrBuilder
      • getFoldersCount

        public int getFoldersCount()
         Output only. Contains a Folder message for each folder in the assets ancestry.
         The first folder is the deepest nested folder, and the last folder is the
         folder directly under the Organization.
         
        repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getFoldersCount in interface ResourceOrBuilder
      • getFolders

        public Folder getFolders​(int index)
         Output only. Contains a Folder message for each folder in the assets ancestry.
         The first folder is the deepest nested folder, and the last folder is the
         folder directly under the Organization.
         
        repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getFolders in interface ResourceOrBuilder
      • setFolders

        public Resource.Builder setFolders​(int index,
                                           Folder value)
         Output only. Contains a Folder message for each folder in the assets ancestry.
         The first folder is the deepest nested folder, and the last folder is the
         folder directly under the Organization.
         
        repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setFolders

        public Resource.Builder setFolders​(int index,
                                           Folder.Builder builderForValue)
         Output only. Contains a Folder message for each folder in the assets ancestry.
         The first folder is the deepest nested folder, and the last folder is the
         folder directly under the Organization.
         
        repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addFolders

        public Resource.Builder addFolders​(Folder value)
         Output only. Contains a Folder message for each folder in the assets ancestry.
         The first folder is the deepest nested folder, and the last folder is the
         folder directly under the Organization.
         
        repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addFolders

        public Resource.Builder addFolders​(int index,
                                           Folder value)
         Output only. Contains a Folder message for each folder in the assets ancestry.
         The first folder is the deepest nested folder, and the last folder is the
         folder directly under the Organization.
         
        repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addFolders

        public Resource.Builder addFolders​(Folder.Builder builderForValue)
         Output only. Contains a Folder message for each folder in the assets ancestry.
         The first folder is the deepest nested folder, and the last folder is the
         folder directly under the Organization.
         
        repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addFolders

        public Resource.Builder addFolders​(int index,
                                           Folder.Builder builderForValue)
         Output only. Contains a Folder message for each folder in the assets ancestry.
         The first folder is the deepest nested folder, and the last folder is the
         folder directly under the Organization.
         
        repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addAllFolders

        public Resource.Builder addAllFolders​(Iterable<? extends Folder> values)
         Output only. Contains a Folder message for each folder in the assets ancestry.
         The first folder is the deepest nested folder, and the last folder is the
         folder directly under the Organization.
         
        repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearFolders

        public Resource.Builder clearFolders()
         Output only. Contains a Folder message for each folder in the assets ancestry.
         The first folder is the deepest nested folder, and the last folder is the
         folder directly under the Organization.
         
        repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • removeFolders

        public Resource.Builder removeFolders​(int index)
         Output only. Contains a Folder message for each folder in the assets ancestry.
         The first folder is the deepest nested folder, and the last folder is the
         folder directly under the Organization.
         
        repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getFoldersBuilder

        public Folder.Builder getFoldersBuilder​(int index)
         Output only. Contains a Folder message for each folder in the assets ancestry.
         The first folder is the deepest nested folder, and the last folder is the
         folder directly under the Organization.
         
        repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getFoldersOrBuilder

        public FolderOrBuilder getFoldersOrBuilder​(int index)
         Output only. Contains a Folder message for each folder in the assets ancestry.
         The first folder is the deepest nested folder, and the last folder is the
         folder directly under the Organization.
         
        repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getFoldersOrBuilder in interface ResourceOrBuilder
      • getFoldersOrBuilderList

        public List<? extends FolderOrBuilder> getFoldersOrBuilderList()
         Output only. Contains a Folder message for each folder in the assets ancestry.
         The first folder is the deepest nested folder, and the last folder is the
         folder directly under the Organization.
         
        repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getFoldersOrBuilderList in interface ResourceOrBuilder
      • addFoldersBuilder

        public Folder.Builder addFoldersBuilder()
         Output only. Contains a Folder message for each folder in the assets ancestry.
         The first folder is the deepest nested folder, and the last folder is the
         folder directly under the Organization.
         
        repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addFoldersBuilder

        public Folder.Builder addFoldersBuilder​(int index)
         Output only. Contains a Folder message for each folder in the assets ancestry.
         The first folder is the deepest nested folder, and the last folder is the
         folder directly under the Organization.
         
        repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getFoldersBuilderList

        public List<Folder.Builder> getFoldersBuilderList()
         Output only. Contains a Folder message for each folder in the assets ancestry.
         The first folder is the deepest nested folder, and the last folder is the
         folder directly under the Organization.
         
        repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUnknownFields

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

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