Class ProcessorVersion.DeprecationInfo.Builder (2.23.0)

public static final class ProcessorVersion.DeprecationInfo.Builder extends GeneratedMessageV3.Builder<ProcessorVersion.DeprecationInfo.Builder> implements ProcessorVersion.DeprecationInfoOrBuilder

Information about the upcoming deprecation of this processor version.

Protobuf type google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ProcessorVersion.DeprecationInfo build()
Returns
TypeDescription
ProcessorVersion.DeprecationInfo

buildPartial()

public ProcessorVersion.DeprecationInfo buildPartial()
Returns
TypeDescription
ProcessorVersion.DeprecationInfo

clear()

public ProcessorVersion.DeprecationInfo.Builder clear()
Returns
TypeDescription
ProcessorVersion.DeprecationInfo.Builder
Overrides

clearDeprecationTime()

public ProcessorVersion.DeprecationInfo.Builder clearDeprecationTime()

The time at which this processor version will be deprecated.

.google.protobuf.Timestamp deprecation_time = 1;

Returns
TypeDescription
ProcessorVersion.DeprecationInfo.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReplacementProcessorVersion()

public ProcessorVersion.DeprecationInfo.Builder clearReplacementProcessorVersion()

If set, the processor version that will be used as a replacement.

string replacement_processor_version = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ProcessorVersion.DeprecationInfo.Builder

This builder for chaining.

clone()

public ProcessorVersion.DeprecationInfo.Builder clone()
Returns
TypeDescription
ProcessorVersion.DeprecationInfo.Builder
Overrides

getDefaultInstanceForType()

public ProcessorVersion.DeprecationInfo getDefaultInstanceForType()
Returns
TypeDescription
ProcessorVersion.DeprecationInfo

getDeprecationTime()

public Timestamp getDeprecationTime()

The time at which this processor version will be deprecated.

.google.protobuf.Timestamp deprecation_time = 1;

Returns
TypeDescription
Timestamp

The deprecationTime.

getDeprecationTimeBuilder()

public Timestamp.Builder getDeprecationTimeBuilder()

The time at which this processor version will be deprecated.

.google.protobuf.Timestamp deprecation_time = 1;

Returns
TypeDescription
Builder

getDeprecationTimeOrBuilder()

public TimestampOrBuilder getDeprecationTimeOrBuilder()

The time at which this processor version will be deprecated.

.google.protobuf.Timestamp deprecation_time = 1;

Returns
TypeDescription
TimestampOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getReplacementProcessorVersion()

public String getReplacementProcessorVersion()

If set, the processor version that will be used as a replacement.

string replacement_processor_version = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The replacementProcessorVersion.

getReplacementProcessorVersionBytes()

public ByteString getReplacementProcessorVersionBytes()

If set, the processor version that will be used as a replacement.

string replacement_processor_version = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for replacementProcessorVersion.

hasDeprecationTime()

public boolean hasDeprecationTime()

The time at which this processor version will be deprecated.

.google.protobuf.Timestamp deprecation_time = 1;

Returns
TypeDescription
boolean

Whether the deprecationTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDeprecationTime(Timestamp value)

public ProcessorVersion.DeprecationInfo.Builder mergeDeprecationTime(Timestamp value)

The time at which this processor version will be deprecated.

.google.protobuf.Timestamp deprecation_time = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ProcessorVersion.DeprecationInfo.Builder

mergeFrom(ProcessorVersion.DeprecationInfo other)

public ProcessorVersion.DeprecationInfo.Builder mergeFrom(ProcessorVersion.DeprecationInfo other)
Parameter
NameDescription
otherProcessorVersion.DeprecationInfo
Returns
TypeDescription
ProcessorVersion.DeprecationInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDeprecationTime(Timestamp value)

public ProcessorVersion.DeprecationInfo.Builder setDeprecationTime(Timestamp value)

The time at which this processor version will be deprecated.

.google.protobuf.Timestamp deprecation_time = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ProcessorVersion.DeprecationInfo.Builder

setDeprecationTime(Timestamp.Builder builderForValue)

public ProcessorVersion.DeprecationInfo.Builder setDeprecationTime(Timestamp.Builder builderForValue)

The time at which this processor version will be deprecated.

.google.protobuf.Timestamp deprecation_time = 1;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ProcessorVersion.DeprecationInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setReplacementProcessorVersion(String value)

public ProcessorVersion.DeprecationInfo.Builder setReplacementProcessorVersion(String value)

If set, the processor version that will be used as a replacement.

string replacement_processor_version = 2 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The replacementProcessorVersion to set.

Returns
TypeDescription
ProcessorVersion.DeprecationInfo.Builder

This builder for chaining.

setReplacementProcessorVersionBytes(ByteString value)

public ProcessorVersion.DeprecationInfo.Builder setReplacementProcessorVersionBytes(ByteString value)

If set, the processor version that will be used as a replacement.

string replacement_processor_version = 2 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for replacementProcessorVersion to set.

Returns
TypeDescription
ProcessorVersion.DeprecationInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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