Class ListSkusRequest.Builder

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

public static final class ListSkusRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListSkusRequest.Builder> implements ListSkusRequestOrBuilder
 Request message for `ListSkus`.
 
Protobuf type google.cloud.billing.v1.ListSkusRequest
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The ISO 4217 currency code for the pricing info in the response proto.
    Optional exclusive end time of the time range for which the pricing versions will be returned.
    Requested page size.
    A token identifying a page of results to return.
    Required.
    Optional inclusive start time of the time range for which the pricing versions will be returned.
    The ISO 4217 currency code for the pricing info in the response proto.
    com.google.protobuf.ByteString
    The ISO 4217 currency code for the pricing info in the response proto.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Timestamp
    Optional exclusive end time of the time range for which the pricing versions will be returned.
    com.google.protobuf.Timestamp.Builder
    Optional exclusive end time of the time range for which the pricing versions will be returned.
    com.google.protobuf.TimestampOrBuilder
    Optional exclusive end time of the time range for which the pricing versions will be returned.
    int
    Requested page size.
    A token identifying a page of results to return.
    com.google.protobuf.ByteString
    A token identifying a page of results to return.
    Required.
    com.google.protobuf.ByteString
    Required.
    com.google.protobuf.Timestamp
    Optional inclusive start time of the time range for which the pricing versions will be returned.
    com.google.protobuf.Timestamp.Builder
    Optional inclusive start time of the time range for which the pricing versions will be returned.
    com.google.protobuf.TimestampOrBuilder
    Optional inclusive start time of the time range for which the pricing versions will be returned.
    boolean
    Optional exclusive end time of the time range for which the pricing versions will be returned.
    boolean
    Optional inclusive start time of the time range for which the pricing versions will be returned.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeEndTime(com.google.protobuf.Timestamp value)
    Optional exclusive end time of the time range for which the pricing versions will be returned.
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergeStartTime(com.google.protobuf.Timestamp value)
    Optional inclusive start time of the time range for which the pricing versions will be returned.
    The ISO 4217 currency code for the pricing info in the response proto.
    setCurrencyCodeBytes(com.google.protobuf.ByteString value)
    The ISO 4217 currency code for the pricing info in the response proto.
    setEndTime(com.google.protobuf.Timestamp value)
    Optional exclusive end time of the time range for which the pricing versions will be returned.
    setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
    Optional exclusive end time of the time range for which the pricing versions will be returned.
    setPageSize(int value)
    Requested page size.
    A token identifying a page of results to return.
    setPageTokenBytes(com.google.protobuf.ByteString value)
    A token identifying a page of results to return.
    Required.
    setParentBytes(com.google.protobuf.ByteString value)
    Required.
    setStartTime(com.google.protobuf.Timestamp value)
    Optional inclusive start time of the time range for which the pricing versions will be returned.
    setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
    Optional inclusive start time of the time range for which the pricing versions will be returned.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<ListSkusRequest.Builder>
    • clear

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

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

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

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

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

      public ListSkusRequest.Builder mergeFrom(ListSkusRequest other)
    • isInitialized

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

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

      public String getParent()
       Required. The name of the service.
       Example: "services/6F81-5844-456A"
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface ListSkusRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The name of the service.
       Example: "services/6F81-5844-456A"
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface ListSkusRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public ListSkusRequest.Builder setParent(String value)
       Required. The name of the service.
       Example: "services/6F81-5844-456A"
       
      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 ListSkusRequest.Builder clearParent()
       Required. The name of the service.
       Example: "services/6F81-5844-456A"
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public ListSkusRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The name of the service.
       Example: "services/6F81-5844-456A"
       
      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.
    • hasStartTime

      public boolean hasStartTime()
       Optional inclusive start time of the time range for which the pricing
       versions will be returned. Timestamps in the future are not allowed.
       The time range has to be within a single calendar month in
       America/Los_Angeles timezone. Time range as a whole is optional. If not
       specified, the latest pricing will be returned (up to 12 hours old at
       most).
       
      .google.protobuf.Timestamp start_time = 2;
      Specified by:
      hasStartTime in interface ListSkusRequestOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public com.google.protobuf.Timestamp getStartTime()
       Optional inclusive start time of the time range for which the pricing
       versions will be returned. Timestamps in the future are not allowed.
       The time range has to be within a single calendar month in
       America/Los_Angeles timezone. Time range as a whole is optional. If not
       specified, the latest pricing will be returned (up to 12 hours old at
       most).
       
      .google.protobuf.Timestamp start_time = 2;
      Specified by:
      getStartTime in interface ListSkusRequestOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public ListSkusRequest.Builder setStartTime(com.google.protobuf.Timestamp value)
       Optional inclusive start time of the time range for which the pricing
       versions will be returned. Timestamps in the future are not allowed.
       The time range has to be within a single calendar month in
       America/Los_Angeles timezone. Time range as a whole is optional. If not
       specified, the latest pricing will be returned (up to 12 hours old at
       most).
       
      .google.protobuf.Timestamp start_time = 2;
    • setStartTime

      public ListSkusRequest.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Optional inclusive start time of the time range for which the pricing
       versions will be returned. Timestamps in the future are not allowed.
       The time range has to be within a single calendar month in
       America/Los_Angeles timezone. Time range as a whole is optional. If not
       specified, the latest pricing will be returned (up to 12 hours old at
       most).
       
      .google.protobuf.Timestamp start_time = 2;
    • mergeStartTime

      public ListSkusRequest.Builder mergeStartTime(com.google.protobuf.Timestamp value)
       Optional inclusive start time of the time range for which the pricing
       versions will be returned. Timestamps in the future are not allowed.
       The time range has to be within a single calendar month in
       America/Los_Angeles timezone. Time range as a whole is optional. If not
       specified, the latest pricing will be returned (up to 12 hours old at
       most).
       
      .google.protobuf.Timestamp start_time = 2;
    • clearStartTime

      public ListSkusRequest.Builder clearStartTime()
       Optional inclusive start time of the time range for which the pricing
       versions will be returned. Timestamps in the future are not allowed.
       The time range has to be within a single calendar month in
       America/Los_Angeles timezone. Time range as a whole is optional. If not
       specified, the latest pricing will be returned (up to 12 hours old at
       most).
       
      .google.protobuf.Timestamp start_time = 2;
    • getStartTimeBuilder

      public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
       Optional inclusive start time of the time range for which the pricing
       versions will be returned. Timestamps in the future are not allowed.
       The time range has to be within a single calendar month in
       America/Los_Angeles timezone. Time range as a whole is optional. If not
       specified, the latest pricing will be returned (up to 12 hours old at
       most).
       
      .google.protobuf.Timestamp start_time = 2;
    • getStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       Optional inclusive start time of the time range for which the pricing
       versions will be returned. Timestamps in the future are not allowed.
       The time range has to be within a single calendar month in
       America/Los_Angeles timezone. Time range as a whole is optional. If not
       specified, the latest pricing will be returned (up to 12 hours old at
       most).
       
      .google.protobuf.Timestamp start_time = 2;
      Specified by:
      getStartTimeOrBuilder in interface ListSkusRequestOrBuilder
    • hasEndTime

      public boolean hasEndTime()
       Optional exclusive end time of the time range for which the pricing
       versions will be returned. Timestamps in the future are not allowed.
       The time range has to be within a single calendar month in
       America/Los_Angeles timezone. Time range as a whole is optional. If not
       specified, the latest pricing will be returned (up to 12 hours old at
       most).
       
      .google.protobuf.Timestamp end_time = 3;
      Specified by:
      hasEndTime in interface ListSkusRequestOrBuilder
      Returns:
      Whether the endTime field is set.
    • getEndTime

      public com.google.protobuf.Timestamp getEndTime()
       Optional exclusive end time of the time range for which the pricing
       versions will be returned. Timestamps in the future are not allowed.
       The time range has to be within a single calendar month in
       America/Los_Angeles timezone. Time range as a whole is optional. If not
       specified, the latest pricing will be returned (up to 12 hours old at
       most).
       
      .google.protobuf.Timestamp end_time = 3;
      Specified by:
      getEndTime in interface ListSkusRequestOrBuilder
      Returns:
      The endTime.
    • setEndTime

      public ListSkusRequest.Builder setEndTime(com.google.protobuf.Timestamp value)
       Optional exclusive end time of the time range for which the pricing
       versions will be returned. Timestamps in the future are not allowed.
       The time range has to be within a single calendar month in
       America/Los_Angeles timezone. Time range as a whole is optional. If not
       specified, the latest pricing will be returned (up to 12 hours old at
       most).
       
      .google.protobuf.Timestamp end_time = 3;
    • setEndTime

      public ListSkusRequest.Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Optional exclusive end time of the time range for which the pricing
       versions will be returned. Timestamps in the future are not allowed.
       The time range has to be within a single calendar month in
       America/Los_Angeles timezone. Time range as a whole is optional. If not
       specified, the latest pricing will be returned (up to 12 hours old at
       most).
       
      .google.protobuf.Timestamp end_time = 3;
    • mergeEndTime

      public ListSkusRequest.Builder mergeEndTime(com.google.protobuf.Timestamp value)
       Optional exclusive end time of the time range for which the pricing
       versions will be returned. Timestamps in the future are not allowed.
       The time range has to be within a single calendar month in
       America/Los_Angeles timezone. Time range as a whole is optional. If not
       specified, the latest pricing will be returned (up to 12 hours old at
       most).
       
      .google.protobuf.Timestamp end_time = 3;
    • clearEndTime

      public ListSkusRequest.Builder clearEndTime()
       Optional exclusive end time of the time range for which the pricing
       versions will be returned. Timestamps in the future are not allowed.
       The time range has to be within a single calendar month in
       America/Los_Angeles timezone. Time range as a whole is optional. If not
       specified, the latest pricing will be returned (up to 12 hours old at
       most).
       
      .google.protobuf.Timestamp end_time = 3;
    • getEndTimeBuilder

      public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
       Optional exclusive end time of the time range for which the pricing
       versions will be returned. Timestamps in the future are not allowed.
       The time range has to be within a single calendar month in
       America/Los_Angeles timezone. Time range as a whole is optional. If not
       specified, the latest pricing will be returned (up to 12 hours old at
       most).
       
      .google.protobuf.Timestamp end_time = 3;
    • getEndTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
       Optional exclusive end time of the time range for which the pricing
       versions will be returned. Timestamps in the future are not allowed.
       The time range has to be within a single calendar month in
       America/Los_Angeles timezone. Time range as a whole is optional. If not
       specified, the latest pricing will be returned (up to 12 hours old at
       most).
       
      .google.protobuf.Timestamp end_time = 3;
      Specified by:
      getEndTimeOrBuilder in interface ListSkusRequestOrBuilder
    • getCurrencyCode

      public String getCurrencyCode()
       The ISO 4217 currency code for the pricing info in the response proto.
       Will use the conversion rate as of start_time.
       Optional. If not specified USD will be used.
       
      string currency_code = 4;
      Specified by:
      getCurrencyCode in interface ListSkusRequestOrBuilder
      Returns:
      The currencyCode.
    • getCurrencyCodeBytes

      public com.google.protobuf.ByteString getCurrencyCodeBytes()
       The ISO 4217 currency code for the pricing info in the response proto.
       Will use the conversion rate as of start_time.
       Optional. If not specified USD will be used.
       
      string currency_code = 4;
      Specified by:
      getCurrencyCodeBytes in interface ListSkusRequestOrBuilder
      Returns:
      The bytes for currencyCode.
    • setCurrencyCode

      public ListSkusRequest.Builder setCurrencyCode(String value)
       The ISO 4217 currency code for the pricing info in the response proto.
       Will use the conversion rate as of start_time.
       Optional. If not specified USD will be used.
       
      string currency_code = 4;
      Parameters:
      value - The currencyCode to set.
      Returns:
      This builder for chaining.
    • clearCurrencyCode

      public ListSkusRequest.Builder clearCurrencyCode()
       The ISO 4217 currency code for the pricing info in the response proto.
       Will use the conversion rate as of start_time.
       Optional. If not specified USD will be used.
       
      string currency_code = 4;
      Returns:
      This builder for chaining.
    • setCurrencyCodeBytes

      public ListSkusRequest.Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value)
       The ISO 4217 currency code for the pricing info in the response proto.
       Will use the conversion rate as of start_time.
       Optional. If not specified USD will be used.
       
      string currency_code = 4;
      Parameters:
      value - The bytes for currencyCode to set.
      Returns:
      This builder for chaining.
    • getPageSize

      public int getPageSize()
       Requested page size. Defaults to 5000.
       
      int32 page_size = 5;
      Specified by:
      getPageSize in interface ListSkusRequestOrBuilder
      Returns:
      The pageSize.
    • setPageSize

      public ListSkusRequest.Builder setPageSize(int value)
       Requested page size. Defaults to 5000.
       
      int32 page_size = 5;
      Parameters:
      value - The pageSize to set.
      Returns:
      This builder for chaining.
    • clearPageSize

      public ListSkusRequest.Builder clearPageSize()
       Requested page size. Defaults to 5000.
       
      int32 page_size = 5;
      Returns:
      This builder for chaining.
    • getPageToken

      public String getPageToken()
       A token identifying a page of results to return. This should be a
       `next_page_token` value returned from a previous `ListSkus`
       call. If unspecified, the first page of results is returned.
       
      string page_token = 6;
      Specified by:
      getPageToken in interface ListSkusRequestOrBuilder
      Returns:
      The pageToken.
    • getPageTokenBytes

      public com.google.protobuf.ByteString getPageTokenBytes()
       A token identifying a page of results to return. This should be a
       `next_page_token` value returned from a previous `ListSkus`
       call. If unspecified, the first page of results is returned.
       
      string page_token = 6;
      Specified by:
      getPageTokenBytes in interface ListSkusRequestOrBuilder
      Returns:
      The bytes for pageToken.
    • setPageToken

      public ListSkusRequest.Builder setPageToken(String value)
       A token identifying a page of results to return. This should be a
       `next_page_token` value returned from a previous `ListSkus`
       call. If unspecified, the first page of results is returned.
       
      string page_token = 6;
      Parameters:
      value - The pageToken to set.
      Returns:
      This builder for chaining.
    • clearPageToken

      public ListSkusRequest.Builder clearPageToken()
       A token identifying a page of results to return. This should be a
       `next_page_token` value returned from a previous `ListSkus`
       call. If unspecified, the first page of results is returned.
       
      string page_token = 6;
      Returns:
      This builder for chaining.
    • setPageTokenBytes

      public ListSkusRequest.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
       A token identifying a page of results to return. This should be a
       `next_page_token` value returned from a previous `ListSkus`
       call. If unspecified, the first page of results is returned.
       
      string page_token = 6;
      Parameters:
      value - The bytes for pageToken to set.
      Returns:
      This builder for chaining.