Interface Workload.ResourceSettingsOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Workload.ResourceSettings, Workload.ResourceSettings.Builder
Enclosing class:
Workload

public static interface Workload.ResourceSettingsOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    User-assigned resource display name.
    com.google.protobuf.ByteString
    User-assigned resource display name.
    Resource identifier.
    com.google.protobuf.ByteString
    Resource identifier.
    Indicates the type of resource.
    int
    Indicates the type of resource.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getResourceId

      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;
      Returns:
      The resourceId.
    • getResourceIdBytes

      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;
      Returns:
      The bytes for resourceId.
    • getResourceTypeValue

      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;
      Returns:
      The enum numeric value on the wire for 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;
      Returns:
      The resourceType.
    • getDisplayName

      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;
      Returns:
      The displayName.
    • getDisplayNameBytes

      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;
      Returns:
      The bytes for displayName.