Class UrlMapValidationResult.Builder (1.56.0)

public static final class UrlMapValidationResult.Builder extends GeneratedMessageV3.Builder<UrlMapValidationResult.Builder> implements UrlMapValidationResultOrBuilder

Message representing the validation result for a UrlMap.

Protobuf type google.cloud.compute.v1.UrlMapValidationResult

Static Methods

getDescriptor()

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

Methods

addAllLoadErrors(Iterable<String> values)

public UrlMapValidationResult.Builder addAllLoadErrors(Iterable<String> values)

repeated string load_errors = 310147300;

Parameter
Name Description
values Iterable<String>

The loadErrors to add.

Returns
Type Description
UrlMapValidationResult.Builder

This builder for chaining.

addAllTestFailures(Iterable<? extends TestFailure> values)

public UrlMapValidationResult.Builder addAllTestFailures(Iterable<? extends TestFailure> values)

repeated .google.cloud.compute.v1.TestFailure test_failures = 505934134;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.TestFailure>
Returns
Type Description
UrlMapValidationResult.Builder

addLoadErrors(String value)

public UrlMapValidationResult.Builder addLoadErrors(String value)

repeated string load_errors = 310147300;

Parameter
Name Description
value String

The loadErrors to add.

Returns
Type Description
UrlMapValidationResult.Builder

This builder for chaining.

addLoadErrorsBytes(ByteString value)

public UrlMapValidationResult.Builder addLoadErrorsBytes(ByteString value)

repeated string load_errors = 310147300;

Parameter
Name Description
value ByteString

The bytes of the loadErrors to add.

Returns
Type Description
UrlMapValidationResult.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTestFailures(TestFailure value)

public UrlMapValidationResult.Builder addTestFailures(TestFailure value)

repeated .google.cloud.compute.v1.TestFailure test_failures = 505934134;

Parameter
Name Description
value TestFailure
Returns
Type Description
UrlMapValidationResult.Builder

addTestFailures(TestFailure.Builder builderForValue)

public UrlMapValidationResult.Builder addTestFailures(TestFailure.Builder builderForValue)

repeated .google.cloud.compute.v1.TestFailure test_failures = 505934134;

Parameter
Name Description
builderForValue TestFailure.Builder
Returns
Type Description
UrlMapValidationResult.Builder

addTestFailures(int index, TestFailure value)

public UrlMapValidationResult.Builder addTestFailures(int index, TestFailure value)

repeated .google.cloud.compute.v1.TestFailure test_failures = 505934134;

Parameters
Name Description
index int
value TestFailure
Returns
Type Description
UrlMapValidationResult.Builder

addTestFailures(int index, TestFailure.Builder builderForValue)

public UrlMapValidationResult.Builder addTestFailures(int index, TestFailure.Builder builderForValue)

repeated .google.cloud.compute.v1.TestFailure test_failures = 505934134;

Parameters
Name Description
index int
builderForValue TestFailure.Builder
Returns
Type Description
UrlMapValidationResult.Builder

addTestFailuresBuilder()

public TestFailure.Builder addTestFailuresBuilder()

repeated .google.cloud.compute.v1.TestFailure test_failures = 505934134;

Returns
Type Description
TestFailure.Builder

addTestFailuresBuilder(int index)

public TestFailure.Builder addTestFailuresBuilder(int index)

repeated .google.cloud.compute.v1.TestFailure test_failures = 505934134;

Parameter
Name Description
index int
Returns
Type Description
TestFailure.Builder

build()

public UrlMapValidationResult build()
Returns
Type Description
UrlMapValidationResult

buildPartial()

public UrlMapValidationResult buildPartial()
Returns
Type Description
UrlMapValidationResult

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLoadErrors()

public UrlMapValidationResult.Builder clearLoadErrors()

repeated string load_errors = 310147300;

Returns
Type Description
UrlMapValidationResult.Builder

This builder for chaining.

clearLoadSucceeded()

public UrlMapValidationResult.Builder clearLoadSucceeded()

Whether the given UrlMap can be successfully loaded. If false, 'loadErrors' indicates the reasons.

optional bool load_succeeded = 128326216;

Returns
Type Description
UrlMapValidationResult.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTestFailures()

public UrlMapValidationResult.Builder clearTestFailures()

repeated .google.cloud.compute.v1.TestFailure test_failures = 505934134;

Returns
Type Description
UrlMapValidationResult.Builder

clearTestPassed()

public UrlMapValidationResult.Builder clearTestPassed()

If successfully loaded, this field indicates whether the test passed. If false, 'testFailures's indicate the reason of failure.

optional bool test_passed = 192708797;

Returns
Type Description
UrlMapValidationResult.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public UrlMapValidationResult getDefaultInstanceForType()
Returns
Type Description
UrlMapValidationResult

getDescriptorForType()

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

getLoadErrors(int index)

public String getLoadErrors(int index)

repeated string load_errors = 310147300;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The loadErrors at the given index.

getLoadErrorsBytes(int index)

public ByteString getLoadErrorsBytes(int index)

repeated string load_errors = 310147300;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the loadErrors at the given index.

