Class GrpcRoute.FaultInjectionPolicy.Abort.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GrpcRoute.FaultInjectionPolicy.Abort.Builder>
com.google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Abort.Builder
All Implemented Interfaces:
GrpcRoute.FaultInjectionPolicy.AbortOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GrpcRoute.FaultInjectionPolicy.Abort

public static final class GrpcRoute.FaultInjectionPolicy.Abort.Builder extends com.google.protobuf.GeneratedMessage.Builder<GrpcRoute.FaultInjectionPolicy.Abort.Builder> implements GrpcRoute.FaultInjectionPolicy.AbortOrBuilder
 Specification of how client requests are aborted as part of fault
 injection before being sent to a destination.
 
Protobuf type google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Abort
  • 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<GrpcRoute.FaultInjectionPolicy.Abort.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<GrpcRoute.FaultInjectionPolicy.Abort.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<GrpcRoute.FaultInjectionPolicy.Abort.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public GrpcRoute.FaultInjectionPolicy.Abort.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<GrpcRoute.FaultInjectionPolicy.Abort.Builder>
    • mergeFrom

    • isInitialized

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

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

      public boolean hasHttpStatus()
       The HTTP status code used to abort the request.
      
       The value must be between 200 and 599 inclusive.
       
      optional int32 http_status = 1;
      Specified by:
      hasHttpStatus in interface GrpcRoute.FaultInjectionPolicy.AbortOrBuilder
      Returns:
      Whether the httpStatus field is set.
    • getHttpStatus

      public int getHttpStatus()
       The HTTP status code used to abort the request.
      
       The value must be between 200 and 599 inclusive.
       
      optional int32 http_status = 1;
      Specified by:
      getHttpStatus in interface GrpcRoute.FaultInjectionPolicy.AbortOrBuilder
      Returns:
      The httpStatus.
    • setHttpStatus

      public GrpcRoute.FaultInjectionPolicy.Abort.Builder setHttpStatus(int value)
       The HTTP status code used to abort the request.
      
       The value must be between 200 and 599 inclusive.
       
      optional int32 http_status = 1;
      Parameters:
      value - The httpStatus to set.
      Returns:
      This builder for chaining.
    • clearHttpStatus

       The HTTP status code used to abort the request.
      
       The value must be between 200 and 599 inclusive.
       
      optional int32 http_status = 1;
      Returns:
      This builder for chaining.
    • hasPercentage

      public boolean hasPercentage()
       The percentage of traffic which will be aborted.
      
       The value must be between [0, 100]
       
      optional int32 percentage = 2;
      Specified by:
      hasPercentage in interface GrpcRoute.FaultInjectionPolicy.AbortOrBuilder
      Returns:
      Whether the percentage field is set.
    • getPercentage

      public int getPercentage()
       The percentage of traffic which will be aborted.
      
       The value must be between [0, 100]
       
      optional int32 percentage = 2;
      Specified by:
      getPercentage in interface GrpcRoute.FaultInjectionPolicy.AbortOrBuilder
      Returns:
      The percentage.
    • setPercentage

      public GrpcRoute.FaultInjectionPolicy.Abort.Builder setPercentage(int value)
       The percentage of traffic which will be aborted.
      
       The value must be between [0, 100]
       
      optional int32 percentage = 2;
      Parameters:
      value - The percentage to set.
      Returns:
      This builder for chaining.
    • clearPercentage

       The percentage of traffic which will be aborted.
      
       The value must be between [0, 100]
       
      optional int32 percentage = 2;
      Returns:
      This builder for chaining.