Class GetDatasetSchemaRequest.Builder (2.39.0)

public static final class GetDatasetSchemaRequest.Builder extends GeneratedMessageV3.Builder<GetDatasetSchemaRequest.Builder> implements GetDatasetSchemaRequestOrBuilder

Request for GetDatasetSchema.

Protobuf type google.cloud.documentai.v1beta3.GetDatasetSchemaRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetDatasetSchemaRequest build()
Returns
TypeDescription
GetDatasetSchemaRequest

buildPartial()

public GetDatasetSchemaRequest buildPartial()
Returns
TypeDescription
GetDatasetSchemaRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetDatasetSchemaRequest.Builder clearName()

Required. The dataset schema resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema

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

Returns
TypeDescription
GetDatasetSchemaRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVisibleFieldsOnly()

public GetDatasetSchemaRequest.Builder clearVisibleFieldsOnly()

If set, only returns the visible fields of the schema.

bool visible_fields_only = 2;

Returns
TypeDescription
GetDatasetSchemaRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetDatasetSchemaRequest getDefaultInstanceForType()
Returns
TypeDescription
GetDatasetSchemaRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The dataset schema resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The dataset schema resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema

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

Returns
TypeDescription
ByteString

The bytes for name.

getVisibleFieldsOnly()

public boolean getVisibleFieldsOnly()

If set, only returns the visible fields of the schema.

bool visible_fields_only = 2;

Returns
TypeDescription
boolean

The visibleFieldsOnly.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetDatasetSchemaRequest other)

public GetDatasetSchemaRequest.Builder mergeFrom(GetDatasetSchemaRequest other)
Parameter
NameDescription
otherGetDatasetSchemaRequest
Returns
TypeDescription
GetDatasetSchemaRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetDatasetSchemaRequest.Builder setName(String value)

Required. The dataset schema resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetDatasetSchemaRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetDatasetSchemaRequest.Builder setNameBytes(ByteString value)

Required. The dataset schema resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset/datasetSchema

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetDatasetSchemaRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVisibleFieldsOnly(boolean value)

public GetDatasetSchemaRequest.Builder setVisibleFieldsOnly(boolean value)

If set, only returns the visible fields of the schema.

bool visible_fields_only = 2;

Parameter
NameDescription
valueboolean

The visibleFieldsOnly to set.

Returns
TypeDescription
GetDatasetSchemaRequest.Builder

This builder for chaining.