getLoadErrorsCount()

public int getLoadErrorsCount()

repeated string load_errors = 310147300;

Returns
Type Description
int

The count of loadErrors.

getLoadErrorsList()

public ProtocolStringList getLoadErrorsList()

repeated string load_errors = 310147300;

Returns
Type Description
ProtocolStringList

A list containing the loadErrors.

getLoadSucceeded()

public boolean getLoadSucceeded()

Whether the given UrlMap can be successfully loaded. If false, 'loadErrors' indicates the reasons.

optional bool load_succeeded = 128326216;

Returns
Type Description
boolean

The loadSucceeded.

getTestFailures(int index)

public TestFailure getTestFailures(int index)

repeated .google.cloud.compute.v1.TestFailure test_failures = 505934134;

Parameter
Name Description
index int
Returns
Type Description
TestFailure

getTestFailuresBuilder(int index)

public TestFailure.Builder getTestFailuresBuilder(int index)

repeated .google.cloud.compute.v1.TestFailure test_failures = 505934134;

Parameter
Name Description
index int
Returns
Type Description
TestFailure.Builder

getTestFailuresBuilderList()

public List<TestFailure.Builder> getTestFailuresBuilderList()

repeated .google.cloud.compute.v1.TestFailure test_failures = 505934134;

Returns
Type Description
List<Builder>

getTestFailuresCount()

public int getTestFailuresCount()

repeated .google.cloud.compute.v1.TestFailure test_failures = 505934134;

Returns
Type Description
int

getTestFailuresList()

public List<TestFailure> getTestFailuresList()

repeated .google.cloud.compute.v1.TestFailure test_failures = 505934134;

Returns
Type Description
List<TestFailure>

getTestFailuresOrBuilder(int index)

public TestFailureOrBuilder getTestFailuresOrBuilder(int index)

repeated .google.cloud.compute.v1.TestFailure test_failures = 505934134;

Parameter
Name Description
index int
Returns
Type Description
TestFailureOrBuilder

getTestFailuresOrBuilderList()

public List<? extends TestFailureOrBuilder> getTestFailuresOrBuilderList()

repeated .google.cloud.compute.v1.TestFailure test_failures = 505934134;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.TestFailureOrBuilder>

getTestPassed()

public boolean getTestPassed()

If successfully loaded, this field indicates whether the test passed. If false, 'testFailures's indicate the reason of failure.

optional bool test_passed = 192708797;

Returns
Type Description
boolean

The testPassed.

hasLoadSucceeded()

public boolean hasLoadSucceeded()

Whether the given UrlMap can be successfully loaded. If false, 'loadErrors' indicates the reasons.

optional bool load_succeeded = 128326216;

Returns
Type Description
boolean

Whether the loadSucceeded field is set.

hasTestPassed()

public boolean hasTestPassed()

If successfully loaded, this field indicates whether the test passed. If false, 'testFailures's indicate the reason of failure.

optional bool test_passed = 192708797;

Returns
Type Description
boolean

Whether the testPassed field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UrlMapValidationResult other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeTestFailures(int index)

public UrlMapValidationResult.Builder removeTestFailures(int index)

repeated .google.cloud.compute.v1.TestFailure test_failures = 505934134;

Parameter
Name Description
index int
Returns
Type Description
UrlMapValidationResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLoadErrors(int index, String value)

public UrlMapValidationResult.Builder setLoadErrors(int index, String value)

repeated string load_errors = 310147300;

Parameters
Name Description
index int

The index to set the value at.

value String

The loadErrors to set.

Returns
Type Description
UrlMapValidationResult.Builder

This builder for chaining.

setLoadSucceeded(boolean value)

public UrlMapValidationResult.Builder setLoadSucceeded(boolean value)

Whether the given UrlMap can be successfully loaded. If false, 'loadErrors' indicates the reasons.

optional bool load_succeeded = 128326216;

Parameter
Name Description
value boolean

The loadSucceeded to set.

Returns
Type Description
UrlMapValidationResult.Builder

This builder for chaining.

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

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

setTestFailures(int index, TestFailure value)

public UrlMapValidationResult.Builder setTestFailures(int index, TestFailure value)

repeated .google.cloud.compute.v1.TestFailure test_failures = 505934134;

Parameters
Name Description
index int
value TestFailure
Returns
Type Description
UrlMapValidationResult.Builder

setTestFailures(int index, TestFailure.Builder builderForValue)

public UrlMapValidationResult.Builder setTestFailures(int index, TestFailure.Builder builderForValue)

repeated .google.cloud.compute.v1.TestFailure test_failures = 505934134;

Parameters
Name Description
index int
builderForValue TestFailure.Builder
Returns
Type Description
UrlMapValidationResult.Builder

setTestPassed(boolean value)

public UrlMapValidationResult.Builder setTestPassed(boolean value)

If successfully loaded, this field indicates whether the test passed. If false, 'testFailures's indicate the reason of failure.

optional bool test_passed = 192708797;

Parameter
Name Description
value boolean

The testPassed to set.

Returns
Type Description
UrlMapValidationResult.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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