Class OperationDetails.Builder

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

public static final class OperationDetails.Builder extends com.google.protobuf.GeneratedMessage.Builder<OperationDetails.Builder> implements OperationDetailsOrBuilder
 The operation details parsed from the spec.
 
Protobuf type google.cloud.apihub.v1.OperationDetails
  • 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<OperationDetails.Builder>
    • clear

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

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

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

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

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

      public OperationDetails.Builder mergeFrom(OperationDetails other)
    • isInitialized

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

      public OperationDetails.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<OperationDetails.Builder>
      Throws:
      IOException
    • getOperationCase

      public OperationDetails.OperationCase getOperationCase()
      Specified by:
      getOperationCase in interface OperationDetailsOrBuilder
    • clearOperation

      public OperationDetails.Builder clearOperation()
    • hasHttpOperation

      public boolean hasHttpOperation()
       The HTTP Operation.
       
      .google.cloud.apihub.v1.HttpOperation http_operation = 4;
      Specified by:
      hasHttpOperation in interface OperationDetailsOrBuilder
      Returns:
      Whether the httpOperation field is set.
    • getHttpOperation

      public HttpOperation getHttpOperation()
       The HTTP Operation.
       
      .google.cloud.apihub.v1.HttpOperation http_operation = 4;
      Specified by:
      getHttpOperation in interface OperationDetailsOrBuilder
      Returns:
      The httpOperation.
    • setHttpOperation

      public OperationDetails.Builder setHttpOperation(HttpOperation value)
       The HTTP Operation.
       
      .google.cloud.apihub.v1.HttpOperation http_operation = 4;
    • setHttpOperation

      public OperationDetails.Builder setHttpOperation(HttpOperation.Builder builderForValue)
       The HTTP Operation.
       
      .google.cloud.apihub.v1.HttpOperation http_operation = 4;
    • mergeHttpOperation

      public OperationDetails.Builder mergeHttpOperation(HttpOperation value)
       The HTTP Operation.
       
      .google.cloud.apihub.v1.HttpOperation http_operation = 4;
    • clearHttpOperation

      public OperationDetails.Builder clearHttpOperation()
       The HTTP Operation.
       
      .google.cloud.apihub.v1.HttpOperation http_operation = 4;
    • getHttpOperationBuilder

      public HttpOperation.Builder getHttpOperationBuilder()
       The HTTP Operation.
       
      .google.cloud.apihub.v1.HttpOperation http_operation = 4;
    • getHttpOperationOrBuilder

      public HttpOperationOrBuilder getHttpOperationOrBuilder()
       The HTTP Operation.
       
      .google.cloud.apihub.v1.HttpOperation http_operation = 4;
      Specified by:
      getHttpOperationOrBuilder in interface OperationDetailsOrBuilder
    • getDescription

      public String getDescription()
       Optional. Description of the operation behavior.
       For OpenAPI spec, this will map to `operation.description` in the
       spec, in case description is empty, `operation.summary` will be used.
       
      string description = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface OperationDetailsOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. Description of the operation behavior.
       For OpenAPI spec, this will map to `operation.description` in the
       spec, in case description is empty, `operation.summary` will be used.
       
      string description = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface OperationDetailsOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public OperationDetails.Builder setDescription(String value)
       Optional. Description of the operation behavior.
       For OpenAPI spec, this will map to `operation.description` in the
       spec, in case description is empty, `operation.summary` will be used.
       
      string description = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public OperationDetails.Builder clearDescription()
       Optional. Description of the operation behavior.
       For OpenAPI spec, this will map to `operation.description` in the
       spec, in case description is empty, `operation.summary` will be used.
       
      string description = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public OperationDetails.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. Description of the operation behavior.
       For OpenAPI spec, this will map to `operation.description` in the
       spec, in case description is empty, `operation.summary` will be used.
       
      string description = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasDocumentation

      public boolean hasDocumentation()
       Optional. Additional external documentation for this operation.
       For OpenAPI spec, this will map to `operation.documentation` in the spec.
       
      .google.cloud.apihub.v1.Documentation documentation = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasDocumentation in interface OperationDetailsOrBuilder
      Returns:
      Whether the documentation field is set.
    • getDocumentation

      public Documentation getDocumentation()
       Optional. Additional external documentation for this operation.
       For OpenAPI spec, this will map to `operation.documentation` in the spec.
       
      .google.cloud.apihub.v1.Documentation documentation = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDocumentation in interface OperationDetailsOrBuilder
      Returns:
      The documentation.
    • setDocumentation

      public OperationDetails.Builder setDocumentation(Documentation value)
       Optional. Additional external documentation for this operation.
       For OpenAPI spec, this will map to `operation.documentation` in the spec.
       
      .google.cloud.apihub.v1.Documentation documentation = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setDocumentation

      public OperationDetails.Builder setDocumentation(Documentation.Builder builderForValue)
       Optional. Additional external documentation for this operation.
       For OpenAPI spec, this will map to `operation.documentation` in the spec.
       
      .google.cloud.apihub.v1.Documentation documentation = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeDocumentation

      public OperationDetails.Builder mergeDocumentation(Documentation value)
       Optional. Additional external documentation for this operation.
       For OpenAPI spec, this will map to `operation.documentation` in the spec.
       
      .google.cloud.apihub.v1.Documentation documentation = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearDocumentation

      public OperationDetails.Builder clearDocumentation()
       Optional. Additional external documentation for this operation.
       For OpenAPI spec, this will map to `operation.documentation` in the spec.
       
      .google.cloud.apihub.v1.Documentation documentation = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getDocumentationBuilder

      public Documentation.Builder getDocumentationBuilder()
       Optional. Additional external documentation for this operation.
       For OpenAPI spec, this will map to `operation.documentation` in the spec.
       
      .google.cloud.apihub.v1.Documentation documentation = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getDocumentationOrBuilder

      public DocumentationOrBuilder getDocumentationOrBuilder()
       Optional. Additional external documentation for this operation.
       For OpenAPI spec, this will map to `operation.documentation` in the spec.
       
      .google.cloud.apihub.v1.Documentation documentation = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDocumentationOrBuilder in interface OperationDetailsOrBuilder
    • getDeprecated

      public boolean getDeprecated()
       Optional. For OpenAPI spec, this will be set if `operation.deprecated`is
       marked as `true` in the spec.
       
      bool deprecated = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDeprecated in interface OperationDetailsOrBuilder
      Returns:
      The deprecated.
    • setDeprecated

      public OperationDetails.Builder setDeprecated(boolean value)
       Optional. For OpenAPI spec, this will be set if `operation.deprecated`is
       marked as `true` in the spec.
       
      bool deprecated = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The deprecated to set.
      Returns:
      This builder for chaining.
    • clearDeprecated

      public OperationDetails.Builder clearDeprecated()
       Optional. For OpenAPI spec, this will be set if `operation.deprecated`is
       marked as `true` in the spec.
       
      bool deprecated = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.