Class AnalyzeWorkloadMoveRequest.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<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.GeneratedMessageV3.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

        public AnalyzeWorkloadMoveRequest 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
      • isInitialized

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

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

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