Class Validation.Builder (1.53.0)

public static final class Validation.Builder extends GeneratedMessageV3.Builder<Validation.Builder> implements ValidationOrBuilder

A validation to perform on a stream.

Protobuf type google.cloud.datastream.v1.Validation

Implements

ValidationOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllMessage(Iterable<? extends ValidationMessage> values)

public Validation.Builder addAllMessage(Iterable<? extends ValidationMessage> values)

Messages reflecting the validation results.

repeated .google.cloud.datastream.v1.ValidationMessage message = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.datastream.v1.ValidationMessage>
Returns
Type Description
Validation.Builder

addMessage(ValidationMessage value)

public Validation.Builder addMessage(ValidationMessage value)

Messages reflecting the validation results.

repeated .google.cloud.datastream.v1.ValidationMessage message = 3;

Parameter
Name Description
value ValidationMessage
Returns
Type Description
Validation.Builder

addMessage(ValidationMessage.Builder builderForValue)

public Validation.Builder addMessage(ValidationMessage.Builder builderForValue)

Messages reflecting the validation results.

repeated .google.cloud.datastream.v1.ValidationMessage message = 3;

Parameter
Name Description
builderForValue ValidationMessage.Builder
Returns
Type Description
Validation.Builder

addMessage(int index, ValidationMessage value)

public Validation.Builder addMessage(int index, ValidationMessage value)

Messages reflecting the validation results.

repeated .google.cloud.datastream.v1.ValidationMessage message = 3;

Parameters
Name Description
index int
value ValidationMessage
Returns
Type Description
Validation.Builder

addMessage(int index, ValidationMessage.Builder builderForValue)

public Validation.Builder addMessage(int index, ValidationMessage.Builder builderForValue)

Messages reflecting the validation results.

repeated .google.cloud.datastream.v1.ValidationMessage message = 3;

Parameters
Name Description
index int
builderForValue ValidationMessage.Builder
Returns
Type Description
Validation.Builder

addMessageBuilder()

public ValidationMessage.Builder addMessageBuilder()

Messages reflecting the validation results.

repeated .google.cloud.datastream.v1.ValidationMessage message = 3;

Returns
Type Description
ValidationMessage.Builder

addMessageBuilder(int index)

public ValidationMessage.Builder addMessageBuilder(int index)

Messages reflecting the validation results.

repeated .google.cloud.datastream.v1.ValidationMessage message = 3;

Parameter
Name Description
index int
Returns
Type Description
ValidationMessage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Validation build()
Returns
Type Description
Validation

buildPartial()

public Validation buildPartial()
Returns
Type Description
Validation

clear()

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

clearCode()

public Validation.Builder clearCode()

A custom code identifying this validation.

string code = 4;

Returns
Type Description
Validation.Builder

This builder for chaining.

clearDescription()

public Validation.Builder clearDescription()

A short description of the validation.

string description = 1;

Returns
Type Description
Validation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMessage()

public Validation.Builder clearMessage()

Messages reflecting the validation results.

repeated .google.cloud.datastream.v1.ValidationMessage message = 3;

Returns
Type Description
Validation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public Validation.Builder clearState()

Validation execution status.

.google.cloud.datastream.v1.Validation.State state = 2;

Returns
Type Description
Validation.Builder

This builder for chaining.

clone()

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

getCode()

public String getCode()

A custom code identifying this validation.

string code = 4;

Returns
Type Description
String

The code.

getCodeBytes()

public ByteString getCodeBytes()

A custom code identifying this validation.

string code = 4;

Returns
Type Description
ByteString

The bytes for code.

getDefaultInstanceForType()

public Validation getDefaultInstanceForType()
Returns
Type Description
Validation

getDescription()

public String getDescription()

A short description of the validation.

string description = 1;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A short description of the validation.

string description = 1;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getMessage(int index)

public ValidationMessage getMessage(int index)

Messages reflecting the validation results.

repeated .google.cloud.datastream.v1.ValidationMessage message = 3;

Parameter
Name Description
index int
Returns
Type Description
ValidationMessage

