Class TestFailure.Builder (1.55.0)

public static final class TestFailure.Builder extends GeneratedMessageV3.Builder<TestFailure.Builder> implements TestFailureOrBuilder

Protobuf type google.cloud.compute.v1.TestFailure

Static Methods

getDescriptor()

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

Methods

addAllHeaders(Iterable<? extends UrlMapTestHeader> values)

public TestFailure.Builder addAllHeaders(Iterable<? extends UrlMapTestHeader> values)

HTTP headers of the request.

repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;

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

addHeaders(UrlMapTestHeader value)

public TestFailure.Builder addHeaders(UrlMapTestHeader value)

HTTP headers of the request.

repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;

Parameter
Name Description
value UrlMapTestHeader
Returns
Type Description
TestFailure.Builder

addHeaders(UrlMapTestHeader.Builder builderForValue)

public TestFailure.Builder addHeaders(UrlMapTestHeader.Builder builderForValue)

HTTP headers of the request.

repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;

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

addHeaders(int index, UrlMapTestHeader value)

public TestFailure.Builder addHeaders(int index, UrlMapTestHeader value)

HTTP headers of the request.

repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;

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

addHeaders(int index, UrlMapTestHeader.Builder builderForValue)

public TestFailure.Builder addHeaders(int index, UrlMapTestHeader.Builder builderForValue)

HTTP headers of the request.

repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;

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

addHeadersBuilder()

public UrlMapTestHeader.Builder addHeadersBuilder()

HTTP headers of the request.

repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;

Returns
Type Description
UrlMapTestHeader.Builder

addHeadersBuilder(int index)

public UrlMapTestHeader.Builder addHeadersBuilder(int index)

HTTP headers of the request.

repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;

Parameter
Name Description
index int
Returns
Type Description
UrlMapTestHeader.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TestFailure build()
Returns
Type Description
TestFailure

buildPartial()

public TestFailure buildPartial()
Returns
Type Description
TestFailure

clear()

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

clearActualOutputUrl()

public TestFailure.Builder clearActualOutputUrl()

The actual output URL evaluated by a load balancer containing the scheme, host, path and query parameters.

optional string actual_output_url = 287075458;

Returns
Type Description
TestFailure.Builder

This builder for chaining.

clearActualRedirectResponseCode()

public TestFailure.Builder clearActualRedirectResponseCode()

Actual HTTP status code for rule with urlRedirect calculated by load balancer

optional int32 actual_redirect_response_code = 42926553;

Returns
Type Description
TestFailure.Builder

This builder for chaining.

clearActualService()

public TestFailure.Builder clearActualService()

BackendService or BackendBucket returned by load balancer.

optional string actual_service = 440379652;

Returns
Type Description
TestFailure.Builder

This builder for chaining.

clearExpectedOutputUrl()

public TestFailure.Builder clearExpectedOutputUrl()

The expected output URL evaluated by a load balancer containing the scheme, host, path and query parameters.

optional string expected_output_url = 433967384;

Returns
Type Description
TestFailure.Builder

This builder for chaining.

clearExpectedRedirectResponseCode()

public TestFailure.Builder clearExpectedRedirectResponseCode()

Expected HTTP status code for rule with urlRedirect calculated by load balancer

optional int32 expected_redirect_response_code = 18888047;

Returns
Type Description
TestFailure.Builder

This builder for chaining.

clearExpectedService()

public TestFailure.Builder clearExpectedService()

Expected BackendService or BackendBucket resource the given URL should be mapped to.

optional string expected_service = 133987374;

Returns
Type Description
TestFailure.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearHeaders()

public TestFailure.Builder clearHeaders()

HTTP headers of the request.

repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;

Returns
Type Description
TestFailure.Builder

clearHost()

public TestFailure.Builder clearHost()

Host portion of the URL.

optional string host = 3208616;

Returns
Type Description
TestFailure.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPath()

public TestFailure.Builder clearPath()

