Class Workload.ResourceSettings.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Workload.ResourceSettings.Builder>
com.google.cloud.assuredworkloads.v1.Workload.ResourceSettings.Builder
All Implemented Interfaces:
Workload.ResourceSettingsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Workload.ResourceSettings

public static final class Workload.ResourceSettings.Builder extends com.google.protobuf.GeneratedMessage.Builder<Workload.ResourceSettings.Builder> implements Workload.ResourceSettingsOrBuilder
 Represent the custom settings for the resources to be created.
 
Protobuf type google.cloud.assuredworkloads.v1.Workload.ResourceSettings
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Workload.ResourceSettings.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.GeneratedMessage.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.GeneratedMessage.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
    • mergeFrom

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

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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

       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.