Class AnalyzeMoveRequest.Builder (3.9.0)

public static final class AnalyzeMoveRequest.Builder extends GeneratedMessageV3.Builder<AnalyzeMoveRequest.Builder> implements AnalyzeMoveRequestOrBuilder

The request message for performing resource move analysis.

Protobuf type google.cloud.asset.v1.AnalyzeMoveRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnalyzeMoveRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnalyzeMoveRequest.Builder
Overrides

build()

public AnalyzeMoveRequest build()
Returns
Type Description
AnalyzeMoveRequest

buildPartial()

public AnalyzeMoveRequest buildPartial()
Returns
Type Description
AnalyzeMoveRequest

clear()

public AnalyzeMoveRequest.Builder clear()
Returns
Type Description
AnalyzeMoveRequest.Builder
Overrides

clearDestinationParent()

public AnalyzeMoveRequest.Builder clearDestinationParent()

Required. Name of the GCP Folder or Organization to reparent the target resource. The analysis will be performed against hypothetically moving the resource to this specified desitination parent. This can only be a Folder number (such as "folders/123") or an Organization number (such as "organizations/123").

string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AnalyzeMoveRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AnalyzeMoveRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AnalyzeMoveRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AnalyzeMoveRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AnalyzeMoveRequest.Builder
Overrides

clearResource()

public AnalyzeMoveRequest.Builder clearResource()

Required. Name of the resource to perform the analysis against. Only GCP Project are supported as of today. Hence, this can only be Project ID (such as "projects/my-project-id") or a Project Number (such as "projects/12345").

string resource = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AnalyzeMoveRequest.Builder

This builder for chaining.

clearView()

public AnalyzeMoveRequest.Builder clearView()

Analysis view indicating what information should be included in the analysis response. If unspecified, the default view is FULL.

.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3;

Returns
Type Description
AnalyzeMoveRequest.Builder

This builder for chaining.

clone()

public AnalyzeMoveRequest.Builder clone()
Returns
Type Description
AnalyzeMoveRequest.Builder
Overrides

getDefaultInstanceForType()

public AnalyzeMoveRequest getDefaultInstanceForType()
Returns
Type Description
AnalyzeMoveRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDestinationParent()

public String getDestinationParent()

Required. Name of the GCP Folder or Organization to reparent the target resource. The analysis will be performed against hypothetically moving the resource to this specified desitination parent. This can only be a Folder number (such as "folders/123") or an Organization number (such as "organizations/123").

string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The destinationParent.

getDestinationParentBytes()

public ByteString getDestinationParentBytes()

Required. Name of the GCP Folder or Organization to reparent the target resource. The analysis will be performed against hypothetically moving the resource to this specified desitination parent. This can only be a Folder number (such as "folders/123") or an Organization number (such as "organizations/123").

string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for destinationParent.

getResource()

public String getResource()

Required. Name of the resource to perform the analysis against. Only GCP Project are supported as of today. Hence, this can only be Project ID (such as "projects/my-project-id") or a Project Number (such as "projects/12345").

string resource = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The resource.

getResourceBytes()

public ByteString getResourceBytes()

Required. Name of the resource to perform the analysis against. Only GCP Project are supported as of today. Hence, this can only be Project ID (such as "projects/my-project-id") or a Project Number (such as "projects/12345").

string resource = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for resource.

getView()

public AnalyzeMoveRequest.AnalysisView getView()

Analysis view indicating what information should be included in the analysis response. If unspecified, the default view is FULL.

.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3;

Returns
Type Description
AnalyzeMoveRequest.AnalysisView

The view.

getViewValue()

public int getViewValue()

Analysis view indicating what information should be included in the analysis response. If unspecified, the default view is FULL.

.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3;

Returns
Type Description
int

The enum numeric value on the wire for view.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AnalyzeMoveRequest other)

public AnalyzeMoveRequest.Builder mergeFrom(AnalyzeMoveRequest other)
Parameter
Name Description
other AnalyzeMoveRequest
Returns
Type Description
AnalyzeMoveRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnalyzeMoveRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzeMoveRequest.Builder
Overrides Exceptions
Type Description
IOException

mergeFrom(Message other)

public AnalyzeMoveRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AnalyzeMoveRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzeMoveRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnalyzeMoveRequest.Builder
Overrides

setDestinationParent(String value)

public AnalyzeMoveRequest.Builder setDestinationParent(String value)

Required. Name of the GCP Folder or Organization to reparent the target resource. The analysis will be performed against hypothetically moving the resource to this specified desitination parent. This can only be a Folder number (such as "folders/123") or an Organization number (such as "organizations/123").

string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The destinationParent to set.

Returns
Type Description
AnalyzeMoveRequest.Builder

This builder for chaining.

setDestinationParentBytes(ByteString value)

public AnalyzeMoveRequest.Builder setDestinationParentBytes(ByteString value)

Required. Name of the GCP Folder or Organization to reparent the target resource. The analysis will be performed against hypothetically moving the resource to this specified desitination parent. This can only be a Folder number (such as "folders/123") or an Organization number (such as "organizations/123").

string destination_parent = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for destinationParent to set.

Returns
Type Description
AnalyzeMoveRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AnalyzeMoveRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnalyzeMoveRequest.Builder
Overrides

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

public AnalyzeMoveRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AnalyzeMoveRequest.Builder
Overrides

setResource(String value)

public AnalyzeMoveRequest.Builder setResource(String value)

Required. Name of the resource to perform the analysis against. Only GCP Project are supported as of today. Hence, this can only be Project ID (such as "projects/my-project-id") or a Project Number (such as "projects/12345").

string resource = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The resource to set.

Returns
Type Description
AnalyzeMoveRequest.Builder

This builder for chaining.

setResourceBytes(ByteString value)

public AnalyzeMoveRequest.Builder setResourceBytes(ByteString value)

Required. Name of the resource to perform the analysis against. Only GCP Project are supported as of today. Hence, this can only be Project ID (such as "projects/my-project-id") or a Project Number (such as "projects/12345").

string resource = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for resource to set.

Returns
Type Description
AnalyzeMoveRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzeMoveRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnalyzeMoveRequest.Builder
Overrides

setView(AnalyzeMoveRequest.AnalysisView value)

public AnalyzeMoveRequest.Builder setView(AnalyzeMoveRequest.AnalysisView value)

Analysis view indicating what information should be included in the analysis response. If unspecified, the default view is FULL.

.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3;

Parameter
Name Description
value AnalyzeMoveRequest.AnalysisView

The view to set.

Returns
Type Description
AnalyzeMoveRequest.Builder

This builder for chaining.

setViewValue(int value)

public AnalyzeMoveRequest.Builder setViewValue(int value)

Analysis view indicating what information should be included in the analysis response. If unspecified, the default view is FULL.

.google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView view = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for view to set.

Returns
Type Description
AnalyzeMoveRequest.Builder

This builder for chaining.