Class FetchInventoryRequest.Builder (1.83.0)

public static final class FetchInventoryRequest.Builder extends GeneratedMessage.Builder<FetchInventoryRequest.Builder> implements FetchInventoryRequestOrBuilder

Request message for fetchInventory.

Protobuf type google.cloud.vmmigration.v1.FetchInventoryRequest

Static Methods

getDescriptor()

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

Methods

build()

public FetchInventoryRequest build()
Returns
Type Description
FetchInventoryRequest

buildPartial()

public FetchInventoryRequest buildPartial()
Returns
Type Description
FetchInventoryRequest

clear()

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

clearForceRefresh()

public FetchInventoryRequest.Builder clearForceRefresh()

If this flag is set to true, the source will be queried instead of using cached results. Using this flag will make the call slower.

bool force_refresh = 2;

Returns
Type Description
FetchInventoryRequest.Builder

This builder for chaining.

clearSource()

public FetchInventoryRequest.Builder clearSource()

Required. The name of the Source.

string source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
FetchInventoryRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public FetchInventoryRequest getDefaultInstanceForType()
Returns
Type Description
FetchInventoryRequest

getDescriptorForType()

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

getForceRefresh()

public boolean getForceRefresh()

If this flag is set to true, the source will be queried instead of using cached results. Using this flag will make the call slower.

bool force_refresh = 2;

Returns
Type Description
boolean

The forceRefresh.

getSource()

public String getSource()

Required. The name of the Source.

string source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The source.

getSourceBytes()

public ByteString getSourceBytes()

Required. The name of the Source.

string source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for source.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FetchInventoryRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setForceRefresh(boolean value)

public FetchInventoryRequest.Builder setForceRefresh(boolean value)

If this flag is set to true, the source will be queried instead of using cached results. Using this flag will make the call slower.

bool force_refresh = 2;

Parameter
Name Description
value boolean

The forceRefresh to set.

Returns
Type Description
FetchInventoryRequest.Builder

This builder for chaining.

setSource(String value)

public FetchInventoryRequest.Builder setSource(String value)

Required. The name of the Source.

string source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The source to set.

Returns
Type Description
FetchInventoryRequest.Builder

This builder for chaining.

setSourceBytes(ByteString value)

public FetchInventoryRequest.Builder setSourceBytes(ByteString value)

Required. The name of the Source.

string source = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for source to set.

Returns
Type Description
FetchInventoryRequest.Builder

This builder for chaining.