Class FetchInventoryRequest.Builder (1.42.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public FetchInventoryRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public FetchInventoryRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

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.

setUnknownFields(UnknownFieldSet unknownFields)

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