Path portion including query parameters in the URL.

optional string path = 3433509;

Returns
Type Description
TestFailure.Builder

This builder for chaining.

clone()

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

getActualOutputUrl()

public String getActualOutputUrl()

The actual output URL evaluated by a load balancer containing the scheme, host, path and query parameters.

optional string actual_output_url = 287075458;

Returns
Type Description
String

The actualOutputUrl.

getActualOutputUrlBytes()

public ByteString getActualOutputUrlBytes()

The actual output URL evaluated by a load balancer containing the scheme, host, path and query parameters.

optional string actual_output_url = 287075458;

Returns
Type Description
ByteString

The bytes for actualOutputUrl.

getActualRedirectResponseCode()

public int getActualRedirectResponseCode()

Actual HTTP status code for rule with urlRedirect calculated by load balancer

optional int32 actual_redirect_response_code = 42926553;

Returns
Type Description
int

The actualRedirectResponseCode.

getActualService()

public String getActualService()

BackendService or BackendBucket returned by load balancer.

optional string actual_service = 440379652;

Returns
Type Description
String

The actualService.

getActualServiceBytes()

public ByteString getActualServiceBytes()

BackendService or BackendBucket returned by load balancer.

optional string actual_service = 440379652;

Returns
Type Description
ByteString

The bytes for actualService.

getDefaultInstanceForType()

public TestFailure getDefaultInstanceForType()
Returns
Type Description
TestFailure

getDescriptorForType()

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

getExpectedOutputUrl()

public String getExpectedOutputUrl()

The expected output URL evaluated by a load balancer containing the scheme, host, path and query parameters.

optional string expected_output_url = 433967384;

Returns
Type Description
String

The expectedOutputUrl.

getExpectedOutputUrlBytes()

public ByteString getExpectedOutputUrlBytes()

The expected output URL evaluated by a load balancer containing the scheme, host, path and query parameters.

optional string expected_output_url = 433967384;

Returns
Type Description
ByteString

The bytes for expectedOutputUrl.

getExpectedRedirectResponseCode()

public int getExpectedRedirectResponseCode()

Expected HTTP status code for rule with urlRedirect calculated by load balancer

optional int32 expected_redirect_response_code = 18888047;

Returns
Type Description
int

The expectedRedirectResponseCode.

getExpectedService()

public String getExpectedService()

Expected BackendService or BackendBucket resource the given URL should be mapped to.

optional string expected_service = 133987374;

Returns
Type Description
String

The expectedService.

getExpectedServiceBytes()

public ByteString getExpectedServiceBytes()

Expected BackendService or BackendBucket resource the given URL should be mapped to.

optional string expected_service = 133987374;

Returns
Type Description
ByteString

The bytes for expectedService.

getHeaders(int index)

public UrlMapTestHeader getHeaders(int index)

HTTP headers of the request.

repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;

Parameter
Name Description
index int
Returns
Type Description
UrlMapTestHeader

getHeadersBuilder(int index)

public UrlMapTestHeader.Builder getHeadersBuilder(int index)

HTTP headers of the request.

repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;

Parameter
Name Description
index int
Returns
Type Description
UrlMapTestHeader.Builder

getHeadersBuilderList()

public List<UrlMapTestHeader.Builder> getHeadersBuilderList()

HTTP headers of the request.

repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;

Returns
Type Description
List<Builder>

getHeadersCount()

public int getHeadersCount()

HTTP headers of the request.

repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;

Returns
Type Description
int

getHeadersList()

public List<UrlMapTestHeader> getHeadersList()

HTTP headers of the request.

repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;

Returns
Type Description
List<UrlMapTestHeader>

getHeadersOrBuilder(int index)

public UrlMapTestHeaderOrBuilder getHeadersOrBuilder(int index)

HTTP headers of the request.

repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;

Parameter
Name Description
index int
Returns
Type Description
UrlMapTestHeaderOrBuilder

getHeadersOrBuilderList()