getMessageBuilder(int index)

public ValidationMessage.Builder getMessageBuilder(int index)

Messages reflecting the validation results.

repeated .google.cloud.datastream.v1.ValidationMessage message = 3;

Parameter
Name Description
index int
Returns
Type Description
ValidationMessage.Builder

getMessageBuilderList()

public List<ValidationMessage.Builder> getMessageBuilderList()

Messages reflecting the validation results.

repeated .google.cloud.datastream.v1.ValidationMessage message = 3;

Returns
Type Description
List<Builder>

getMessageCount()

public int getMessageCount()

Messages reflecting the validation results.

repeated .google.cloud.datastream.v1.ValidationMessage message = 3;

Returns
Type Description
int

getMessageList()

public List<ValidationMessage> getMessageList()

Messages reflecting the validation results.

repeated .google.cloud.datastream.v1.ValidationMessage message = 3;

Returns
Type Description
List<ValidationMessage>

getMessageOrBuilder(int index)

public ValidationMessageOrBuilder getMessageOrBuilder(int index)

Messages reflecting the validation results.

repeated .google.cloud.datastream.v1.ValidationMessage message = 3;

Parameter
Name Description
index int
Returns
Type Description
ValidationMessageOrBuilder

getMessageOrBuilderList()

public List<? extends ValidationMessageOrBuilder> getMessageOrBuilderList()

Messages reflecting the validation results.

repeated .google.cloud.datastream.v1.ValidationMessage message = 3;

Returns
Type Description
List<? extends com.google.cloud.datastream.v1.ValidationMessageOrBuilder>

getState()

public Validation.State getState()

Validation execution status.

.google.cloud.datastream.v1.Validation.State state = 2;

Returns
Type Description
Validation.State

The state.

getStateValue()

public int getStateValue()

Validation execution status.

.google.cloud.datastream.v1.Validation.State state = 2;

Returns
Type Description
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Validation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMessage(int index)

public Validation.Builder removeMessage(int index)

Messages reflecting the validation results.

repeated .google.cloud.datastream.v1.ValidationMessage message = 3;

Parameter
Name Description
index int
Returns
Type Description
Validation.Builder

setCode(String value)

public Validation.Builder setCode(String value)

A custom code identifying this validation.

string code = 4;

Parameter
Name Description
value String

The code to set.

Returns
Type Description
Validation.Builder

This builder for chaining.

setCodeBytes(ByteString value)

public Validation.Builder setCodeBytes(ByteString value)

A custom code identifying this validation.

string code = 4;

Parameter
Name Description
value ByteString

The bytes for code to set.

Returns
Type Description
Validation.Builder

This builder for chaining.

setDescription(String value)

public Validation.Builder setDescription(String value)

A short description of the validation.

string description = 1;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Validation.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Validation.Builder setDescriptionBytes(ByteString value)

A short description of the validation.

string description = 1;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Validation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMessage(int index, ValidationMessage value)

public Validation.Builder setMessage(int index, ValidationMessage value)

Messages reflecting the validation results.

repeated .google.cloud.datastream.v1.ValidationMessage message = 3;

Parameters
Name Description
index int
value ValidationMessage
Returns
Type Description
Validation.Builder

setMessage(int index, ValidationMessage.Builder builderForValue)

public Validation.Builder setMessage(int index, ValidationMessage.Builder builderForValue)

Messages reflecting the validation results.

repeated .google.cloud.datastream.v1.ValidationMessage message = 3;

Parameters
Name Description
index int
builderForValue ValidationMessage.Builder
Returns
Type Description
Validation.Builder

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

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

setState(Validation.State value)

public Validation.Builder setState(Validation.State value)

Validation execution status.

.google.cloud.datastream.v1.Validation.State state = 2;

Parameter
Name Description
value Validation.State

The state to set.

Returns
Type Description
Validation.Builder

This builder for chaining.

setStateValue(int value)

public Validation.Builder setStateValue(int value)

Validation execution status.

.google.cloud.datastream.v1.Validation.State state = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Validation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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