Class AnalyzeWorkloadMoveRequest.Builder (2.15.0)

public static final class AnalyzeWorkloadMoveRequest.Builder extends GeneratedMessageV3.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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnalyzeWorkloadMoveRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AnalyzeWorkloadMoveRequest.Builder
Overrides

build()

public AnalyzeWorkloadMoveRequest build()
Returns
TypeDescription
AnalyzeWorkloadMoveRequest

buildPartial()

public AnalyzeWorkloadMoveRequest buildPartial()
Returns
TypeDescription
AnalyzeWorkloadMoveRequest

clear()

public AnalyzeWorkloadMoveRequest.Builder clear()
Returns
TypeDescription
AnalyzeWorkloadMoveRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AnalyzeWorkloadMoveRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AnalyzeWorkloadMoveRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AnalyzeWorkloadMoveRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AnalyzeWorkloadMoveRequest.Builder
Overrides

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
TypeDescription
AnalyzeWorkloadMoveRequest.Builder

This builder for chaining.

clearProjectOrWorkloadResource()

public AnalyzeWorkloadMoveRequest.Builder clearProjectOrWorkloadResource()
Returns
TypeDescription
AnalyzeWorkloadMoveRequest.Builder

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
TypeDescription
AnalyzeWorkloadMoveRequest.Builder

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
TypeDescription
AnalyzeWorkloadMoveRequest.Builder

This builder for chaining.

clone()

public AnalyzeWorkloadMoveRequest.Builder clone()
Returns
TypeDescription
AnalyzeWorkloadMoveRequest.Builder
Overrides

getDefaultInstanceForType()

public AnalyzeWorkloadMoveRequest getDefaultInstanceForType()
Returns
TypeDescription
AnalyzeWorkloadMoveRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
String

The project.

getProjectBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for project.

getProjectOrWorkloadResourceCase()

public AnalyzeWorkloadMoveRequest.ProjectOrWorkloadResourceCase getProjectOrWorkloadResourceCase()
Returns
TypeDescription
AnalyzeWorkloadMoveRequest.ProjectOrWorkloadResourceCase

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;

Returns
TypeDescription
String

The source.

getSourceBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for source.

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];

Returns
TypeDescription
String

The target.

getTargetBytes()

public 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];

Returns
TypeDescription
ByteString

The bytes for target.

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;

Returns
TypeDescription
boolean

Whether the project field is set.

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;

Returns
TypeDescription
boolean

Whether the source field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AnalyzeWorkloadMoveRequest other)

public AnalyzeWorkloadMoveRequest.Builder mergeFrom(AnalyzeWorkloadMoveRequest other)
Parameter
NameDescription
otherAnalyzeWorkloadMoveRequest
Returns
TypeDescription
AnalyzeWorkloadMoveRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnalyzeWorkloadMoveRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AnalyzeWorkloadMoveRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AnalyzeWorkloadMoveRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AnalyzeWorkloadMoveRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzeWorkloadMoveRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AnalyzeWorkloadMoveRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AnalyzeWorkloadMoveRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AnalyzeWorkloadMoveRequest.Builder
Overrides

setProject(String value)

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;

Parameter
NameDescription
valueString

The project to set.

Returns
TypeDescription
AnalyzeWorkloadMoveRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public AnalyzeWorkloadMoveRequest.Builder setProjectBytes(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;

Parameter
NameDescription
valueByteString

The bytes for project to set.

Returns
TypeDescription
AnalyzeWorkloadMoveRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AnalyzeWorkloadMoveRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AnalyzeWorkloadMoveRequest.Builder
Overrides

setSource(String value)

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;

Parameter
NameDescription
valueString

The source to set.

Returns
TypeDescription
AnalyzeWorkloadMoveRequest.Builder

This builder for chaining.

setSourceBytes(ByteString value)

public AnalyzeWorkloadMoveRequest.Builder setSourceBytes(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;

Parameter
NameDescription
valueByteString

The bytes for source to set.

Returns
TypeDescription
AnalyzeWorkloadMoveRequest.Builder

This builder for chaining.

setTarget(String value)

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];

Parameter
NameDescription
valueString

The target to set.

Returns
TypeDescription
AnalyzeWorkloadMoveRequest.Builder

This builder for chaining.

setTargetBytes(ByteString value)

public AnalyzeWorkloadMoveRequest.Builder setTargetBytes(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];

Parameter
NameDescription
valueByteString

The bytes for target to set.

Returns
TypeDescription
AnalyzeWorkloadMoveRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzeWorkloadMoveRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AnalyzeWorkloadMoveRequest.Builder
Overrides