Class CreateAnnotationRequest.Builder (0.1.0)

public static final class CreateAnnotationRequest.Builder extends GeneratedMessageV3.Builder<CreateAnnotationRequest.Builder> implements CreateAnnotationRequestOrBuilder

Message for creating an AnnotationS.

Protobuf type google.cloud.rapidmigrationassessment.v1.CreateAnnotationRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateAnnotationRequest build()
Returns
TypeDescription
CreateAnnotationRequest

buildPartial()

public CreateAnnotationRequest buildPartial()
Returns
TypeDescription
CreateAnnotationRequest

clear()

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

clearAnnotation()

public CreateAnnotationRequest.Builder clearAnnotation()

Required. The resource being created.

.google.cloud.rapidmigrationassessment.v1.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateAnnotationRequest.Builder

clearParent()

public CreateAnnotationRequest.Builder clearParent()

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

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

Returns
TypeDescription
CreateAnnotationRequest.Builder

This builder for chaining.

clearRequestId()

public CreateAnnotationRequest.Builder clearRequestId()

Optional. An optional request ID to identify requests.

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

Returns
TypeDescription
CreateAnnotationRequest.Builder

This builder for chaining.

getAnnotation()

public Annotation getAnnotation()

Required. The resource being created.

.google.cloud.rapidmigrationassessment.v1.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Annotation

The annotation.

getAnnotationBuilder()

public Annotation.Builder getAnnotationBuilder()

Required. The resource being created.

.google.cloud.rapidmigrationassessment.v1.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Annotation.Builder

getAnnotationOrBuilder()

public AnnotationOrBuilder getAnnotationOrBuilder()

Required. The resource being created.

.google.cloud.rapidmigrationassessment.v1.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AnnotationOrBuilder

getDefaultInstanceForType()

public CreateAnnotationRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateAnnotationRequest

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.

hasAnnotation()

public boolean hasAnnotation()

Required. The resource being created.

.google.cloud.rapidmigrationassessment.v1.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the annotation field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAnnotation(Annotation value)

public CreateAnnotationRequest.Builder mergeAnnotation(Annotation value)

Required. The resource being created.

.google.cloud.rapidmigrationassessment.v1.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueAnnotation
Returns
TypeDescription
CreateAnnotationRequest.Builder

mergeFrom(CreateAnnotationRequest other)

public CreateAnnotationRequest.Builder mergeFrom(CreateAnnotationRequest other)
Parameter
NameDescription
otherCreateAnnotationRequest
Returns
TypeDescription
CreateAnnotationRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAnnotation(Annotation value)

public CreateAnnotationRequest.Builder setAnnotation(Annotation value)

Required. The resource being created.

.google.cloud.rapidmigrationassessment.v1.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueAnnotation
Returns
TypeDescription
CreateAnnotationRequest.Builder

setAnnotation(Annotation.Builder builderForValue)

public CreateAnnotationRequest.Builder setAnnotation(Annotation.Builder builderForValue)

Required. The resource being created.

.google.cloud.rapidmigrationassessment.v1.Annotation annotation = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueAnnotation.Builder
Returns
TypeDescription
CreateAnnotationRequest.Builder

setParent(String value)

public CreateAnnotationRequest.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
CreateAnnotationRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateAnnotationRequest.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
CreateAnnotationRequest.Builder

This builder for chaining.

setRequestId(String value)

public CreateAnnotationRequest.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
CreateAnnotationRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateAnnotationRequest.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
CreateAnnotationRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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