Class HttpOperationDetails.QueryParam.Builder

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

public static final class HttpOperationDetails.QueryParam.Builder extends com.google.protobuf.GeneratedMessage.Builder<HttpOperationDetails.QueryParam.Builder> implements HttpOperationDetails.QueryParamOrBuilder
 An aggregation of HTTP query parameter occurrences.
 
Protobuf type google.cloud.apihub.v1.HttpOperationDetails.QueryParam
  • 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<HttpOperationDetails.QueryParam.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<HttpOperationDetails.QueryParam.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<HttpOperationDetails.QueryParam.Builder>
    • getDefaultInstanceForType

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

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

      public HttpOperationDetails.QueryParam.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<HttpOperationDetails.QueryParam.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. Name of query param
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface HttpOperationDetails.QueryParamOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. Name of query param
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface HttpOperationDetails.QueryParamOrBuilder
      Returns:
      The bytes for name.
    • setName

       Required. Name of query param
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Required. Name of query param
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public HttpOperationDetails.QueryParam.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. Name of query param
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getCount

      public long getCount()
       Optional. The number of occurrences of this query parameter across
       transactions.
       
      int64 count = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCount in interface HttpOperationDetails.QueryParamOrBuilder
      Returns:
      The count.
    • setCount

      public HttpOperationDetails.QueryParam.Builder setCount(long value)
       Optional. The number of occurrences of this query parameter across
       transactions.
       
      int64 count = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The count to set.
      Returns:
      This builder for chaining.
    • clearCount

       Optional. The number of occurrences of this query parameter across
       transactions.
       
      int64 count = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getDataTypeValue

      public int getDataTypeValue()
       Optional. Data type of path param
       
      .google.cloud.apihub.v1.HttpOperationDetails.DataType data_type = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataTypeValue in interface HttpOperationDetails.QueryParamOrBuilder
      Returns:
      The enum numeric value on the wire for dataType.
    • setDataTypeValue

      public HttpOperationDetails.QueryParam.Builder setDataTypeValue(int value)
       Optional. Data type of path param
       
      .google.cloud.apihub.v1.HttpOperationDetails.DataType data_type = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for dataType to set.
      Returns:
      This builder for chaining.
    • getDataType

      public HttpOperationDetails.DataType getDataType()
       Optional. Data type of path param
       
      .google.cloud.apihub.v1.HttpOperationDetails.DataType data_type = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataType in interface HttpOperationDetails.QueryParamOrBuilder
      Returns:
      The dataType.
    • setDataType

       Optional. Data type of path param
       
      .google.cloud.apihub.v1.HttpOperationDetails.DataType data_type = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The dataType to set.
      Returns:
      This builder for chaining.
    • clearDataType

       Optional. Data type of path param
       
      .google.cloud.apihub.v1.HttpOperationDetails.DataType data_type = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.