Class HttpOperation.Builder

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

public static final class HttpOperation.Builder extends com.google.protobuf.GeneratedMessage.Builder<HttpOperation.Builder> implements HttpOperationOrBuilder
 The HTTP Operation.
 
Protobuf type google.cloud.apihub.v1.HttpOperation
  • 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<HttpOperation.Builder>
    • clear

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

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

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

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

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

      public HttpOperation.Builder mergeFrom(HttpOperation other)
    • isInitialized

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

      public HttpOperation.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<HttpOperation.Builder>
      Throws:
      IOException
    • hasPath

      public boolean hasPath()
       Optional. The path details for the Operation.
       Note: Even though this field is optional, it is required for
       [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation]
       API and we will fail the request if not provided.
       
      .google.cloud.apihub.v1.Path path = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasPath in interface HttpOperationOrBuilder
      Returns:
      Whether the path field is set.
    • getPath

      public Path getPath()
       Optional. The path details for the Operation.
       Note: Even though this field is optional, it is required for
       [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation]
       API and we will fail the request if not provided.
       
      .google.cloud.apihub.v1.Path path = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPath in interface HttpOperationOrBuilder
      Returns:
      The path.
    • setPath

      public HttpOperation.Builder setPath(Path value)
       Optional. The path details for the Operation.
       Note: Even though this field is optional, it is required for
       [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation]
       API and we will fail the request if not provided.
       
      .google.cloud.apihub.v1.Path path = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setPath

      public HttpOperation.Builder setPath(Path.Builder builderForValue)
       Optional. The path details for the Operation.
       Note: Even though this field is optional, it is required for
       [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation]
       API and we will fail the request if not provided.
       
      .google.cloud.apihub.v1.Path path = 1 [(.google.api.field_behavior) = OPTIONAL];
    • mergePath

      public HttpOperation.Builder mergePath(Path value)
       Optional. The path details for the Operation.
       Note: Even though this field is optional, it is required for
       [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation]
       API and we will fail the request if not provided.
       
      .google.cloud.apihub.v1.Path path = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearPath

      public HttpOperation.Builder clearPath()
       Optional. The path details for the Operation.
       Note: Even though this field is optional, it is required for
       [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation]
       API and we will fail the request if not provided.
       
      .google.cloud.apihub.v1.Path path = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getPathBuilder

      public Path.Builder getPathBuilder()
       Optional. The path details for the Operation.
       Note: Even though this field is optional, it is required for
       [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation]
       API and we will fail the request if not provided.
       
      .google.cloud.apihub.v1.Path path = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getPathOrBuilder

      public PathOrBuilder getPathOrBuilder()
       Optional. The path details for the Operation.
       Note: Even though this field is optional, it is required for
       [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation]
       API and we will fail the request if not provided.
       
      .google.cloud.apihub.v1.Path path = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPathOrBuilder in interface HttpOperationOrBuilder
    • getMethodValue

      public int getMethodValue()
       Optional. Operation method
       Note: Even though this field is optional, it is required for
       [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation]
       API and we will fail the request if not provided.
       
      .google.cloud.apihub.v1.HttpOperation.Method method = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMethodValue in interface HttpOperationOrBuilder
      Returns:
      The enum numeric value on the wire for method.
    • setMethodValue

      public HttpOperation.Builder setMethodValue(int value)
       Optional. Operation method
       Note: Even though this field is optional, it is required for
       [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation]
       API and we will fail the request if not provided.
       
      .google.cloud.apihub.v1.HttpOperation.Method method = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for method to set.
      Returns:
      This builder for chaining.
    • getMethod

      public HttpOperation.Method getMethod()
       Optional. Operation method
       Note: Even though this field is optional, it is required for
       [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation]
       API and we will fail the request if not provided.
       
      .google.cloud.apihub.v1.HttpOperation.Method method = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMethod in interface HttpOperationOrBuilder
      Returns:
      The method.
    • setMethod

      public HttpOperation.Builder setMethod(HttpOperation.Method value)
       Optional. Operation method
       Note: Even though this field is optional, it is required for
       [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation]
       API and we will fail the request if not provided.
       
      .google.cloud.apihub.v1.HttpOperation.Method method = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The method to set.
      Returns:
      This builder for chaining.
    • clearMethod

      public HttpOperation.Builder clearMethod()
       Optional. Operation method
       Note: Even though this field is optional, it is required for
       [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation]
       API and we will fail the request if not provided.
       
      .google.cloud.apihub.v1.HttpOperation.Method method = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.