Class AnalyzeWorkloadMoveRequest.Builder

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

public static final class AnalyzeWorkloadMoveRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<AnalyzeWorkloadMoveRequest.Builder> implements AnalyzeWorkloadMoveRequestOrBuilder
 A request to analyze a hypothetical move of a source project or project-based
 workload to a target (destination) folder-based workload.
 
Protobuf type google.cloud.assuredworkloads.v1beta1.AnalyzeWorkloadMoveRequest
  • 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<AnalyzeWorkloadMoveRequest.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<AnalyzeWorkloadMoveRequest.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<AnalyzeWorkloadMoveRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public AnalyzeWorkloadMoveRequest.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<AnalyzeWorkloadMoveRequest.Builder>
      Throws:
      IOException
    • getProjectOrWorkloadResourceCase

      public AnalyzeWorkloadMoveRequest.ProjectOrWorkloadResourceCase getProjectOrWorkloadResourceCase()
      Specified by:
      getProjectOrWorkloadResourceCase in interface AnalyzeWorkloadMoveRequestOrBuilder
    • clearProjectOrWorkloadResource

      public AnalyzeWorkloadMoveRequest.Builder clearProjectOrWorkloadResource()
    • hasSource

      public boolean hasSource()
       The source type is a project-based workload. Specify the workloads's
       relative resource name, formatted as:
       "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
       For example:
       "organizations/123/locations/us-east1/workloads/assured-workload-1"
       
      string source = 1;
      Specified by:
      hasSource in interface AnalyzeWorkloadMoveRequestOrBuilder
      Returns:
      Whether the source field is set.
    • getSource

      public String getSource()
       The source type is a project-based workload. Specify the workloads's
       relative resource name, formatted as:
       "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
       For example:
       "organizations/123/locations/us-east1/workloads/assured-workload-1"
       
      string source = 1;
      Specified by:
      getSource in interface AnalyzeWorkloadMoveRequestOrBuilder
      Returns:
      The source.
    • getSourceBytes

      public com.google.protobuf.ByteString getSourceBytes()
       The source type is a project-based workload. Specify the workloads's
       relative resource name, formatted as:
       "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
       For example:
       "organizations/123/locations/us-east1/workloads/assured-workload-1"
       
      string source = 1;
      Specified by:
      getSourceBytes in interface AnalyzeWorkloadMoveRequestOrBuilder
      Returns:
      The bytes for source.
    • setSource

      public AnalyzeWorkloadMoveRequest.Builder setSource(String value)
       The source type is a project-based workload. Specify the workloads's
       relative resource name, formatted as:
       "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
       For example:
       "organizations/123/locations/us-east1/workloads/assured-workload-1"
       
      string source = 1;
      Parameters:
      value - The source to set.
      Returns:
      This builder for chaining.
    • clearSource

      public AnalyzeWorkloadMoveRequest.Builder clearSource()
       The source type is a project-based workload. Specify the workloads's
       relative resource name, formatted as:
       "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
       For example:
       "organizations/123/locations/us-east1/workloads/assured-workload-1"
       
      string source = 1;
      Returns:
      This builder for chaining.
    • setSourceBytes

      public AnalyzeWorkloadMoveRequest.Builder setSourceBytes(com.google.protobuf.ByteString value)
       The source type is a project-based workload. Specify the workloads's
       relative resource name, formatted as:
       "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
       For example:
       "organizations/123/locations/us-east1/workloads/assured-workload-1"
       
      string source = 1;
      Parameters:
      value - The bytes for source to set.
      Returns:
      This builder for chaining.
    • hasProject

      public boolean hasProject()
       The source type is a project. Specify the project's relative resource
       name, formatted as either a project number or a project ID:
       "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}"
       For example:
       "projects/951040570662" when specifying a project number, or
       "projects/my-project-123" when specifying a project ID.
       
      string project = 3;
      Specified by:
      hasProject in interface AnalyzeWorkloadMoveRequestOrBuilder
      Returns:
      Whether the project field is set.
    • getProject

      public String getProject()
       The source type is a project. Specify the project's relative resource
       name, formatted as either a project number or a project ID:
       "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}"
       For example:
       "projects/951040570662" when specifying a project number, or
       "projects/my-project-123" when specifying a project ID.
       
      string project = 3;
      Specified by:
      getProject in interface AnalyzeWorkloadMoveRequestOrBuilder
      Returns:
      The project.
    • getProjectBytes

      public com.google.protobuf.ByteString getProjectBytes()
       The source type is a project. Specify the project's relative resource
       name, formatted as either a project number or a project ID:
       "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}"
       For example:
       "projects/951040570662" when specifying a project number, or
       "projects/my-project-123" when specifying a project ID.
       
      string project = 3;
      Specified by:
      getProjectBytes in interface AnalyzeWorkloadMoveRequestOrBuilder
      Returns:
      The bytes for project.
    • setProject

      public AnalyzeWorkloadMoveRequest.Builder setProject(String value)
       The source type is a project. Specify the project's relative resource
       name, formatted as either a project number or a project ID:
       "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}"
       For example:
       "projects/951040570662" when specifying a project number, or
       "projects/my-project-123" when specifying a project ID.
       
      string project = 3;
      Parameters:
      value - The project to set.
      Returns:
      This builder for chaining.
    • clearProject

      public AnalyzeWorkloadMoveRequest.Builder clearProject()
       The source type is a project. Specify the project's relative resource
       name, formatted as either a project number or a project ID:
       "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}"
       For example:
       "projects/951040570662" when specifying a project number, or
       "projects/my-project-123" when specifying a project ID.
       
      string project = 3;
      Returns:
      This builder for chaining.
    • setProjectBytes

      public AnalyzeWorkloadMoveRequest.Builder setProjectBytes(com.google.protobuf.ByteString value)
       The source type is a project. Specify the project's relative resource
       name, formatted as either a project number or a project ID:
       "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}"
       For example:
       "projects/951040570662" when specifying a project number, or
       "projects/my-project-123" when specifying a project ID.
       
      string project = 3;
      Parameters:
      value - The bytes for project to set.
      Returns:
      This builder for chaining.
    • getTarget

      public String getTarget()
       Required. The resource ID of the folder-based destination workload. This workload is
       where the source project will hypothetically be moved to. Specify the
       workload's relative resource name, formatted as:
       "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
       For example:
       "organizations/123/locations/us-east1/workloads/assured-workload-2"
       
      string target = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTarget in interface AnalyzeWorkloadMoveRequestOrBuilder
      Returns:
      The target.
    • getTargetBytes

      public com.google.protobuf.ByteString getTargetBytes()
       Required. The resource ID of the folder-based destination workload. This workload is
       where the source project will hypothetically be moved to. Specify the
       workload's relative resource name, formatted as:
       "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
       For example:
       "organizations/123/locations/us-east1/workloads/assured-workload-2"
       
      string target = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTargetBytes in interface AnalyzeWorkloadMoveRequestOrBuilder
      Returns:
      The bytes for target.
    • setTarget

      public AnalyzeWorkloadMoveRequest.Builder setTarget(String value)
       Required. The resource ID of the folder-based destination workload. This workload is
       where the source project will hypothetically be moved to. Specify the
       workload's relative resource name, formatted as:
       "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
       For example:
       "organizations/123/locations/us-east1/workloads/assured-workload-2"
       
      string target = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The target to set.
      Returns:
      This builder for chaining.
    • clearTarget

      public AnalyzeWorkloadMoveRequest.Builder clearTarget()
       Required. The resource ID of the folder-based destination workload. This workload is
       where the source project will hypothetically be moved to. Specify the
       workload's relative resource name, formatted as:
       "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
       For example:
       "organizations/123/locations/us-east1/workloads/assured-workload-2"
       
      string target = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setTargetBytes

      public AnalyzeWorkloadMoveRequest.Builder setTargetBytes(com.google.protobuf.ByteString value)
       Required. The resource ID of the folder-based destination workload. This workload is
       where the source project will hypothetically be moved to. Specify the
       workload's relative resource name, formatted as:
       "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
       For example:
       "organizations/123/locations/us-east1/workloads/assured-workload-2"
       
      string target = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for target to set.
      Returns:
      This builder for chaining.