Class 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.GeneratedMessageV3.Builder<ListSkusRequest.Builder>
    implements ListSkusRequestOrBuilder
     Request message for `ListSkus`.
     
    Protobuf type google.cloud.billing.v1.ListSkusRequest
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public ListSkusRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ListSkusRequest.Builder>
      • setField

        public ListSkusRequest.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ListSkusRequest.Builder>
      • clearField

        public ListSkusRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ListSkusRequest.Builder>
      • clearOneof

        public ListSkusRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ListSkusRequest.Builder>
      • setRepeatedField

        public ListSkusRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ListSkusRequest.Builder>
      • addRepeatedField

        public ListSkusRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ListSkusRequest.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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/DA34-426B-A397"
         
        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/DA34-426B-A397"
         
        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/DA34-426B-A397"
         
        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/DA34-426B-A397"
         
        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/DA34-426B-A397"
         
        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.
      • setUnknownFields

        public final ListSkusRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ListSkusRequest.Builder>
      • mergeUnknownFields

        public final ListSkusRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ListSkusRequest.Builder>