Class RequestOptions.Builder (3.3.0)

public static final class RequestOptions.Builder extends GeneratedMessage.Builder<RequestOptions.Builder> implements RequestOptionsOrBuilder

Options for a request.

Protobuf type google.datastore.v1.RequestOptions

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllRequestTags(Iterable<String> values)

public RequestOptions.Builder addAllRequestTags(Iterable<String> values)

Optional. The request tags for the request. The tags are processed as follows:

  • Truncated to 510 characters.
  • Filtered out if empty.
  • Deduplicated.
  • Limited to 50 tags.

repeated string request_tags = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The requestTags to add.

Returns
Type Description
RequestOptions.Builder

This builder for chaining.

addRequestTags(String value)

public RequestOptions.Builder addRequestTags(String value)

Optional. The request tags for the request. The tags are processed as follows:

  • Truncated to 510 characters.
  • Filtered out if empty.
  • Deduplicated.
  • Limited to 50 tags.

repeated string request_tags = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The requestTags to add.

Returns
Type Description
RequestOptions.Builder

This builder for chaining.

addRequestTagsBytes(ByteString value)

public RequestOptions.Builder addRequestTagsBytes(ByteString value)

Optional. The request tags for the request. The tags are processed as follows:

  • Truncated to 510 characters.
  • Filtered out if empty.
  • Deduplicated.
  • Limited to 50 tags.

repeated string request_tags = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the requestTags to add.

Returns
Type Description
RequestOptions.Builder

This builder for chaining.

build()

public RequestOptions build()
Returns
Type Description
RequestOptions

buildPartial()

public RequestOptions buildPartial()
Returns
Type Description
RequestOptions

clear()

public RequestOptions.Builder clear()
Returns
Type Description
RequestOptions.Builder
Overrides

clearRequestTags()

public RequestOptions.Builder clearRequestTags()

Optional. The request tags for the request. The tags are processed as follows:

  • Truncated to 510 characters.
  • Filtered out if empty.
  • Deduplicated.
  • Limited to 50 tags.

repeated string request_tags = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RequestOptions.Builder

This builder for chaining.

getDefaultInstanceForType()

public RequestOptions getDefaultInstanceForType()
Returns
Type Description
RequestOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRequestTags(int index)

public String getRequestTags(int index)

Optional. The request tags for the request. The tags are processed as follows:

  • Truncated to 510 characters.
  • Filtered out if empty.
  • Deduplicated.
  • Limited to 50 tags.

repeated string request_tags = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The requestTags at the given index.

getRequestTagsBytes(int index)

public ByteString getRequestTagsBytes(int index)

Optional. The request tags for the request. The tags are processed as follows:

  • Truncated to 510 characters.
  • Filtered out if empty.
  • Deduplicated.
  • Limited to 50 tags.

repeated string request_tags = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the requestTags at the given index.

getRequestTagsCount()

public int getRequestTagsCount()

Optional. The request tags for the request. The tags are processed as follows:

  • Truncated to 510 characters.
  • Filtered out if empty.
  • Deduplicated.
  • Limited to 50 tags.

repeated string request_tags = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of requestTags.

getRequestTagsList()

public ProtocolStringList getRequestTagsList()

Optional. The request tags for the request. The tags are processed as follows:

  • Truncated to 510 characters.
  • Filtered out if empty.
  • Deduplicated.
  • Limited to 50 tags.

repeated string request_tags = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the requestTags.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RequestOptions other)

public RequestOptions.Builder mergeFrom(RequestOptions other)
Parameter
Name Description
other RequestOptions
Returns
Type Description
RequestOptions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RequestOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RequestOptions.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RequestOptions.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RequestOptions.Builder
Overrides

setRequestTags(int index, String value)

public RequestOptions.Builder setRequestTags(int index, String value)

Optional. The request tags for the request. The tags are processed as follows:

  • Truncated to 510 characters.
  • Filtered out if empty.
  • Deduplicated.
  • Limited to 50 tags.

repeated string request_tags = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The requestTags to set.

Returns
Type Description
RequestOptions.Builder

This builder for chaining.