Package com.google.cloud.compute.v1
Class UrlMapTest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<UrlMapTest.Builder>
-
- com.google.cloud.compute.v1.UrlMapTest.Builder
-
- All Implemented Interfaces:
UrlMapTestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- UrlMapTest
public static final class UrlMapTest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UrlMapTest.Builder> implements UrlMapTestOrBuilder
Message for the expected URL mappings.
Protobuf typegoogle.cloud.compute.v1.UrlMapTest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UrlMapTest.Builder
addAllHeaders(Iterable<? extends UrlMapTestHeader> values)
HTTP headers for this request.UrlMapTest.Builder
addHeaders(int index, UrlMapTestHeader value)
HTTP headers for this request.UrlMapTest.Builder
addHeaders(int index, UrlMapTestHeader.Builder builderForValue)
HTTP headers for this request.UrlMapTest.Builder
addHeaders(UrlMapTestHeader value)
HTTP headers for this request.UrlMapTest.Builder
addHeaders(UrlMapTestHeader.Builder builderForValue)
HTTP headers for this request.UrlMapTestHeader.Builder
addHeadersBuilder()
HTTP headers for this request.UrlMapTestHeader.Builder
addHeadersBuilder(int index)
HTTP headers for this request.UrlMapTest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
UrlMapTest
build()
UrlMapTest
buildPartial()
UrlMapTest.Builder
clear()
UrlMapTest.Builder
clearDescription()
Description of this test case.UrlMapTest.Builder
clearExpectedOutputUrl()
The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters.UrlMapTest.Builder
clearExpectedRedirectResponseCode()
For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response.UrlMapTest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
UrlMapTest.Builder
clearHeaders()
HTTP headers for this request.UrlMapTest.Builder
clearHost()
Host portion of the URL.UrlMapTest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
UrlMapTest.Builder
clearPath()
Path portion of the URL.UrlMapTest.Builder
clearService()
Expected BackendService or BackendBucket resource the given URL should be mapped to.UrlMapTest.Builder
clone()
UrlMapTest
getDefaultInstanceForType()
String
getDescription()
Description of this test case.com.google.protobuf.ByteString
getDescriptionBytes()
Description of this test case.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getExpectedOutputUrl()
The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters.com.google.protobuf.ByteString
getExpectedOutputUrlBytes()
The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters.int
getExpectedRedirectResponseCode()
For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response.UrlMapTestHeader
getHeaders(int index)
HTTP headers for this request.UrlMapTestHeader.Builder
getHeadersBuilder(int index)
HTTP headers for this request.List<UrlMapTestHeader.Builder>
getHeadersBuilderList()
HTTP headers for this request.int
getHeadersCount()
HTTP headers for this request.List<UrlMapTestHeader>
getHeadersList()
HTTP headers for this request.UrlMapTestHeaderOrBuilder
getHeadersOrBuilder(int index)
HTTP headers for this request.List<? extends UrlMapTestHeaderOrBuilder>
getHeadersOrBuilderList()
HTTP headers for this request.String
getHost()
Host portion of the URL.com.google.protobuf.ByteString
getHostBytes()
Host portion of the URL.String
getPath()
Path portion of the URL.com.google.protobuf.ByteString
getPathBytes()
Path portion of the URL.String
getService()
Expected BackendService or BackendBucket resource the given URL should be mapped to.com.google.protobuf.ByteString
getServiceBytes()
Expected BackendService or BackendBucket resource the given URL should be mapped to.boolean
hasDescription()
Description of this test case.boolean
hasExpectedOutputUrl()
The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters.boolean
hasExpectedRedirectResponseCode()
For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response.boolean
hasHost()
Host portion of the URL.boolean
hasPath()
Path portion of the URL.boolean
hasService()
Expected BackendService or BackendBucket resource the given URL should be mapped to.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
UrlMapTest.Builder
mergeFrom(UrlMapTest other)
UrlMapTest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
UrlMapTest.Builder
mergeFrom(com.google.protobuf.Message other)
UrlMapTest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
UrlMapTest.Builder
removeHeaders(int index)
HTTP headers for this request.UrlMapTest.Builder
setDescription(String value)
Description of this test case.UrlMapTest.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
Description of this test case.UrlMapTest.Builder
setExpectedOutputUrl(String value)
The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters.UrlMapTest.Builder
setExpectedOutputUrlBytes(com.google.protobuf.ByteString value)
The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters.UrlMapTest.Builder
setExpectedRedirectResponseCode(int value)
For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response.UrlMapTest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
UrlMapTest.Builder
setHeaders(int index, UrlMapTestHeader value)
HTTP headers for this request.UrlMapTest.Builder
setHeaders(int index, UrlMapTestHeader.Builder builderForValue)
HTTP headers for this request.UrlMapTest.Builder
setHost(String value)
Host portion of the URL.UrlMapTest.Builder
setHostBytes(com.google.protobuf.ByteString value)
Host portion of the URL.UrlMapTest.Builder
setPath(String value)
Path portion of the URL.UrlMapTest.Builder
setPathBytes(com.google.protobuf.ByteString value)
Path portion of the URL.UrlMapTest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
UrlMapTest.Builder
setService(String value)
Expected BackendService or BackendBucket resource the given URL should be mapped to.UrlMapTest.Builder
setServiceBytes(com.google.protobuf.ByteString value)
Expected BackendService or BackendBucket resource the given URL should be mapped to.UrlMapTest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<UrlMapTest.Builder>
-
clear
public UrlMapTest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<UrlMapTest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<UrlMapTest.Builder>
-
getDefaultInstanceForType
public UrlMapTest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public UrlMapTest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public UrlMapTest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public UrlMapTest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<UrlMapTest.Builder>
-
setField
public UrlMapTest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UrlMapTest.Builder>
-
clearField
public UrlMapTest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UrlMapTest.Builder>
-
clearOneof
public UrlMapTest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<UrlMapTest.Builder>
-
setRepeatedField
public UrlMapTest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UrlMapTest.Builder>
-
addRepeatedField
public UrlMapTest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UrlMapTest.Builder>
-
mergeFrom
public UrlMapTest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<UrlMapTest.Builder>
-
mergeFrom
public UrlMapTest.Builder mergeFrom(UrlMapTest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<UrlMapTest.Builder>
-
mergeFrom
public UrlMapTest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<UrlMapTest.Builder>
- Throws:
IOException
-
hasDescription
public boolean hasDescription()
Description of this test case.
optional string description = 422937596;
- Specified by:
hasDescription
in interfaceUrlMapTestOrBuilder
- Returns:
- Whether the description field is set.
-
getDescription
public String getDescription()
Description of this test case.
optional string description = 422937596;
- Specified by:
getDescription
in interfaceUrlMapTestOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Description of this test case.
optional string description = 422937596;
- Specified by:
getDescriptionBytes
in interfaceUrlMapTestOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public UrlMapTest.Builder setDescription(String value)
Description of this test case.
optional string description = 422937596;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public UrlMapTest.Builder clearDescription()
Description of this test case.
optional string description = 422937596;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
public UrlMapTest.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Description of this test case.
optional string description = 422937596;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasExpectedOutputUrl
public boolean hasExpectedOutputUrl()
The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only when expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only if expectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifies https_redirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional when service is specified.
optional string expected_output_url = 433967384;
- Specified by:
hasExpectedOutputUrl
in interfaceUrlMapTestOrBuilder
- Returns:
- Whether the expectedOutputUrl field is set.
-
getExpectedOutputUrl
public String getExpectedOutputUrl()
The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only when expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only if expectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifies https_redirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional when service is specified.
optional string expected_output_url = 433967384;
- Specified by:
getExpectedOutputUrl
in interfaceUrlMapTestOrBuilder
- Returns:
- The expectedOutputUrl.
-
getExpectedOutputUrlBytes
public com.google.protobuf.ByteString getExpectedOutputUrlBytes()
The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only when expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only if expectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifies https_redirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional when service is specified.
optional string expected_output_url = 433967384;
- Specified by:
getExpectedOutputUrlBytes
in interfaceUrlMapTestOrBuilder
- Returns:
- The bytes for expectedOutputUrl.
-
setExpectedOutputUrl
public UrlMapTest.Builder setExpectedOutputUrl(String value)
The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only when expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only if expectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifies https_redirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional when service is specified.
optional string expected_output_url = 433967384;
- Parameters:
value
- The expectedOutputUrl to set.- Returns:
- This builder for chaining.
-
clearExpectedOutputUrl
public UrlMapTest.Builder clearExpectedOutputUrl()
The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only when expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only if expectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifies https_redirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional when service is specified.
optional string expected_output_url = 433967384;
- Returns:
- This builder for chaining.
-
setExpectedOutputUrlBytes
public UrlMapTest.Builder setExpectedOutputUrlBytes(com.google.protobuf.ByteString value)
The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only when expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only if expectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifies https_redirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional when service is specified.
optional string expected_output_url = 433967384;
- Parameters:
value
- The bytes for expectedOutputUrl to set.- Returns:
- This builder for chaining.
-
hasExpectedRedirectResponseCode
public boolean hasExpectedRedirectResponseCode()
For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response. expectedRedirectResponseCode cannot be set when service is set.
optional int32 expected_redirect_response_code = 18888047;
- Specified by:
hasExpectedRedirectResponseCode
in interfaceUrlMapTestOrBuilder
- Returns:
- Whether the expectedRedirectResponseCode field is set.
-
getExpectedRedirectResponseCode
public int getExpectedRedirectResponseCode()
For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response. expectedRedirectResponseCode cannot be set when service is set.
optional int32 expected_redirect_response_code = 18888047;
- Specified by:
getExpectedRedirectResponseCode
in interfaceUrlMapTestOrBuilder
- Returns:
- The expectedRedirectResponseCode.
-
setExpectedRedirectResponseCode
public UrlMapTest.Builder setExpectedRedirectResponseCode(int value)
For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response. expectedRedirectResponseCode cannot be set when service is set.
optional int32 expected_redirect_response_code = 18888047;
- Parameters:
value
- The expectedRedirectResponseCode to set.- Returns:
- This builder for chaining.
-
clearExpectedRedirectResponseCode
public UrlMapTest.Builder clearExpectedRedirectResponseCode()
For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response. expectedRedirectResponseCode cannot be set when service is set.
optional int32 expected_redirect_response_code = 18888047;
- Returns:
- This builder for chaining.
-
getHeadersList
public List<UrlMapTestHeader> getHeadersList()
HTTP headers for this request. If headers contains a host header, then host must also match the header value.
repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
- Specified by:
getHeadersList
in interfaceUrlMapTestOrBuilder
-
getHeadersCount
public int getHeadersCount()
HTTP headers for this request. If headers contains a host header, then host must also match the header value.
repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
- Specified by:
getHeadersCount
in interfaceUrlMapTestOrBuilder
-
getHeaders
public UrlMapTestHeader getHeaders(int index)
HTTP headers for this request. If headers contains a host header, then host must also match the header value.
repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
- Specified by:
getHeaders
in interfaceUrlMapTestOrBuilder
-
setHeaders
public UrlMapTest.Builder setHeaders(int index, UrlMapTestHeader value)
HTTP headers for this request. If headers contains a host header, then host must also match the header value.
repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
-
setHeaders
public UrlMapTest.Builder setHeaders(int index, UrlMapTestHeader.Builder builderForValue)
HTTP headers for this request. If headers contains a host header, then host must also match the header value.
repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
-
addHeaders
public UrlMapTest.Builder addHeaders(UrlMapTestHeader value)
HTTP headers for this request. If headers contains a host header, then host must also match the header value.
repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
-
addHeaders
public UrlMapTest.Builder addHeaders(int index, UrlMapTestHeader value)
HTTP headers for this request. If headers contains a host header, then host must also match the header value.
repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
-
addHeaders
public UrlMapTest.Builder addHeaders(UrlMapTestHeader.Builder builderForValue)
HTTP headers for this request. If headers contains a host header, then host must also match the header value.
repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
-
addHeaders
public UrlMapTest.Builder addHeaders(int index, UrlMapTestHeader.Builder builderForValue)
HTTP headers for this request. If headers contains a host header, then host must also match the header value.
repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
-
addAllHeaders
public UrlMapTest.Builder addAllHeaders(Iterable<? extends UrlMapTestHeader> values)
HTTP headers for this request. If headers contains a host header, then host must also match the header value.
repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
-
clearHeaders
public UrlMapTest.Builder clearHeaders()
HTTP headers for this request. If headers contains a host header, then host must also match the header value.
repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
-
removeHeaders
public UrlMapTest.Builder removeHeaders(int index)
HTTP headers for this request. If headers contains a host header, then host must also match the header value.
repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
-
getHeadersBuilder
public UrlMapTestHeader.Builder getHeadersBuilder(int index)
HTTP headers for this request. If headers contains a host header, then host must also match the header value.
repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
-
getHeadersOrBuilder
public UrlMapTestHeaderOrBuilder getHeadersOrBuilder(int index)
HTTP headers for this request. If headers contains a host header, then host must also match the header value.
repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
- Specified by:
getHeadersOrBuilder
in interfaceUrlMapTestOrBuilder
-
getHeadersOrBuilderList
public List<? extends UrlMapTestHeaderOrBuilder> getHeadersOrBuilderList()
HTTP headers for this request. If headers contains a host header, then host must also match the header value.
repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
- Specified by:
getHeadersOrBuilderList
in interfaceUrlMapTestOrBuilder
-
addHeadersBuilder
public UrlMapTestHeader.Builder addHeadersBuilder()
HTTP headers for this request. If headers contains a host header, then host must also match the header value.
repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
-
addHeadersBuilder
public UrlMapTestHeader.Builder addHeadersBuilder(int index)
HTTP headers for this request. If headers contains a host header, then host must also match the header value.
repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
-
getHeadersBuilderList
public List<UrlMapTestHeader.Builder> getHeadersBuilderList()
HTTP headers for this request. If headers contains a host header, then host must also match the header value.
repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
-
hasHost
public boolean hasHost()
Host portion of the URL. If headers contains a host header, then host must also match the header value.
optional string host = 3208616;
- Specified by:
hasHost
in interfaceUrlMapTestOrBuilder
- Returns:
- Whether the host field is set.
-
getHost
public String getHost()
Host portion of the URL. If headers contains a host header, then host must also match the header value.
optional string host = 3208616;
- Specified by:
getHost
in interfaceUrlMapTestOrBuilder
- Returns:
- The host.
-
getHostBytes
public com.google.protobuf.ByteString getHostBytes()
Host portion of the URL. If headers contains a host header, then host must also match the header value.
optional string host = 3208616;
- Specified by:
getHostBytes
in interfaceUrlMapTestOrBuilder
- Returns:
- The bytes for host.
-
setHost
public UrlMapTest.Builder setHost(String value)
Host portion of the URL. If headers contains a host header, then host must also match the header value.
optional string host = 3208616;
- Parameters:
value
- The host to set.- Returns:
- This builder for chaining.
-
clearHost
public UrlMapTest.Builder clearHost()
Host portion of the URL. If headers contains a host header, then host must also match the header value.
optional string host = 3208616;
- Returns:
- This builder for chaining.
-
setHostBytes
public UrlMapTest.Builder setHostBytes(com.google.protobuf.ByteString value)
Host portion of the URL. If headers contains a host header, then host must also match the header value.
optional string host = 3208616;
- Parameters:
value
- The bytes for host to set.- Returns:
- This builder for chaining.
-
hasPath
public boolean hasPath()
Path portion of the URL.
optional string path = 3433509;
- Specified by:
hasPath
in interfaceUrlMapTestOrBuilder
- Returns:
- Whether the path field is set.
-
getPath
public String getPath()
Path portion of the URL.
optional string path = 3433509;
- Specified by:
getPath
in interfaceUrlMapTestOrBuilder
- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()
Path portion of the URL.
optional string path = 3433509;
- Specified by:
getPathBytes
in interfaceUrlMapTestOrBuilder
- Returns:
- The bytes for path.
-
setPath
public UrlMapTest.Builder setPath(String value)
Path portion of the URL.
optional string path = 3433509;
- Parameters:
value
- The path to set.- Returns:
- This builder for chaining.
-
clearPath
public UrlMapTest.Builder clearPath()
Path portion of the URL.
optional string path = 3433509;
- Returns:
- This builder for chaining.
-
setPathBytes
public UrlMapTest.Builder setPathBytes(com.google.protobuf.ByteString value)
Path portion of the URL.
optional string path = 3433509;
- Parameters:
value
- The bytes for path to set.- Returns:
- This builder for chaining.
-
hasService
public boolean hasService()
Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.
optional string service = 373540533;
- Specified by:
hasService
in interfaceUrlMapTestOrBuilder
- Returns:
- Whether the service field is set.
-
getService
public String getService()
Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.
optional string service = 373540533;
- Specified by:
getService
in interfaceUrlMapTestOrBuilder
- Returns:
- The service.
-
getServiceBytes
public com.google.protobuf.ByteString getServiceBytes()
Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.
optional string service = 373540533;
- Specified by:
getServiceBytes
in interfaceUrlMapTestOrBuilder
- Returns:
- The bytes for service.
-
setService
public UrlMapTest.Builder setService(String value)
Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.
optional string service = 373540533;
- Parameters:
value
- The service to set.- Returns:
- This builder for chaining.
-
clearService
public UrlMapTest.Builder clearService()
Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.
optional string service = 373540533;
- Returns:
- This builder for chaining.
-
setServiceBytes
public UrlMapTest.Builder setServiceBytes(com.google.protobuf.ByteString value)
Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set.
optional string service = 373540533;
- Parameters:
value
- The bytes for service to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final UrlMapTest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UrlMapTest.Builder>
-
mergeUnknownFields
public final UrlMapTest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UrlMapTest.Builder>
-
-