Class HttpFaultAbort.Builder

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

public static final class HttpFaultAbort.Builder extends com.google.protobuf.GeneratedMessage.Builder<HttpFaultAbort.Builder> implements HttpFaultAbortOrBuilder
 Specification for how requests are aborted as part of fault injection.
 
Protobuf type google.cloud.compute.v1.HttpFaultAbort
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The HTTP status code used to abort the request.
    The percentage of traffic for connections, operations, or requests that is aborted as part of fault injection.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    int
    The HTTP status code used to abort the request.
    double
    The percentage of traffic for connections, operations, or requests that is aborted as part of fault injection.
    boolean
    The HTTP status code used to abort the request.
    boolean
    The percentage of traffic for connections, operations, or requests that is aborted as part of fault injection.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setHttpStatus(int value)
    The HTTP status code used to abort the request.
    setPercentage(double value)
    The percentage of traffic for connections, operations, or requests that is aborted as part of fault injection.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<HttpFaultAbort.Builder>
    • clear

      public HttpFaultAbort.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<HttpFaultAbort.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<HttpFaultAbort.Builder>
    • getDefaultInstanceForType

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

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

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

      public HttpFaultAbort.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<HttpFaultAbort.Builder>
    • mergeFrom

      public HttpFaultAbort.Builder mergeFrom(HttpFaultAbort other)
    • isInitialized

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

      public HttpFaultAbort.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<HttpFaultAbort.Builder>
      Throws:
      IOException
    • hasHttpStatus

      public boolean hasHttpStatus()
       The HTTP status code used to abort the request.
      
       The value must be from 200 to 599 inclusive.
      
       For gRPC protocol, the gRPC status code is mapped to HTTP status code
       according to this
       mapping table. HTTP status 200 is mapped to gRPC status
       UNKNOWN. Injecting an OK status is currently not supported by
       Traffic Director.
       
      optional uint32 http_status = 468949897;
      Specified by:
      hasHttpStatus in interface HttpFaultAbortOrBuilder
      Returns:
      Whether the httpStatus field is set.
    • getHttpStatus

      public int getHttpStatus()
       The HTTP status code used to abort the request.
      
       The value must be from 200 to 599 inclusive.
      
       For gRPC protocol, the gRPC status code is mapped to HTTP status code
       according to this
       mapping table. HTTP status 200 is mapped to gRPC status
       UNKNOWN. Injecting an OK status is currently not supported by
       Traffic Director.
       
      optional uint32 http_status = 468949897;
      Specified by:
      getHttpStatus in interface HttpFaultAbortOrBuilder
      Returns:
      The httpStatus.
    • setHttpStatus

      public HttpFaultAbort.Builder setHttpStatus(int value)
       The HTTP status code used to abort the request.
      
       The value must be from 200 to 599 inclusive.
      
       For gRPC protocol, the gRPC status code is mapped to HTTP status code
       according to this
       mapping table. HTTP status 200 is mapped to gRPC status
       UNKNOWN. Injecting an OK status is currently not supported by
       Traffic Director.
       
      optional uint32 http_status = 468949897;
      Parameters:
      value - The httpStatus to set.
      Returns:
      This builder for chaining.
    • clearHttpStatus

      public HttpFaultAbort.Builder clearHttpStatus()
       The HTTP status code used to abort the request.
      
       The value must be from 200 to 599 inclusive.
      
       For gRPC protocol, the gRPC status code is mapped to HTTP status code
       according to this
       mapping table. HTTP status 200 is mapped to gRPC status
       UNKNOWN. Injecting an OK status is currently not supported by
       Traffic Director.
       
      optional uint32 http_status = 468949897;
      Returns:
      This builder for chaining.
    • hasPercentage

      public boolean hasPercentage()
       The percentage of traffic for connections, operations, or requests
       that is aborted as part of fault injection.
      
       The value must be from 0.0 to 100.0 inclusive.
       
      optional double percentage = 151909018;
      Specified by:
      hasPercentage in interface HttpFaultAbortOrBuilder
      Returns:
      Whether the percentage field is set.
    • getPercentage

      public double getPercentage()
       The percentage of traffic for connections, operations, or requests
       that is aborted as part of fault injection.
      
       The value must be from 0.0 to 100.0 inclusive.
       
      optional double percentage = 151909018;
      Specified by:
      getPercentage in interface HttpFaultAbortOrBuilder
      Returns:
      The percentage.
    • setPercentage

      public HttpFaultAbort.Builder setPercentage(double value)
       The percentage of traffic for connections, operations, or requests
       that is aborted as part of fault injection.
      
       The value must be from 0.0 to 100.0 inclusive.
       
      optional double percentage = 151909018;
      Parameters:
      value - The percentage to set.
      Returns:
      This builder for chaining.
    • clearPercentage

      public HttpFaultAbort.Builder clearPercentage()
       The percentage of traffic for connections, operations, or requests
       that is aborted as part of fault injection.
      
       The value must be from 0.0 to 100.0 inclusive.
       
      optional double percentage = 151909018;
      Returns:
      This builder for chaining.