Class TestFailure.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TestFailure.Builder>
com.google.cloud.compute.v1.TestFailure.Builder
All Implemented Interfaces:
TestFailureOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TestFailure

public static final class TestFailure.Builder extends com.google.protobuf.GeneratedMessage.Builder<TestFailure.Builder> implements TestFailureOrBuilder
 
Protobuf type google.cloud.compute.v1.TestFailure
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TestFailure.Builder>
    • clear

      public TestFailure.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TestFailure.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TestFailure.Builder>
    • getDefaultInstanceForType

      public TestFailure getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TestFailure build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TestFailure buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TestFailure.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TestFailure.Builder>
    • mergeFrom

      public TestFailure.Builder mergeFrom(TestFailure other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<TestFailure.Builder>
    • mergeFrom

      public TestFailure.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TestFailure.Builder>
      Throws:
      IOException
    • 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;
      Specified by:
      hasActualOutputUrl in interface TestFailureOrBuilder
      Returns:
      Whether the actualOutputUrl field is set.
    • 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;
      Specified by:
      getActualOutputUrl in interface TestFailureOrBuilder
      Returns:
      The actualOutputUrl.
    • getActualOutputUrlBytes

      public com.google.protobuf.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;
      Specified by:
      getActualOutputUrlBytes in interface TestFailureOrBuilder
      Returns:
      The bytes for actualOutputUrl.
    • setActualOutputUrl

      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;
      Parameters:
      value - The actualOutputUrl to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setActualOutputUrlBytes

      public TestFailure.Builder setActualOutputUrlBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for actualOutputUrl to set.
      Returns:
      This builder for chaining.
    • hasActualRedirectResponseCode

      public boolean hasActualRedirectResponseCode()
       Actual HTTP status code for rule with `urlRedirect`
       calculated by load balancer
       
      optional int32 actual_redirect_response_code = 42926553;
      Specified by:
      hasActualRedirectResponseCode in interface TestFailureOrBuilder
      Returns:
      Whether the actualRedirectResponseCode field is set.
    • getActualRedirectResponseCode

      public int getActualRedirectResponseCode()
       Actual HTTP status code for rule with `urlRedirect`
       calculated by load balancer
       
      optional int32 actual_redirect_response_code = 42926553;
      Specified by:
      getActualRedirectResponseCode in interface TestFailureOrBuilder
      Returns:
      The actualRedirectResponseCode.
    • setActualRedirectResponseCode

      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;
      Parameters:
      value - The actualRedirectResponseCode to set.
      Returns:
      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:
      This builder for chaining.
    • hasActualService

      public boolean hasActualService()
       BackendService or BackendBucket returned by load
       balancer.
       
      optional string actual_service = 440379652;
      Specified by:
      hasActualService in interface TestFailureOrBuilder
      Returns:
      Whether the actualService field is set.
    • getActualService

      public String getActualService()
       BackendService or BackendBucket returned by load
       balancer.
       
      optional string actual_service = 440379652;
      Specified by:
      getActualService in interface TestFailureOrBuilder
      Returns:
      The actualService.
    • getActualServiceBytes

      public com.google.protobuf.ByteString getActualServiceBytes()
       BackendService or BackendBucket returned by load
       balancer.
       
      optional string actual_service = 440379652;
      Specified by:
      getActualServiceBytes in interface TestFailureOrBuilder
      Returns:
      The bytes for actualService.
    • setActualService

      public TestFailure.Builder setActualService(String value)
       BackendService or BackendBucket returned by load
       balancer.
       
      optional string actual_service = 440379652;
      Parameters:
      value - The actualService to set.
      Returns:
      This builder for chaining.
    • clearActualService

      public TestFailure.Builder clearActualService()
       BackendService or BackendBucket returned by load
       balancer.
       
      optional string actual_service = 440379652;
      Returns:
      This builder for chaining.
    • setActualServiceBytes

      public TestFailure.Builder setActualServiceBytes(com.google.protobuf.ByteString value)
       BackendService or BackendBucket returned by load
       balancer.
       
      optional string actual_service = 440379652;
      Parameters:
      value - The bytes for actualService to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      hasExpectedOutputUrl in interface TestFailureOrBuilder
      Returns:
      Whether the expectedOutputUrl field is set.
    • 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;
      Specified by:
      getExpectedOutputUrl in interface TestFailureOrBuilder
      Returns:
      The expectedOutputUrl.
    • getExpectedOutputUrlBytes

      public com.google.protobuf.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;
      Specified by:
      getExpectedOutputUrlBytes in interface TestFailureOrBuilder
      Returns:
      The bytes for expectedOutputUrl.
    • setExpectedOutputUrl

      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;
      Parameters:
      value - The expectedOutputUrl to set.
      Returns:
      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:
      This builder for chaining.
    • setExpectedOutputUrlBytes

      public TestFailure.Builder setExpectedOutputUrlBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for expectedOutputUrl to set.
      Returns:
      This builder for chaining.
    • hasExpectedRedirectResponseCode

      public boolean hasExpectedRedirectResponseCode()
       Expected HTTP status code for rule with `urlRedirect`
       calculated by load balancer
       
      optional int32 expected_redirect_response_code = 18888047;
      Specified by:
      hasExpectedRedirectResponseCode in interface TestFailureOrBuilder
      Returns:
      Whether the expectedRedirectResponseCode field is set.
    • getExpectedRedirectResponseCode

      public int getExpectedRedirectResponseCode()
       Expected HTTP status code for rule with `urlRedirect`
       calculated by load balancer
       
      optional int32 expected_redirect_response_code = 18888047;
      Specified by:
      getExpectedRedirectResponseCode in interface TestFailureOrBuilder
      Returns:
      The expectedRedirectResponseCode.
    • setExpectedRedirectResponseCode

      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;
      Parameters:
      value - The expectedRedirectResponseCode to set.
      Returns:
      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:
      This builder for chaining.
    • hasExpectedService

      public boolean hasExpectedService()
       Expected BackendService or BackendBucket resource
       the given URL should be mapped to.
       
      optional string expected_service = 133987374;
      Specified by:
      hasExpectedService in interface TestFailureOrBuilder
      Returns:
      Whether the expectedService field is set.
    • getExpectedService

      public String getExpectedService()
       Expected BackendService or BackendBucket resource
       the given URL should be mapped to.
       
      optional string expected_service = 133987374;
      Specified by:
      getExpectedService in interface TestFailureOrBuilder
      Returns:
      The expectedService.
    • getExpectedServiceBytes

      public com.google.protobuf.ByteString getExpectedServiceBytes()
       Expected BackendService or BackendBucket resource
       the given URL should be mapped to.
       
      optional string expected_service = 133987374;
      Specified by:
      getExpectedServiceBytes in interface TestFailureOrBuilder
      Returns:
      The bytes for expectedService.
    • setExpectedService

      public TestFailure.Builder setExpectedService(String value)
       Expected BackendService or BackendBucket resource
       the given URL should be mapped to.
       
      optional string expected_service = 133987374;
      Parameters:
      value - The expectedService to set.
      Returns:
      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:
      This builder for chaining.
    • setExpectedServiceBytes

      public TestFailure.Builder setExpectedServiceBytes(com.google.protobuf.ByteString value)
       Expected BackendService or BackendBucket resource
       the given URL should be mapped to.
       
      optional string expected_service = 133987374;
      Parameters:
      value - The bytes for expectedService to set.
      Returns:
      This builder for chaining.
    • getHeadersList

      public List<UrlMapTestHeader> getHeadersList()
       HTTP headers of the request.
       
      repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
      Specified by:
      getHeadersList in interface TestFailureOrBuilder
    • getHeadersCount

      public int getHeadersCount()
       HTTP headers of the request.
       
      repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
      Specified by:
      getHeadersCount in interface TestFailureOrBuilder
    • getHeaders

      public UrlMapTestHeader getHeaders(int index)
       HTTP headers of the request.
       
      repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
      Specified by:
      getHeaders in interface TestFailureOrBuilder
    • setHeaders

      public TestFailure.Builder setHeaders(int index, UrlMapTestHeader value)
       HTTP headers of the request.
       
      repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
    • setHeaders

      public TestFailure.Builder setHeaders(int index, UrlMapTestHeader.Builder builderForValue)
       HTTP headers of the request.
       
      repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
    • addHeaders

      public TestFailure.Builder addHeaders(UrlMapTestHeader value)
       HTTP headers of the request.
       
      repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
    • addHeaders

      public TestFailure.Builder addHeaders(int index, UrlMapTestHeader value)
       HTTP headers of the request.
       
      repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
    • addHeaders

      public TestFailure.Builder addHeaders(UrlMapTestHeader.Builder builderForValue)
       HTTP headers of the request.
       
      repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
    • addHeaders

      public TestFailure.Builder addHeaders(int index, UrlMapTestHeader.Builder builderForValue)
       HTTP headers of the request.
       
      repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
    • addAllHeaders

      public TestFailure.Builder addAllHeaders(Iterable<? extends UrlMapTestHeader> values)
       HTTP headers of the request.
       
      repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
    • clearHeaders

      public TestFailure.Builder clearHeaders()
       HTTP headers of the request.
       
      repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
    • removeHeaders

      public TestFailure.Builder removeHeaders(int index)
       HTTP headers of the request.
       
      repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
    • getHeadersBuilder

      public UrlMapTestHeader.Builder getHeadersBuilder(int index)
       HTTP headers of the request.
       
      repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
    • getHeadersOrBuilder

      public UrlMapTestHeaderOrBuilder getHeadersOrBuilder(int index)
       HTTP headers of the request.
       
      repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
      Specified by:
      getHeadersOrBuilder in interface TestFailureOrBuilder
    • getHeadersOrBuilderList

      public List<? extends UrlMapTestHeaderOrBuilder> getHeadersOrBuilderList()
       HTTP headers of the request.
       
      repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
      Specified by:
      getHeadersOrBuilderList in interface TestFailureOrBuilder
    • addHeadersBuilder

      public UrlMapTestHeader.Builder addHeadersBuilder()
       HTTP headers of the request.
       
      repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
    • addHeadersBuilder

      public UrlMapTestHeader.Builder addHeadersBuilder(int index)
       HTTP headers of the request.
       
      repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
    • getHeadersBuilderList

      public List<UrlMapTestHeader.Builder> getHeadersBuilderList()
       HTTP headers of the request.
       
      repeated .google.cloud.compute.v1.UrlMapTestHeader headers = 258436998;
    • hasHost

      public boolean hasHost()
       Host portion of the URL.
       
      optional string host = 3208616;
      Specified by:
      hasHost in interface TestFailureOrBuilder
      Returns:
      Whether the host field is set.
    • getHost

      public String getHost()
       Host portion of the URL.
       
      optional string host = 3208616;
      Specified by:
      getHost in interface TestFailureOrBuilder
      Returns:
      The host.
    • getHostBytes

      public com.google.protobuf.ByteString getHostBytes()
       Host portion of the URL.
       
      optional string host = 3208616;
      Specified by:
      getHostBytes in interface TestFailureOrBuilder
      Returns:
      The bytes for host.
    • setHost

      public TestFailure.Builder setHost(String value)
       Host portion of the URL.
       
      optional string host = 3208616;
      Parameters:
      value - The host to set.
      Returns:
      This builder for chaining.
    • clearHost

      public TestFailure.Builder clearHost()
       Host portion of the URL.
       
      optional string host = 3208616;
      Returns:
      This builder for chaining.
    • setHostBytes

      public TestFailure.Builder setHostBytes(com.google.protobuf.ByteString value)
       Host portion of the URL.
       
      optional string host = 3208616;
      Parameters:
      value - The bytes for host to set.
      Returns:
      This builder for chaining.
    • hasPath

      public boolean hasPath()
       Path portion including query parameters in the URL.
       
      optional string path = 3433509;
      Specified by:
      hasPath in interface TestFailureOrBuilder
      Returns:
      Whether the path field is set.
    • getPath

      public String getPath()
       Path portion including query parameters in the URL.
       
      optional string path = 3433509;
      Specified by:
      getPath in interface TestFailureOrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
       Path portion including query parameters in the URL.
       
      optional string path = 3433509;
      Specified by:
      getPathBytes in interface TestFailureOrBuilder
      Returns:
      The bytes for path.
    • setPath

      public TestFailure.Builder setPath(String value)
       Path portion including query parameters in the URL.
       
      optional string path = 3433509;
      Parameters:
      value - The path to set.
      Returns:
      This builder for chaining.
    • clearPath

      public TestFailure.Builder clearPath()
       Path portion including query parameters in the URL.
       
      optional string path = 3433509;
      Returns:
      This builder for chaining.
    • setPathBytes

      public TestFailure.Builder setPathBytes(com.google.protobuf.ByteString value)
       Path portion including query parameters in the URL.
       
      optional string path = 3433509;
      Parameters:
      value - The bytes for path to set.
      Returns:
      This builder for chaining.