Class ListPermittedScopesResponse.Builder (1.85.0)

public static final class ListPermittedScopesResponse.Builder extends GeneratedMessage.Builder<ListPermittedScopesResponse.Builder> implements ListPermittedScopesResponseOrBuilder

List of permitted Scopes.

Protobuf type google.cloud.gkehub.v1.ListPermittedScopesResponse

Static Methods

getDescriptor()

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

Methods

addAllScopes(Iterable<? extends Scope> values)

public ListPermittedScopesResponse.Builder addAllScopes(Iterable<? extends Scope> values)

The list of permitted Scopes

repeated .google.cloud.gkehub.v1.Scope scopes = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.gkehub.v1.Scope>
Returns
Type Description
ListPermittedScopesResponse.Builder

addScopes(Scope value)

public ListPermittedScopesResponse.Builder addScopes(Scope value)

The list of permitted Scopes

repeated .google.cloud.gkehub.v1.Scope scopes = 1;

Parameter
Name Description
value Scope
Returns
Type Description
ListPermittedScopesResponse.Builder

addScopes(Scope.Builder builderForValue)

public ListPermittedScopesResponse.Builder addScopes(Scope.Builder builderForValue)

The list of permitted Scopes

repeated .google.cloud.gkehub.v1.Scope scopes = 1;

Parameter
Name Description
builderForValue Scope.Builder
Returns
Type Description
ListPermittedScopesResponse.Builder

addScopes(int index, Scope value)

public ListPermittedScopesResponse.Builder addScopes(int index, Scope value)

The list of permitted Scopes

repeated .google.cloud.gkehub.v1.Scope scopes = 1;

Parameters
Name Description
index int
value Scope
Returns
Type Description
ListPermittedScopesResponse.Builder

addScopes(int index, Scope.Builder builderForValue)

public ListPermittedScopesResponse.Builder addScopes(int index, Scope.Builder builderForValue)

The list of permitted Scopes

repeated .google.cloud.gkehub.v1.Scope scopes = 1;

Parameters
Name Description
index int
builderForValue Scope.Builder
Returns
Type Description
ListPermittedScopesResponse.Builder

addScopesBuilder()

public Scope.Builder addScopesBuilder()

The list of permitted Scopes

repeated .google.cloud.gkehub.v1.Scope scopes = 1;

Returns
Type Description
Scope.Builder

addScopesBuilder(int index)

public Scope.Builder addScopesBuilder(int index)

The list of permitted Scopes

repeated .google.cloud.gkehub.v1.Scope scopes = 1;

Parameter
Name Description
index int
Returns
Type Description
Scope.Builder

build()

public ListPermittedScopesResponse build()
Returns
Type Description
ListPermittedScopesResponse

buildPartial()

public ListPermittedScopesResponse buildPartial()
Returns
Type Description
ListPermittedScopesResponse

clear()

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

clearNextPageToken()

public ListPermittedScopesResponse.Builder clearNextPageToken()

A token to request the next page of resources from the ListPermittedScopes method. The value of an empty string means that there are no more resources to return.

string next_page_token = 2;

Returns
Type Description
ListPermittedScopesResponse.Builder

This builder for chaining.

clearScopes()

public ListPermittedScopesResponse.Builder clearScopes()

The list of permitted Scopes

repeated .google.cloud.gkehub.v1.Scope scopes = 1;

Returns
Type Description
ListPermittedScopesResponse.Builder

getDefaultInstanceForType()

public ListPermittedScopesResponse getDefaultInstanceForType()
Returns
Type Description
ListPermittedScopesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token to request the next page of resources from the ListPermittedScopes method. The value of an empty string means that there are no more resources to return.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token to request the next page of resources from the ListPermittedScopes method. The value of an empty string means that there are no more resources to return.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getScopes(int index)

public Scope getScopes(int index)

The list of permitted Scopes

repeated .google.cloud.gkehub.v1.Scope scopes = 1;

Parameter
Name Description
index int
Returns
Type Description
Scope

getScopesBuilder(int index)

public Scope.Builder getScopesBuilder(int index)

The list of permitted Scopes

repeated .google.cloud.gkehub.v1.Scope scopes = 1;

Parameter
Name Description
index int
Returns
Type Description
Scope.Builder

getScopesBuilderList()

public List<Scope.Builder> getScopesBuilderList()

The list of permitted Scopes

repeated .google.cloud.gkehub.v1.Scope scopes = 1;

Returns
Type Description
List<Builder>

getScopesCount()

public int getScopesCount()

The list of permitted Scopes

repeated .google.cloud.gkehub.v1.Scope scopes = 1;

Returns
Type Description
int

getScopesList()

public List<Scope> getScopesList()

The list of permitted Scopes

repeated .google.cloud.gkehub.v1.Scope scopes = 1;

Returns
Type Description
List<Scope>

getScopesOrBuilder(int index)

public ScopeOrBuilder getScopesOrBuilder(int index)

The list of permitted Scopes

repeated .google.cloud.gkehub.v1.Scope scopes = 1;

Parameter
Name Description
index int
Returns
Type Description
ScopeOrBuilder

getScopesOrBuilderList()

public List<? extends ScopeOrBuilder> getScopesOrBuilderList()

The list of permitted Scopes

repeated .google.cloud.gkehub.v1.Scope scopes = 1;

Returns
Type Description
List<? extends com.google.cloud.gkehub.v1.ScopeOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListPermittedScopesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeScopes(int index)

public ListPermittedScopesResponse.Builder removeScopes(int index)

The list of permitted Scopes

repeated .google.cloud.gkehub.v1.Scope scopes = 1;

Parameter
Name Description
index int
Returns
Type Description
ListPermittedScopesResponse.Builder

setNextPageToken(String value)

public ListPermittedScopesResponse.Builder setNextPageToken(String value)

A token to request the next page of resources from the ListPermittedScopes method. The value of an empty string means that there are no more resources to return.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListPermittedScopesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListPermittedScopesResponse.Builder setNextPageTokenBytes(ByteString value)

A token to request the next page of resources from the ListPermittedScopes method. The value of an empty string means that there are no more resources to return.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListPermittedScopesResponse.Builder

This builder for chaining.

setScopes(int index, Scope value)

public ListPermittedScopesResponse.Builder setScopes(int index, Scope value)

The list of permitted Scopes

repeated .google.cloud.gkehub.v1.Scope scopes = 1;

Parameters
Name Description
index int
value Scope
Returns
Type Description
ListPermittedScopesResponse.Builder

setScopes(int index, Scope.Builder builderForValue)

public ListPermittedScopesResponse.Builder setScopes(int index, Scope.Builder builderForValue)

The list of permitted Scopes

repeated .google.cloud.gkehub.v1.Scope scopes = 1;

Parameters
Name Description
index int
builderForValue Scope.Builder
Returns
Type Description
ListPermittedScopesResponse.Builder