Class GetDraftRequest.Builder (0.2.0)

public static final class GetDraftRequest.Builder extends GeneratedMessageV3.Builder<GetDraftRequest.Builder> implements GetDraftRequestOrBuilder

Message for getting a Draft.

Protobuf type google.cloud.visionai.v1.GetDraftRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetDraftRequest build()
Returns
Type Description
GetDraftRequest

buildPartial()

public GetDraftRequest buildPartial()
Returns
Type Description
GetDraftRequest

clear()

public GetDraftRequest.Builder clear()
Returns
Type Description
GetDraftRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetDraftRequest.Builder clearName()

Required. Name of the resource.

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

Returns
Type Description
GetDraftRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public GetDraftRequest.Builder clone()
Returns
Type Description
GetDraftRequest.Builder
Overrides

getDefaultInstanceForType()

public GetDraftRequest getDefaultInstanceForType()
Returns
Type Description
GetDraftRequest

getDescriptorForType()

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

getName()

public String getName()

Required. Name of the resource.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the resource.

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetDraftRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetDraftRequest.Builder setName(String value)

Required. Name of the resource.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetDraftRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetDraftRequest.Builder setNameBytes(ByteString value)

Required. Name of the resource.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetDraftRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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