Class TestFailure.Builder (1.12.1)

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

addHeadersBuilder()

public UrlMapTestHeader.Builder addHeadersBuilder()

HTTP headers of the request.

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TestFailure build()
Returns
TypeDescription
TestFailure

buildPartial()

public TestFailure buildPartial()
Returns
TypeDescription
TestFailure

clear()

public TestFailure.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
TestFailure.Builder

This builder for chaining.

clearActualService()

public TestFailure.Builder clearActualService()

BackendService or BackendBucket returned by load balancer.

optional string actual_service = 440379652;

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearHeaders()

public TestFailure.Builder clearHeaders()

HTTP headers of the request.

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

Returns
TypeDescription
TestFailure.Builder

clearHost()

public TestFailure.Builder clearHost()

Host portion of the URL.

optional string host = 3208616;

Returns
TypeDescription
TestFailure.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPath()

public TestFailure.Builder clearPath()

Path portion including query parameters in the URL.

optional string path = 3433509;

Returns
TypeDescription
TestFailure.Builder

This builder for chaining.

clone()

public TestFailure.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
int

The actualRedirectResponseCode.

getActualService()

public String getActualService()

BackendService or BackendBucket returned by load balancer.

optional string actual_service = 440379652;

Returns
TypeDescription
String

The actualService.

getActualServiceBytes()

public ByteString getActualServiceBytes()

BackendService or BackendBucket returned by load balancer.

optional string actual_service = 440379652;

Returns
TypeDescription
ByteString

The bytes for actualService.

getDefaultInstanceForType()

public TestFailure getDefaultInstanceForType()
Returns
TypeDescription
TestFailure

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
UrlMapTestHeader

getHeadersBuilder(int index)

public UrlMapTestHeader.Builder getHeadersBuilder(int index)

HTTP headers of the request.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
UrlMapTestHeader.Builder

getHeadersBuilderList()

public List<UrlMapTestHeader.Builder> getHeadersBuilderList()

HTTP headers of the request.

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

Returns
TypeDescription
List<Builder>

getHeadersCount()

public int getHeadersCount()

HTTP headers of the request.

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

Returns
TypeDescription
int

getHeadersList()

public List<UrlMapTestHeader> getHeadersList()

HTTP headers of the request.

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

Returns
TypeDescription
List<UrlMapTestHeader>

getHeadersOrBuilder(int index)

public UrlMapTestHeaderOrBuilder getHeadersOrBuilder(int index)

HTTP headers of the request.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
UrlMapTestHeaderOrBuilder

getHeadersOrBuilderList()

public List<? extends UrlMapTestHeaderOrBuilder> getHeadersOrBuilderList()

HTTP headers of the request.

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

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

getHost()

public String getHost()

Host portion of the URL.

optional string host = 3208616;

Returns
TypeDescription
String

The host.

getHostBytes()

public ByteString getHostBytes()

Host portion of the URL.

optional string host = 3208616;

Returns
TypeDescription
ByteString

The bytes for host.

getPath()

public String getPath()

Path portion including query parameters in the URL.

optional string path = 3433509;

Returns
TypeDescription
String

The path.

getPathBytes()

public ByteString getPathBytes()

Path portion including query parameters in the URL.

optional string path = 3433509;

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

Whether the actualRedirectResponseCode field is set.

hasActualService()

public boolean hasActualService()

BackendService or BackendBucket returned by load balancer.

optional string actual_service = 440379652;

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

Whether the expectedService field is set.

hasHost()

public boolean hasHost()

Host portion of the URL.

optional string host = 3208616;

Returns
TypeDescription
boolean

Whether the host field is set.

hasPath()

public boolean hasPath()

Path portion including query parameters in the URL.

optional string path = 3433509;

Returns
TypeDescription
boolean

Whether the path field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TestFailure other)

public TestFailure.Builder mergeFrom(TestFailure other)
Parameter
NameDescription
otherTestFailure
Returns
TypeDescription
TestFailure.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The actualOutputUrl to set.

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

The bytes for actualOutputUrl to set.

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

The actualRedirectResponseCode to set.

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

The actualService to set.

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

The bytes for actualService to set.

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

The expectedOutputUrl to set.

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

The bytes for expectedOutputUrl to set.

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

The expectedRedirectResponseCode to set.

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

The expectedService to set.

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

The bytes for expectedService to set.

Returns
TypeDescription
TestFailure.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setHost(String value)

public TestFailure.Builder setHost(String value)

Host portion of the URL.

optional string host = 3208616;

Parameter
NameDescription
valueString

The host to set.

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

The bytes for host to set.

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

The path to set.

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

The bytes for path to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TestFailure.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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