Class UrlMapValidationResult.Builder (1.37.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
TypeDescription
Descriptor

Methods

addAllLoadErrors(Iterable<String> values)

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

repeated string load_errors = 310147300;

Parameter
NameDescription
valuesIterable<String>

The loadErrors to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.TestFailure>
Returns
TypeDescription
UrlMapValidationResult.Builder

addLoadErrors(String value)

public UrlMapValidationResult.Builder addLoadErrors(String value)

repeated string load_errors = 310147300;

Parameter
NameDescription
valueString

The loadErrors to add.

Returns
TypeDescription
UrlMapValidationResult.Builder

This builder for chaining.

addLoadErrorsBytes(ByteString value)

public UrlMapValidationResult.Builder addLoadErrorsBytes(ByteString value)

repeated string load_errors = 310147300;

Parameter
NameDescription
valueByteString

The bytes of the loadErrors to add.

Returns
TypeDescription
UrlMapValidationResult.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTestFailures(TestFailure value)

public UrlMapValidationResult.Builder addTestFailures(TestFailure value)

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

Parameter
NameDescription
valueTestFailure
Returns
TypeDescription
UrlMapValidationResult.Builder

addTestFailures(TestFailure.Builder builderForValue)

public UrlMapValidationResult.Builder addTestFailures(TestFailure.Builder builderForValue)

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

Parameter
NameDescription
builderForValueTestFailure.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueTestFailure
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTestFailure.Builder
Returns
TypeDescription
UrlMapValidationResult.Builder

addTestFailuresBuilder()

public TestFailure.Builder addTestFailuresBuilder()

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

Returns
TypeDescription
TestFailure.Builder

addTestFailuresBuilder(int index)

public TestFailure.Builder addTestFailuresBuilder(int index)

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TestFailure.Builder

build()

public UrlMapValidationResult build()
Returns
TypeDescription
UrlMapValidationResult

buildPartial()

public UrlMapValidationResult buildPartial()
Returns
TypeDescription
UrlMapValidationResult

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLoadErrors()

public UrlMapValidationResult.Builder clearLoadErrors()

repeated string load_errors = 310147300;

Returns
TypeDescription
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
TypeDescription
UrlMapValidationResult.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTestFailures()

public UrlMapValidationResult.Builder clearTestFailures()

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

Returns
TypeDescription
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
TypeDescription
UrlMapValidationResult.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public UrlMapValidationResult getDefaultInstanceForType()
Returns
TypeDescription
UrlMapValidationResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLoadErrors(int index)

public String getLoadErrors(int index)

repeated string load_errors = 310147300;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The loadErrors at the given index.

getLoadErrorsBytes(int index)

public ByteString getLoadErrorsBytes(int index)

repeated string load_errors = 310147300;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the loadErrors at the given index.

getLoadErrorsCount()

public int getLoadErrorsCount()

repeated string load_errors = 310147300;

Returns
TypeDescription
int

The count of loadErrors.

getLoadErrorsList()

public ProtocolStringList getLoadErrorsList()

repeated string load_errors = 310147300;

Returns
TypeDescription
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
TypeDescription
boolean

The loadSucceeded.

getTestFailures(int index)

public TestFailure getTestFailures(int index)

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TestFailure

getTestFailuresBuilder(int index)

public TestFailure.Builder getTestFailuresBuilder(int index)

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TestFailure.Builder

getTestFailuresBuilderList()

public List<TestFailure.Builder> getTestFailuresBuilderList()

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

Returns
TypeDescription
List<Builder>

getTestFailuresCount()

public int getTestFailuresCount()

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

Returns
TypeDescription
int

getTestFailuresList()

public List<TestFailure> getTestFailuresList()

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

Returns
TypeDescription
List<TestFailure>

getTestFailuresOrBuilder(int index)

public TestFailureOrBuilder getTestFailuresOrBuilder(int index)

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TestFailureOrBuilder

getTestFailuresOrBuilderList()

public List<? extends TestFailureOrBuilder> getTestFailuresOrBuilderList()

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the testPassed field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UrlMapValidationResult other)

public UrlMapValidationResult.Builder mergeFrom(UrlMapValidationResult other)
Parameter
NameDescription
otherUrlMapValidationResult
Returns
TypeDescription
UrlMapValidationResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeTestFailures(int index)

public UrlMapValidationResult.Builder removeTestFailures(int index)

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

Parameter
NameDescription
indexint
Returns
TypeDescription
UrlMapValidationResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLoadErrors(int index, String value)

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

repeated string load_errors = 310147300;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The loadErrors to set.

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

The loadSucceeded to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueTestFailure
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTestFailure.Builder
Returns
TypeDescription
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
NameDescription
valueboolean

The testPassed to set.

Returns
TypeDescription
UrlMapValidationResult.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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