Class CreateCollectorRequest.Builder (0.7.0)

public static final class CreateCollectorRequest.Builder extends GeneratedMessageV3.Builder<CreateCollectorRequest.Builder> implements CreateCollectorRequestOrBuilder

Message for creating a Collector.

Protobuf type google.cloud.rapidmigrationassessment.v1.CreateCollectorRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateCollectorRequest build()
Returns
TypeDescription
CreateCollectorRequest

buildPartial()

public CreateCollectorRequest buildPartial()
Returns
TypeDescription
CreateCollectorRequest

clear()

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

clearCollector()

public CreateCollectorRequest.Builder clearCollector()

Required. The resource being created.

.google.cloud.rapidmigrationassessment.v1.Collector collector = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateCollectorRequest.Builder

clearCollectorId()

public CreateCollectorRequest.Builder clearCollectorId()

Required. Id of the requesting object.

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

Returns
TypeDescription
CreateCollectorRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CreateCollectorRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateCollectorRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateCollectorRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CreateCollectorRequest.Builder
Overrides

clearParent()

public CreateCollectorRequest.Builder clearParent()

Required. Name of the parent (project+location).

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

Returns
TypeDescription
CreateCollectorRequest.Builder

This builder for chaining.

clearRequestId()

public CreateCollectorRequest.Builder clearRequestId()

Optional. An optional request ID to identify requests.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CreateCollectorRequest.Builder

This builder for chaining.

clone()

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

getCollector()

public Collector getCollector()

Required. The resource being created.

.google.cloud.rapidmigrationassessment.v1.Collector collector = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Collector

The collector.

getCollectorBuilder()

public Collector.Builder getCollectorBuilder()

Required. The resource being created.

.google.cloud.rapidmigrationassessment.v1.Collector collector = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Collector.Builder

getCollectorId()

public String getCollectorId()

Required. Id of the requesting object.

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

Returns
TypeDescription
String

The collectorId.

getCollectorIdBytes()

public ByteString getCollectorIdBytes()

Required. Id of the requesting object.

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

Returns
TypeDescription
ByteString

The bytes for collectorId.

getCollectorOrBuilder()

public CollectorOrBuilder getCollectorOrBuilder()

Required. The resource being created.

.google.cloud.rapidmigrationassessment.v1.Collector collector = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CollectorOrBuilder

getDefaultInstanceForType()

public CreateCollectorRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateCollectorRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. Name of the parent (project+location).

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Name of the parent (project+location).

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

Returns
TypeDescription
ByteString

The bytes for parent.

getRequestId()

public String getRequestId()

Optional. An optional request ID to identify requests.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. An optional request ID to identify requests.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for requestId.

hasCollector()

public boolean hasCollector()

Required. The resource being created.

.google.cloud.rapidmigrationassessment.v1.Collector collector = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the collector field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCollector(Collector value)

public CreateCollectorRequest.Builder mergeCollector(Collector value)

Required. The resource being created.

.google.cloud.rapidmigrationassessment.v1.Collector collector = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCollector
Returns
TypeDescription
CreateCollectorRequest.Builder

mergeFrom(CreateCollectorRequest other)

public CreateCollectorRequest.Builder mergeFrom(CreateCollectorRequest other)
Parameter
NameDescription
otherCreateCollectorRequest
Returns
TypeDescription
CreateCollectorRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCollector(Collector value)

public CreateCollectorRequest.Builder setCollector(Collector value)

Required. The resource being created.

.google.cloud.rapidmigrationassessment.v1.Collector collector = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCollector
Returns
TypeDescription
CreateCollectorRequest.Builder

setCollector(Collector.Builder builderForValue)

public CreateCollectorRequest.Builder setCollector(Collector.Builder builderForValue)

Required. The resource being created.

.google.cloud.rapidmigrationassessment.v1.Collector collector = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueCollector.Builder
Returns
TypeDescription
CreateCollectorRequest.Builder

setCollectorId(String value)

public CreateCollectorRequest.Builder setCollectorId(String value)

Required. Id of the requesting object.

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

Parameter
NameDescription
valueString

The collectorId to set.

Returns
TypeDescription
CreateCollectorRequest.Builder

This builder for chaining.

setCollectorIdBytes(ByteString value)

public CreateCollectorRequest.Builder setCollectorIdBytes(ByteString value)

Required. Id of the requesting object.

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

Parameter
NameDescription
valueByteString

The bytes for collectorId to set.

Returns
TypeDescription
CreateCollectorRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateCollectorRequest.Builder setParent(String value)

Required. Name of the parent (project+location).

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateCollectorRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateCollectorRequest.Builder setParentBytes(ByteString value)

Required. Name of the parent (project+location).

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateCollectorRequest.Builder

This builder for chaining.

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

public CreateCollectorRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateCollectorRequest.Builder
Overrides

setRequestId(String value)

public CreateCollectorRequest.Builder setRequestId(String value)

Optional. An optional request ID to identify requests.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The requestId to set.

Returns
TypeDescription
CreateCollectorRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateCollectorRequest.Builder setRequestIdBytes(ByteString value)

Optional. An optional request ID to identify requests.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for requestId to set.

Returns
TypeDescription
CreateCollectorRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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