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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CreateCollectorRequest.BuilderImplements
CreateCollectorRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateCollectorRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
CreateCollectorRequest.Builder |
build()
public CreateCollectorRequest build()
Returns | |
---|---|
Type | Description |
CreateCollectorRequest |
buildPartial()
public CreateCollectorRequest buildPartial()
Returns | |
---|---|
Type | Description |
CreateCollectorRequest |
clear()
public CreateCollectorRequest.Builder clear()
Returns | |
---|---|
Type | Description |
CreateCollectorRequest.Builder |
clearCollector()
public CreateCollectorRequest.Builder clearCollector()
Required. The resource being created.
.google.cloud.rapidmigrationassessment.v1.Collector collector = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
CreateCollectorRequest.Builder |
clearCollectorId()
public CreateCollectorRequest.Builder clearCollectorId()
Required. Id of the requesting object.
string collector_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
CreateCollectorRequest.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public CreateCollectorRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
CreateCollectorRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateCollectorRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
CreateCollectorRequest.Builder |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
CreateCollectorRequest.Builder | This builder for chaining. |
clone()
public CreateCollectorRequest.Builder clone()
Returns | |
---|---|
Type | Description |
CreateCollectorRequest.Builder |
getCollector()
public Collector getCollector()
Required. The resource being created.
.google.cloud.rapidmigrationassessment.v1.Collector collector = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Collector.Builder |
getCollectorId()
public String getCollectorId()
Required. Id of the requesting object.
string collector_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String | The collectorId. |
getCollectorIdBytes()
public ByteString getCollectorIdBytes()
Required. Id of the requesting object.
string collector_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
CollectorOrBuilder |
getDefaultInstanceForType()
public CreateCollectorRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
CreateCollectorRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getParent()
public String getParent()
Required. Name of the parent (project+location).
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean | Whether the collector field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 | |
---|---|
Name | Description |
value | Collector |
Returns | |
---|---|
Type | Description |
CreateCollectorRequest.Builder |
mergeFrom(CreateCollectorRequest other)
public CreateCollectorRequest.Builder mergeFrom(CreateCollectorRequest other)
Parameter | |
---|---|
Name | Description |
other | CreateCollectorRequest |
Returns | |
---|---|
Type | Description |
CreateCollectorRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateCollectorRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
CreateCollectorRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CreateCollectorRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
CreateCollectorRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateCollectorRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateCollectorRequest.Builder |
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 | |
---|---|
Name | Description |
value | Collector |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | Collector.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The collectorId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for collectorId to set. |
Returns | |
---|---|
Type | Description |
CreateCollectorRequest.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public CreateCollectorRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
CreateCollectorRequest.Builder |
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 | |
---|---|
Name | Description |
value | String The parent to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for parent to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
CreateCollectorRequest.Builder |
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 | |
---|---|
Name | Description |
value | String The requestId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for requestId to set. |
Returns | |
---|---|
Type | Description |
CreateCollectorRequest.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateCollectorRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateCollectorRequest.Builder |