Class ListHmacKeysRequest.Builder (2.20.0)

public static final class ListHmacKeysRequest.Builder extends GeneratedMessageV3.Builder<ListHmacKeysRequest.Builder> implements ListHmacKeysRequestOrBuilder

Request to fetch a list of HMAC keys under a given project.

Protobuf type google.storage.v2.ListHmacKeysRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListHmacKeysRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListHmacKeysRequest.Builder
Overrides

build()

public ListHmacKeysRequest build()
Returns
TypeDescription
ListHmacKeysRequest

buildPartial()

public ListHmacKeysRequest buildPartial()
Returns
TypeDescription
ListHmacKeysRequest

clear()

public ListHmacKeysRequest.Builder clear()
Returns
TypeDescription
ListHmacKeysRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListHmacKeysRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListHmacKeysRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ListHmacKeysRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListHmacKeysRequest.Builder
Overrides

clearPageSize()

public ListHmacKeysRequest.Builder clearPageSize()

The maximum number of keys to return.

int32 page_size = 2;

Returns
TypeDescription
ListHmacKeysRequest.Builder

This builder for chaining.

clearPageToken()

public ListHmacKeysRequest.Builder clearPageToken()

A previously returned token from ListHmacKeysResponse to get the next page.

string page_token = 3;

Returns
TypeDescription
ListHmacKeysRequest.Builder

This builder for chaining.

clearProject()

public ListHmacKeysRequest.Builder clearProject()

Required. The project to list HMAC keys for, in the format of "projects/<projectIdentifier>". <projectIdentifier> can be the project ID or project number.

string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ListHmacKeysRequest.Builder

This builder for chaining.

clearServiceAccountEmail()

public ListHmacKeysRequest.Builder clearServiceAccountEmail()

If set, filters to only return HMAC keys for specified service account.

string service_account_email = 4;

Returns
TypeDescription
ListHmacKeysRequest.Builder

This builder for chaining.

clearShowDeletedKeys()

public ListHmacKeysRequest.Builder clearShowDeletedKeys()

If set, return deleted keys that have not yet been wiped out.

bool show_deleted_keys = 5;

Returns
TypeDescription
ListHmacKeysRequest.Builder

This builder for chaining.

clone()

public ListHmacKeysRequest.Builder clone()
Returns
TypeDescription
ListHmacKeysRequest.Builder
Overrides

getDefaultInstanceForType()

public ListHmacKeysRequest getDefaultInstanceForType()
Returns
TypeDescription
ListHmacKeysRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPageSize()

public int getPageSize()

The maximum number of keys to return.

int32 page_size = 2;

Returns
TypeDescription
int

The pageSize.

getPageToken()

public String getPageToken()

A previously returned token from ListHmacKeysResponse to get the next page.

string page_token = 3;

Returns
TypeDescription
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

A previously returned token from ListHmacKeysResponse to get the next page.

string page_token = 3;

Returns
TypeDescription
ByteString

The bytes for pageToken.

getProject()

public String getProject()

Required. The project to list HMAC keys for, in the format of "projects/<projectIdentifier>". <projectIdentifier> can be the project ID or project number.

string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Required. The project to list HMAC keys for, in the format of "projects/<projectIdentifier>". <projectIdentifier> can be the project ID or project number.

string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for project.

getServiceAccountEmail()

public String getServiceAccountEmail()

If set, filters to only return HMAC keys for specified service account.

string service_account_email = 4;

Returns
TypeDescription
String

The serviceAccountEmail.

getServiceAccountEmailBytes()

public ByteString getServiceAccountEmailBytes()

If set, filters to only return HMAC keys for specified service account.

string service_account_email = 4;

Returns
TypeDescription
ByteString

The bytes for serviceAccountEmail.

getShowDeletedKeys()

public boolean getShowDeletedKeys()

If set, return deleted keys that have not yet been wiped out.

bool show_deleted_keys = 5;

Returns
TypeDescription
boolean

The showDeletedKeys.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListHmacKeysRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListHmacKeysRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListHmacKeysRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListHmacKeysRequest.Builder
Overrides

mergeFrom(ListHmacKeysRequest other)

public ListHmacKeysRequest.Builder mergeFrom(ListHmacKeysRequest other)
Parameter
NameDescription
otherListHmacKeysRequest
Returns
TypeDescription
ListHmacKeysRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListHmacKeysRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListHmacKeysRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ListHmacKeysRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListHmacKeysRequest.Builder
Overrides

setPageSize(int value)

public ListHmacKeysRequest.Builder setPageSize(int value)

The maximum number of keys to return.

int32 page_size = 2;

Parameter
NameDescription
valueint

The pageSize to set.

Returns
TypeDescription
ListHmacKeysRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListHmacKeysRequest.Builder setPageToken(String value)

A previously returned token from ListHmacKeysResponse to get the next page.

string page_token = 3;

Parameter
NameDescription
valueString

The pageToken to set.

Returns
TypeDescription
ListHmacKeysRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListHmacKeysRequest.Builder setPageTokenBytes(ByteString value)

A previously returned token from ListHmacKeysResponse to get the next page.

string page_token = 3;

Parameter
NameDescription
valueByteString

The bytes for pageToken to set.

Returns
TypeDescription
ListHmacKeysRequest.Builder

This builder for chaining.

setProject(String value)

public ListHmacKeysRequest.Builder setProject(String value)

Required. The project to list HMAC keys for, in the format of "projects/<projectIdentifier>". <projectIdentifier> can be the project ID or project number.

string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The project to set.

Returns
TypeDescription
ListHmacKeysRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public ListHmacKeysRequest.Builder setProjectBytes(ByteString value)

Required. The project to list HMAC keys for, in the format of "projects/<projectIdentifier>". <projectIdentifier> can be the project ID or project number.

string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for project to set.

Returns
TypeDescription
ListHmacKeysRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ListHmacKeysRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListHmacKeysRequest.Builder
Overrides

setServiceAccountEmail(String value)

public ListHmacKeysRequest.Builder setServiceAccountEmail(String value)

If set, filters to only return HMAC keys for specified service account.

string service_account_email = 4;

Parameter
NameDescription
valueString

The serviceAccountEmail to set.

Returns
TypeDescription
ListHmacKeysRequest.Builder

This builder for chaining.

setServiceAccountEmailBytes(ByteString value)

public ListHmacKeysRequest.Builder setServiceAccountEmailBytes(ByteString value)

If set, filters to only return HMAC keys for specified service account.

string service_account_email = 4;

Parameter
NameDescription
valueByteString

The bytes for serviceAccountEmail to set.

Returns
TypeDescription
ListHmacKeysRequest.Builder

This builder for chaining.

setShowDeletedKeys(boolean value)

public ListHmacKeysRequest.Builder setShowDeletedKeys(boolean value)

If set, return deleted keys that have not yet been wiped out.

bool show_deleted_keys = 5;

Parameter
NameDescription
valueboolean

The showDeletedKeys to set.

Returns
TypeDescription
ListHmacKeysRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ListHmacKeysRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListHmacKeysRequest.Builder
Overrides