Class Workload.ResourceSettings.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<Workload.ResourceSettings.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<Workload.ResourceSettings.Builder>
      • getDefaultInstanceForType

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

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

        public Workload.ResourceSettings buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

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

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

        public Workload.ResourceSettings.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<Workload.ResourceSettings.Builder>
        Throws:
        IOException
      • getResourceId

        public String getResourceId()
         Resource identifier.
         For a project this represents project_id. If the project is already
         taken, the workload creation will fail.
         For KeyRing, this represents the keyring_id.
         For a folder, don't set this value as folder_id is assigned by Google.
         
        string resource_id = 1;
        Specified by:
        getResourceId in interface Workload.ResourceSettingsOrBuilder
        Returns:
        The resourceId.
      • getResourceIdBytes

        public com.google.protobuf.ByteString getResourceIdBytes()
         Resource identifier.
         For a project this represents project_id. If the project is already
         taken, the workload creation will fail.
         For KeyRing, this represents the keyring_id.
         For a folder, don't set this value as folder_id is assigned by Google.
         
        string resource_id = 1;
        Specified by:
        getResourceIdBytes in interface Workload.ResourceSettingsOrBuilder
        Returns:
        The bytes for resourceId.
      • setResourceId

        public Workload.ResourceSettings.Builder setResourceId​(String value)
         Resource identifier.
         For a project this represents project_id. If the project is already
         taken, the workload creation will fail.
         For KeyRing, this represents the keyring_id.
         For a folder, don't set this value as folder_id is assigned by Google.
         
        string resource_id = 1;
        Parameters:
        value - The resourceId to set.
        Returns:
        This builder for chaining.
      • clearResourceId

        public Workload.ResourceSettings.Builder clearResourceId()
         Resource identifier.
         For a project this represents project_id. If the project is already
         taken, the workload creation will fail.
         For KeyRing, this represents the keyring_id.
         For a folder, don't set this value as folder_id is assigned by Google.
         
        string resource_id = 1;
        Returns:
        This builder for chaining.
      • setResourceIdBytes

        public Workload.ResourceSettings.Builder setResourceIdBytes​(com.google.protobuf.ByteString value)
         Resource identifier.
         For a project this represents project_id. If the project is already
         taken, the workload creation will fail.
         For KeyRing, this represents the keyring_id.
         For a folder, don't set this value as folder_id is assigned by Google.
         
        string resource_id = 1;
        Parameters:
        value - The bytes for resourceId to set.
        Returns:
        This builder for chaining.
      • getResourceTypeValue

        public int getResourceTypeValue()
         Indicates the type of resource. This field should be specified to
         correspond the id to the right resource type (CONSUMER_FOLDER or
         ENCRYPTION_KEYS_PROJECT)
         
        .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2;
        Specified by:
        getResourceTypeValue in interface Workload.ResourceSettingsOrBuilder
        Returns:
        The enum numeric value on the wire for resourceType.
      • setResourceTypeValue

        public Workload.ResourceSettings.Builder setResourceTypeValue​(int value)
         Indicates the type of resource. This field should be specified to
         correspond the id to the right resource type (CONSUMER_FOLDER or
         ENCRYPTION_KEYS_PROJECT)
         
        .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2;
        Parameters:
        value - The enum numeric value on the wire for resourceType to set.
        Returns:
        This builder for chaining.
      • getResourceType

        public Workload.ResourceInfo.ResourceType getResourceType()
         Indicates the type of resource. This field should be specified to
         correspond the id to the right resource type (CONSUMER_FOLDER or
         ENCRYPTION_KEYS_PROJECT)
         
        .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2;
        Specified by:
        getResourceType in interface Workload.ResourceSettingsOrBuilder
        Returns:
        The resourceType.
      • setResourceType

        public Workload.ResourceSettings.Builder setResourceType​(Workload.ResourceInfo.ResourceType value)
         Indicates the type of resource. This field should be specified to
         correspond the id to the right resource type (CONSUMER_FOLDER or
         ENCRYPTION_KEYS_PROJECT)
         
        .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2;
        Parameters:
        value - The resourceType to set.
        Returns:
        This builder for chaining.
      • clearResourceType

        public Workload.ResourceSettings.Builder clearResourceType()
         Indicates the type of resource. This field should be specified to
         correspond the id to the right resource type (CONSUMER_FOLDER or
         ENCRYPTION_KEYS_PROJECT)
         
        .google.cloud.assuredworkloads.v1.Workload.ResourceInfo.ResourceType resource_type = 2;
        Returns:
        This builder for chaining.
      • getDisplayName

        public String getDisplayName()
         User-assigned resource display name.
         If not empty it will be used to create a resource with the specified
         name.
         
        string display_name = 3;
        Specified by:
        getDisplayName in interface Workload.ResourceSettingsOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         User-assigned resource display name.
         If not empty it will be used to create a resource with the specified
         name.
         
        string display_name = 3;
        Specified by:
        getDisplayNameBytes in interface Workload.ResourceSettingsOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        public Workload.ResourceSettings.Builder setDisplayName​(String value)
         User-assigned resource display name.
         If not empty it will be used to create a resource with the specified
         name.
         
        string display_name = 3;
        Parameters:
        value - The displayName to set.
        Returns:
        This builder for chaining.
      • clearDisplayName

        public Workload.ResourceSettings.Builder clearDisplayName()
         User-assigned resource display name.
         If not empty it will be used to create a resource with the specified
         name.
         
        string display_name = 3;
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        public Workload.ResourceSettings.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
         User-assigned resource display name.
         If not empty it will be used to create a resource with the specified
         name.
         
        string display_name = 3;
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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