Class HttpRoute.HttpDirectResponse.Builder

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

public static final class HttpRoute.HttpDirectResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<HttpRoute.HttpDirectResponse.Builder> implements HttpRoute.HttpDirectResponseOrBuilder
 Static HTTP response object to be returned.
 
Protobuf type google.cloud.networkservices.v1.HttpRoute.HttpDirectResponse
  • 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<HttpRoute.HttpDirectResponse.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<HttpRoute.HttpDirectResponse.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<HttpRoute.HttpDirectResponse.Builder>
    • getDefaultInstanceForType

      public HttpRoute.HttpDirectResponse 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 HttpRoute.HttpDirectResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public HttpRoute.HttpDirectResponse.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<HttpRoute.HttpDirectResponse.Builder>
      Throws:
      IOException
    • getHttpBodyCase

      Specified by:
      getHttpBodyCase in interface HttpRoute.HttpDirectResponseOrBuilder
    • clearHttpBody

      public HttpRoute.HttpDirectResponse.Builder clearHttpBody()
    • hasStringBody

      public boolean hasStringBody()
       Optional. Response body as a string. Maximum body length is 1024
       characters.
       
      string string_body = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasStringBody in interface HttpRoute.HttpDirectResponseOrBuilder
      Returns:
      Whether the stringBody field is set.
    • getStringBody

      public String getStringBody()
       Optional. Response body as a string. Maximum body length is 1024
       characters.
       
      string string_body = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStringBody in interface HttpRoute.HttpDirectResponseOrBuilder
      Returns:
      The stringBody.
    • getStringBodyBytes

      public com.google.protobuf.ByteString getStringBodyBytes()
       Optional. Response body as a string. Maximum body length is 1024
       characters.
       
      string string_body = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStringBodyBytes in interface HttpRoute.HttpDirectResponseOrBuilder
      Returns:
      The bytes for stringBody.
    • setStringBody

      public HttpRoute.HttpDirectResponse.Builder setStringBody(String value)
       Optional. Response body as a string. Maximum body length is 1024
       characters.
       
      string string_body = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The stringBody to set.
      Returns:
      This builder for chaining.
    • clearStringBody

      public HttpRoute.HttpDirectResponse.Builder clearStringBody()
       Optional. Response body as a string. Maximum body length is 1024
       characters.
       
      string string_body = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setStringBodyBytes

      public HttpRoute.HttpDirectResponse.Builder setStringBodyBytes(com.google.protobuf.ByteString value)
       Optional. Response body as a string. Maximum body length is 1024
       characters.
       
      string string_body = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for stringBody to set.
      Returns:
      This builder for chaining.
    • hasBytesBody

      public boolean hasBytesBody()
       Optional. Response body as bytes. Maximum body size is 4096B.
       
      bytes bytes_body = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasBytesBody in interface HttpRoute.HttpDirectResponseOrBuilder
      Returns:
      Whether the bytesBody field is set.
    • getBytesBody

      public com.google.protobuf.ByteString getBytesBody()
       Optional. Response body as bytes. Maximum body size is 4096B.
       
      bytes bytes_body = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBytesBody in interface HttpRoute.HttpDirectResponseOrBuilder
      Returns:
      The bytesBody.
    • setBytesBody

      public HttpRoute.HttpDirectResponse.Builder setBytesBody(com.google.protobuf.ByteString value)
       Optional. Response body as bytes. Maximum body size is 4096B.
       
      bytes bytes_body = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytesBody to set.
      Returns:
      This builder for chaining.
    • clearBytesBody

      public HttpRoute.HttpDirectResponse.Builder clearBytesBody()
       Optional. Response body as bytes. Maximum body size is 4096B.
       
      bytes bytes_body = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getStatus

      public int getStatus()
       Required. Status to return as part of HTTP Response. Must be a positive
       integer.
       
      int32 status = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStatus in interface HttpRoute.HttpDirectResponseOrBuilder
      Returns:
      The status.
    • setStatus

      public HttpRoute.HttpDirectResponse.Builder setStatus(int value)
       Required. Status to return as part of HTTP Response. Must be a positive
       integer.
       
      int32 status = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

       Required. Status to return as part of HTTP Response. Must be a positive
       integer.
       
      int32 status = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.