Class FetchInventoryRequest.Builder (1.40.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FetchInventoryRequest build()
Returns
TypeDescription
FetchInventoryRequest

buildPartial()

public FetchInventoryRequest buildPartial()
Returns
TypeDescription
FetchInventoryRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public FetchInventoryRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
FetchInventoryRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public FetchInventoryRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
FetchInventoryRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public FetchInventoryRequest getDefaultInstanceForType()
Returns
TypeDescription
FetchInventoryRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for source.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FetchInventoryRequest other)

public FetchInventoryRequest.Builder mergeFrom(FetchInventoryRequest other)
Parameter
NameDescription
otherFetchInventoryRequest
Returns
TypeDescription
FetchInventoryRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public FetchInventoryRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The forceRefresh to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The source to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for source to set.

Returns
TypeDescription
FetchInventoryRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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