public List<? extends UrlMapTestHeaderOrBuilder> getHeadersOrBuilderList()

HTTP headers of the request.

repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;

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

getHost()

public String getHost()

Host portion of the URL.

optional string host = 3208616;

Returns
Type Description
String

The host.

getHostBytes()

public ByteString getHostBytes()

Host portion of the URL.

optional string host = 3208616;

Returns
Type Description
ByteString

The bytes for host.

getPath()

public String getPath()

Path portion including query parameters in the URL.

optional string path = 3433509;

Returns
Type Description
String

The path.

getPathBytes()

public ByteString getPathBytes()

Path portion including query parameters in the URL.

optional string path = 3433509;

Returns
Type Description
ByteString

The bytes for path.

hasActualOutputUrl()

public boolean hasActualOutputUrl()

The actual output URL evaluated by a load balancer containing the scheme, host, path and query parameters.

optional string actual_output_url = 287075458;

Returns
Type Description
boolean

Whether the actualOutputUrl field is set.

hasActualRedirectResponseCode()

public boolean hasActualRedirectResponseCode()

Actual HTTP status code for rule with urlRedirect calculated by load balancer

optional int32 actual_redirect_response_code = 42926553;

Returns
Type Description
boolean

Whether the actualRedirectResponseCode field is set.

hasActualService()

public boolean hasActualService()

BackendService or BackendBucket returned by load balancer.

optional string actual_service = 440379652;

Returns
Type Description
boolean

Whether the actualService field is set.

hasExpectedOutputUrl()

public boolean hasExpectedOutputUrl()

The expected output URL evaluated by a load balancer containing the scheme, host, path and query parameters.

optional string expected_output_url = 433967384;

Returns
Type Description
boolean

Whether the expectedOutputUrl field is set.

hasExpectedRedirectResponseCode()

public boolean hasExpectedRedirectResponseCode()

Expected HTTP status code for rule with urlRedirect calculated by load balancer

optional int32 expected_redirect_response_code = 18888047;

Returns
Type Description
boolean

Whether the expectedRedirectResponseCode field is set.

hasExpectedService()

public boolean hasExpectedService()

Expected BackendService or BackendBucket resource the given URL should be mapped to.

optional string expected_service = 133987374;

Returns
Type Description
boolean

Whether the expectedService field is set.

hasHost()

public boolean hasHost()

Host portion of the URL.

optional string host = 3208616;

Returns
Type Description
boolean

Whether the host field is set.

hasPath()

public boolean hasPath()

Path portion including query parameters in the URL.

optional string path = 3433509;

Returns
Type Description
boolean

Whether the path field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TestFailure other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeHeaders(int index)

public TestFailure.Builder removeHeaders(int index)

HTTP headers of the request.

repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;

Parameter
Name Description
index int
Returns
Type Description
TestFailure.Builder

setActualOutputUrl(String value)

public TestFailure.Builder setActualOutputUrl(String value)

The actual output URL evaluated by a load balancer containing the scheme, host, path and query parameters.

optional string actual_output_url = 287075458;

Parameter
Name Description
value String

The actualOutputUrl to set.

Returns
Type Description
TestFailure.Builder

This builder for chaining.

setActualOutputUrlBytes(ByteString value)

public TestFailure.Builder setActualOutputUrlBytes(ByteString value)

The actual output URL evaluated by a load balancer containing the scheme, host, path and query parameters.

optional string actual_output_url = 287075458;

Parameter
Name Description
value ByteString

The bytes for actualOutputUrl to set.

Returns
Type Description
TestFailure.Builder

This builder for chaining.

setActualRedirectResponseCode(int value)

public TestFailure.Builder setActualRedirectResponseCode(int value)

Actual HTTP status code for rule with urlRedirect calculated by load balancer

optional int32 actual_redirect_response_code = 42926553;

Parameter
Name Description
value int

The actualRedirectResponseCode to set.

