Class CreateApiOperationRequest.Builder

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

public static final class CreateApiOperationRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateApiOperationRequest.Builder> implements CreateApiOperationRequestOrBuilder
 The [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation]
 method's request.
 
Protobuf type google.cloud.apihub.v1.CreateApiOperationRequest
  • 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<CreateApiOperationRequest.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<CreateApiOperationRequest.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<CreateApiOperationRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public CreateApiOperationRequest.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<CreateApiOperationRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The parent resource for the operation resource.
       Format:
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateApiOperationRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource for the operation resource.
       Format:
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateApiOperationRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateApiOperationRequest.Builder setParent(String value)
       Required. The parent resource for the operation resource.
       Format:
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateApiOperationRequest.Builder clearParent()
       Required. The parent resource for the operation resource.
       Format:
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateApiOperationRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource for the operation resource.
       Format:
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getApiOperationId

      public String getApiOperationId()
       Optional. The ID to use for the operation resource, which will become the
       final component of the operation's resource name. This field is optional.
      
       * If provided, the same will be used. The service will throw an error if
       the specified id is already used by another operation resource in the API
       hub.
       * If not provided, a system generated id will be used.
      
       This value should be 4-500 characters, overall resource name which
       will be of format
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`,
       its length is limited to 700 characters, and valid characters are
       /[a-z][A-Z][0-9]-_/.
       
      string api_operation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getApiOperationId in interface CreateApiOperationRequestOrBuilder
      Returns:
      The apiOperationId.
    • getApiOperationIdBytes

      public com.google.protobuf.ByteString getApiOperationIdBytes()
       Optional. The ID to use for the operation resource, which will become the
       final component of the operation's resource name. This field is optional.
      
       * If provided, the same will be used. The service will throw an error if
       the specified id is already used by another operation resource in the API
       hub.
       * If not provided, a system generated id will be used.
      
       This value should be 4-500 characters, overall resource name which
       will be of format
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`,
       its length is limited to 700 characters, and valid characters are
       /[a-z][A-Z][0-9]-_/.
       
      string api_operation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getApiOperationIdBytes in interface CreateApiOperationRequestOrBuilder
      Returns:
      The bytes for apiOperationId.
    • setApiOperationId

      public CreateApiOperationRequest.Builder setApiOperationId(String value)
       Optional. The ID to use for the operation resource, which will become the
       final component of the operation's resource name. This field is optional.
      
       * If provided, the same will be used. The service will throw an error if
       the specified id is already used by another operation resource in the API
       hub.
       * If not provided, a system generated id will be used.
      
       This value should be 4-500 characters, overall resource name which
       will be of format
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`,
       its length is limited to 700 characters, and valid characters are
       /[a-z][A-Z][0-9]-_/.
       
      string api_operation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The apiOperationId to set.
      Returns:
      This builder for chaining.
    • clearApiOperationId

      public CreateApiOperationRequest.Builder clearApiOperationId()
       Optional. The ID to use for the operation resource, which will become the
       final component of the operation's resource name. This field is optional.
      
       * If provided, the same will be used. The service will throw an error if
       the specified id is already used by another operation resource in the API
       hub.
       * If not provided, a system generated id will be used.
      
       This value should be 4-500 characters, overall resource name which
       will be of format
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`,
       its length is limited to 700 characters, and valid characters are
       /[a-z][A-Z][0-9]-_/.
       
      string api_operation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setApiOperationIdBytes

      public CreateApiOperationRequest.Builder setApiOperationIdBytes(com.google.protobuf.ByteString value)
       Optional. The ID to use for the operation resource, which will become the
       final component of the operation's resource name. This field is optional.
      
       * If provided, the same will be used. The service will throw an error if
       the specified id is already used by another operation resource in the API
       hub.
       * If not provided, a system generated id will be used.
      
       This value should be 4-500 characters, overall resource name which
       will be of format
       `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`,
       its length is limited to 700 characters, and valid characters are
       /[a-z][A-Z][0-9]-_/.
       
      string api_operation_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for apiOperationId to set.
      Returns:
      This builder for chaining.
    • hasApiOperation

      public boolean hasApiOperation()
       Required. The operation resource to create.
       
      .google.cloud.apihub.v1.ApiOperation api_operation = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasApiOperation in interface CreateApiOperationRequestOrBuilder
      Returns:
      Whether the apiOperation field is set.
    • getApiOperation

      public ApiOperation getApiOperation()
       Required. The operation resource to create.
       
      .google.cloud.apihub.v1.ApiOperation api_operation = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getApiOperation in interface CreateApiOperationRequestOrBuilder
      Returns:
      The apiOperation.
    • setApiOperation

      public CreateApiOperationRequest.Builder setApiOperation(ApiOperation value)
       Required. The operation resource to create.
       
      .google.cloud.apihub.v1.ApiOperation api_operation = 3 [(.google.api.field_behavior) = REQUIRED];
    • setApiOperation

      public CreateApiOperationRequest.Builder setApiOperation(ApiOperation.Builder builderForValue)
       Required. The operation resource to create.
       
      .google.cloud.apihub.v1.ApiOperation api_operation = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeApiOperation

      public CreateApiOperationRequest.Builder mergeApiOperation(ApiOperation value)
       Required. The operation resource to create.
       
      .google.cloud.apihub.v1.ApiOperation api_operation = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearApiOperation

      public CreateApiOperationRequest.Builder clearApiOperation()
       Required. The operation resource to create.
       
      .google.cloud.apihub.v1.ApiOperation api_operation = 3 [(.google.api.field_behavior) = REQUIRED];
    • getApiOperationBuilder

      public ApiOperation.Builder getApiOperationBuilder()
       Required. The operation resource to create.
       
      .google.cloud.apihub.v1.ApiOperation api_operation = 3 [(.google.api.field_behavior) = REQUIRED];
    • getApiOperationOrBuilder

      public ApiOperationOrBuilder getApiOperationOrBuilder()
       Required. The operation resource to create.
       
      .google.cloud.apihub.v1.ApiOperation api_operation = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getApiOperationOrBuilder in interface CreateApiOperationRequestOrBuilder