Class TransferProto.UpdateAgentPoolRequest.Builder (1.43.0)

public static final class TransferProto.UpdateAgentPoolRequest.Builder extends GeneratedMessageV3.Builder<TransferProto.UpdateAgentPoolRequest.Builder> implements TransferProto.UpdateAgentPoolRequestOrBuilder

Specifies the request passed to UpdateAgentPool.

Protobuf type google.storagetransfer.v1.UpdateAgentPoolRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TransferProto.UpdateAgentPoolRequest build()
Returns
Type Description
TransferProto.UpdateAgentPoolRequest

buildPartial()

public TransferProto.UpdateAgentPoolRequest buildPartial()
Returns
Type Description
TransferProto.UpdateAgentPoolRequest

clear()

public TransferProto.UpdateAgentPoolRequest.Builder clear()
Returns
Type Description
TransferProto.UpdateAgentPoolRequest.Builder
Overrides

clearAgentPool()

public TransferProto.UpdateAgentPoolRequest.Builder clearAgentPool()

Required. The agent pool to update. agent_pool is expected to specify following fields:

  • name
  • display_name
  • bandwidth_limit An UpdateAgentPoolRequest with any other fields is rejected with the error INVALID_ARGUMENT.

.google.storagetransfer.v1.AgentPool agent_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TransferProto.UpdateAgentPoolRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public TransferProto.UpdateAgentPoolRequest.Builder clearUpdateMask()

The field mask of the fields in agentPool to update in this request. The following agentPool fields can be updated:

  • display_name
  • bandwidth_limit

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
TransferProto.UpdateAgentPoolRequest.Builder

clone()

public TransferProto.UpdateAgentPoolRequest.Builder clone()
Returns
Type Description
TransferProto.UpdateAgentPoolRequest.Builder
Overrides

getAgentPool()

public TransferTypes.AgentPool getAgentPool()

Required. The agent pool to update. agent_pool is expected to specify following fields:

  • name
  • display_name
  • bandwidth_limit An UpdateAgentPoolRequest with any other fields is rejected with the error INVALID_ARGUMENT.

.google.storagetransfer.v1.AgentPool agent_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TransferTypes.AgentPool

The agentPool.

getAgentPoolBuilder()

public TransferTypes.AgentPool.Builder getAgentPoolBuilder()

Required. The agent pool to update. agent_pool is expected to specify following fields:

  • name
  • display_name
  • bandwidth_limit An UpdateAgentPoolRequest with any other fields is rejected with the error INVALID_ARGUMENT.

.google.storagetransfer.v1.AgentPool agent_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TransferTypes.AgentPool.Builder

getAgentPoolOrBuilder()

public TransferTypes.AgentPoolOrBuilder getAgentPoolOrBuilder()

Required. The agent pool to update. agent_pool is expected to specify following fields:

  • name
  • display_name
  • bandwidth_limit An UpdateAgentPoolRequest with any other fields is rejected with the error INVALID_ARGUMENT.

.google.storagetransfer.v1.AgentPool agent_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TransferTypes.AgentPoolOrBuilder

getDefaultInstanceForType()

public TransferProto.UpdateAgentPoolRequest getDefaultInstanceForType()
Returns
Type Description
TransferProto.UpdateAgentPoolRequest

getDescriptorForType()

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

getUpdateMask()

public FieldMask getUpdateMask()

The field mask of the fields in agentPool to update in this request. The following agentPool fields can be updated:

  • display_name
  • bandwidth_limit

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

The field mask of the fields in agentPool to update in this request. The following agentPool fields can be updated:

  • display_name
  • bandwidth_limit

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

The field mask of the fields in agentPool to update in this request. The following agentPool fields can be updated:

  • display_name
  • bandwidth_limit

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
FieldMaskOrBuilder

hasAgentPool()

public boolean hasAgentPool()

Required. The agent pool to update. agent_pool is expected to specify following fields:

  • name
  • display_name
  • bandwidth_limit An UpdateAgentPoolRequest with any other fields is rejected with the error INVALID_ARGUMENT.

.google.storagetransfer.v1.AgentPool agent_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the agentPool field is set.

hasUpdateMask()

public boolean hasUpdateMask()

The field mask of the fields in agentPool to update in this request. The following agentPool fields can be updated:

  • display_name
  • bandwidth_limit

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAgentPool(TransferTypes.AgentPool value)

public TransferProto.UpdateAgentPoolRequest.Builder mergeAgentPool(TransferTypes.AgentPool value)

Required. The agent pool to update. agent_pool is expected to specify following fields:

  • name
  • display_name
  • bandwidth_limit An UpdateAgentPoolRequest with any other fields is rejected with the error INVALID_ARGUMENT.

.google.storagetransfer.v1.AgentPool agent_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TransferTypes.AgentPool
Returns
Type Description
TransferProto.UpdateAgentPoolRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(TransferProto.UpdateAgentPoolRequest other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public TransferProto.UpdateAgentPoolRequest.Builder mergeUpdateMask(FieldMask value)

The field mask of the fields in agentPool to update in this request. The following agentPool fields can be updated:

  • display_name
  • bandwidth_limit

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
TransferProto.UpdateAgentPoolRequest.Builder

setAgentPool(TransferTypes.AgentPool value)

public TransferProto.UpdateAgentPoolRequest.Builder setAgentPool(TransferTypes.AgentPool value)

Required. The agent pool to update. agent_pool is expected to specify following fields:

  • name
  • display_name
  • bandwidth_limit An UpdateAgentPoolRequest with any other fields is rejected with the error INVALID_ARGUMENT.

.google.storagetransfer.v1.AgentPool agent_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TransferTypes.AgentPool
Returns
Type Description
TransferProto.UpdateAgentPoolRequest.Builder

setAgentPool(TransferTypes.AgentPool.Builder builderForValue)

public TransferProto.UpdateAgentPoolRequest.Builder setAgentPool(TransferTypes.AgentPool.Builder builderForValue)

Required. The agent pool to update. agent_pool is expected to specify following fields:

  • name
  • display_name
  • bandwidth_limit An UpdateAgentPoolRequest with any other fields is rejected with the error INVALID_ARGUMENT.

.google.storagetransfer.v1.AgentPool agent_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue TransferTypes.AgentPool.Builder
Returns
Type Description
TransferProto.UpdateAgentPoolRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public TransferProto.UpdateAgentPoolRequest.Builder setUpdateMask(FieldMask value)

The field mask of the fields in agentPool to update in this request. The following agentPool fields can be updated:

  • display_name
  • bandwidth_limit

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
value FieldMask
Returns
Type Description
TransferProto.UpdateAgentPoolRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public TransferProto.UpdateAgentPoolRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

The field mask of the fields in agentPool to update in this request. The following agentPool fields can be updated:

  • display_name
  • bandwidth_limit

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TransferProto.UpdateAgentPoolRequest.Builder