Returns
Type Description
TestFailure.Builder

This builder for chaining.

setActualService(String value)

public TestFailure.Builder setActualService(String value)

BackendService or BackendBucket returned by load balancer.

optional string actual_service = 440379652;

Parameter
Name Description
value String

The actualService to set.

Returns
Type Description
TestFailure.Builder

This builder for chaining.

setActualServiceBytes(ByteString value)

public TestFailure.Builder setActualServiceBytes(ByteString value)

BackendService or BackendBucket returned by load balancer.

optional string actual_service = 440379652;

Parameter
Name Description
value ByteString

The bytes for actualService to set.

Returns
Type Description
TestFailure.Builder

This builder for chaining.

setExpectedOutputUrl(String value)

public TestFailure.Builder setExpectedOutputUrl(String value)

The expected output URL evaluated by a load balancer containing the scheme, host, path and query parameters.

optional string expected_output_url = 433967384;

Parameter
Name Description
value String

The expectedOutputUrl to set.

Returns
Type Description
TestFailure.Builder

This builder for chaining.

setExpectedOutputUrlBytes(ByteString value)

public TestFailure.Builder setExpectedOutputUrlBytes(ByteString value)

The expected output URL evaluated by a load balancer containing the scheme, host, path and query parameters.

optional string expected_output_url = 433967384;

Parameter
Name Description
value ByteString

The bytes for expectedOutputUrl to set.

Returns
Type Description
TestFailure.Builder

This builder for chaining.

setExpectedRedirectResponseCode(int value)

public TestFailure.Builder setExpectedRedirectResponseCode(int value)

Expected HTTP status code for rule with urlRedirect calculated by load balancer

optional int32 expected_redirect_response_code = 18888047;

Parameter
Name Description
value int

The expectedRedirectResponseCode to set.

Returns
Type Description
TestFailure.Builder

This builder for chaining.

setExpectedService(String value)

public TestFailure.Builder setExpectedService(String value)

Expected BackendService or BackendBucket resource the given URL should be mapped to.

optional string expected_service = 133987374;

Parameter
Name Description
value String

The expectedService to set.

Returns
Type Description
TestFailure.Builder

This builder for chaining.

setExpectedServiceBytes(ByteString value)

public TestFailure.Builder setExpectedServiceBytes(ByteString value)

Expected BackendService or BackendBucket resource the given URL should be mapped to.

optional string expected_service = 133987374;

Parameter
Name Description
value ByteString

The bytes for expectedService to set.

Returns
Type Description
TestFailure.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setHeaders(int index, UrlMapTestHeader value)

public TestFailure.Builder setHeaders(int index, UrlMapTestHeader value)

HTTP headers of the request.

repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;

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

setHeaders(int index, UrlMapTestHeader.Builder builderForValue)

public TestFailure.Builder setHeaders(int index, UrlMapTestHeader.Builder builderForValue)

HTTP headers of the request.

repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;

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

setHost(String value)

public TestFailure.Builder setHost(String value)

Host portion of the URL.

optional string host = 3208616;

Parameter
Name Description
value String

The host to set.

Returns
Type Description
TestFailure.Builder

This builder for chaining.

setHostBytes(ByteString value)

public TestFailure.Builder setHostBytes(ByteString value)

Host portion of the URL.

optional string host = 3208616;

Parameter
Name Description
value ByteString

The bytes for host to set.

Returns
Type Description
TestFailure.Builder

This builder for chaining.

setPath(String value)

public TestFailure.Builder setPath(String value)

Path portion including query parameters in the URL.

optional string path = 3433509;

Parameter
Name Description
value String

The path to set.

Returns
Type Description
TestFailure.Builder

This builder for chaining.

setPathBytes(ByteString value)

public TestFailure.Builder setPathBytes(ByteString value)

Path portion including query parameters in the URL.

optional string path = 3433509;

Parameter
Name Description
value ByteString

The bytes for path to set.

Returns
Type Description
TestFailure.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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