Class Validation.Builder (1.1.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.datastream.v1.ValidationMessage>
Returns
TypeDescription
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
NameDescription
valueValidationMessage
Returns
TypeDescription
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
NameDescription
builderForValueValidationMessage.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueValidationMessage
Returns
TypeDescription
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
NameDescription
indexint
builderForValueValidationMessage.Builder
Returns
TypeDescription
Validation.Builder

addMessageBuilder()

public ValidationMessage.Builder addMessageBuilder()

Messages reflecting the validation results.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ValidationMessage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Validation build()
Returns
TypeDescription
Validation

buildPartial()

public Validation buildPartial()
Returns
TypeDescription
Validation

clear()

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

clearCode()

public Validation.Builder clearCode()

A custom code identifying this validation.

string code = 4;

Returns
TypeDescription
Validation.Builder

This builder for chaining.

clearDescription()

public Validation.Builder clearDescription()

A short description of the validation.

string description = 1;

Returns
TypeDescription
Validation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMessage()

public Validation.Builder clearMessage()

Messages reflecting the validation results.

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

Returns
TypeDescription
Validation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public Validation.Builder clearState()

Validation execution status.

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

Returns
TypeDescription
Validation.Builder

This builder for chaining.

clone()

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

getCode()

public String getCode()

A custom code identifying this validation.

string code = 4;

Returns
TypeDescription
String

The code.

getCodeBytes()

public ByteString getCodeBytes()

A custom code identifying this validation.

string code = 4;

Returns
TypeDescription
ByteString

The bytes for code.

getDefaultInstanceForType()

public Validation getDefaultInstanceForType()
Returns
TypeDescription
Validation

getDescription()

public String getDescription()

A short description of the validation.

string description = 1;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A short description of the validation.

string description = 1;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMessage(int index)

public ValidationMessage getMessage(int index)

Messages reflecting the validation results.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ValidationMessage

getMessageBuilder(int index)

public ValidationMessage.Builder getMessageBuilder(int index)

Messages reflecting the validation results.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ValidationMessage.Builder

getMessageBuilderList()

public List<ValidationMessage.Builder> getMessageBuilderList()

Messages reflecting the validation results.

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

Returns
TypeDescription
List<Builder>

getMessageCount()

public int getMessageCount()

Messages reflecting the validation results.

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

Returns
TypeDescription
int

getMessageList()

public List<ValidationMessage> getMessageList()

Messages reflecting the validation results.

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

Returns
TypeDescription
List<ValidationMessage>

getMessageOrBuilder(int index)

public ValidationMessageOrBuilder getMessageOrBuilder(int index)

Messages reflecting the validation results.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ValidationMessageOrBuilder

getMessageOrBuilderList()

public List<? extends ValidationMessageOrBuilder> getMessageOrBuilderList()

Messages reflecting the validation results.

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

Returns
TypeDescription
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
TypeDescription
Validation.State

The state.

getStateValue()

public int getStateValue()

Validation execution status.

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

Returns
TypeDescription
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Validation other)

public Validation.Builder mergeFrom(Validation other)
Parameter
NameDescription
otherValidation
Returns
TypeDescription
Validation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Validation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Validation.Builder

setCode(String value)

public Validation.Builder setCode(String value)

A custom code identifying this validation.

string code = 4;

Parameter
NameDescription
valueString

The code to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for code to set.

Returns
TypeDescription
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
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Validation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Validation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueValidationMessage
Returns
TypeDescription
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
NameDescription
indexint
builderForValueValidationMessage.Builder
Returns
TypeDescription
Validation.Builder

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

public Validation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueValidation.State

The state to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
Validation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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