Class GuestPolicies.ListGuestPoliciesResponse.Builder (2.56.0)

public static final class GuestPolicies.ListGuestPoliciesResponse.Builder extends GeneratedMessageV3.Builder<GuestPolicies.ListGuestPoliciesResponse.Builder> implements GuestPolicies.ListGuestPoliciesResponseOrBuilder

A response message for listing guest policies.

Protobuf type google.cloud.osconfig.v1beta.ListGuestPoliciesResponse

Static Methods

getDescriptor()

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

Methods

addAllGuestPolicies(Iterable<? extends GuestPolicies.GuestPolicy> values)

public GuestPolicies.ListGuestPoliciesResponse.Builder addAllGuestPolicies(Iterable<? extends GuestPolicies.GuestPolicy> values)

The list of GuestPolicies.

repeated .google.cloud.osconfig.v1beta.GuestPolicy guest_policies = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.osconfig.v1beta.GuestPolicies.GuestPolicy>
Returns
Type Description
GuestPolicies.ListGuestPoliciesResponse.Builder

addGuestPolicies(GuestPolicies.GuestPolicy value)

public GuestPolicies.ListGuestPoliciesResponse.Builder addGuestPolicies(GuestPolicies.GuestPolicy value)

The list of GuestPolicies.

repeated .google.cloud.osconfig.v1beta.GuestPolicy guest_policies = 1;

Parameter
Name Description
value GuestPolicies.GuestPolicy
Returns
Type Description
GuestPolicies.ListGuestPoliciesResponse.Builder

addGuestPolicies(GuestPolicies.GuestPolicy.Builder builderForValue)

public GuestPolicies.ListGuestPoliciesResponse.Builder addGuestPolicies(GuestPolicies.GuestPolicy.Builder builderForValue)

The list of GuestPolicies.

repeated .google.cloud.osconfig.v1beta.GuestPolicy guest_policies = 1;

Parameter
Name Description
builderForValue GuestPolicies.GuestPolicy.Builder
Returns
Type Description
GuestPolicies.ListGuestPoliciesResponse.Builder

addGuestPolicies(int index, GuestPolicies.GuestPolicy value)

public GuestPolicies.ListGuestPoliciesResponse.Builder addGuestPolicies(int index, GuestPolicies.GuestPolicy value)

The list of GuestPolicies.

repeated .google.cloud.osconfig.v1beta.GuestPolicy guest_policies = 1;

Parameters
Name Description
index int
value GuestPolicies.GuestPolicy
Returns
Type Description
GuestPolicies.ListGuestPoliciesResponse.Builder

addGuestPolicies(int index, GuestPolicies.GuestPolicy.Builder builderForValue)

public GuestPolicies.ListGuestPoliciesResponse.Builder addGuestPolicies(int index, GuestPolicies.GuestPolicy.Builder builderForValue)

The list of GuestPolicies.

repeated .google.cloud.osconfig.v1beta.GuestPolicy guest_policies = 1;

Parameters
Name Description
index int
builderForValue GuestPolicies.GuestPolicy.Builder
Returns
Type Description
GuestPolicies.ListGuestPoliciesResponse.Builder

addGuestPoliciesBuilder()

public GuestPolicies.GuestPolicy.Builder addGuestPoliciesBuilder()

The list of GuestPolicies.

repeated .google.cloud.osconfig.v1beta.GuestPolicy guest_policies = 1;

Returns
Type Description
GuestPolicies.GuestPolicy.Builder

addGuestPoliciesBuilder(int index)

public GuestPolicies.GuestPolicy.Builder addGuestPoliciesBuilder(int index)

The list of GuestPolicies.

repeated .google.cloud.osconfig.v1beta.GuestPolicy guest_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
GuestPolicies.GuestPolicy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GuestPolicies.ListGuestPoliciesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GuestPolicies.ListGuestPoliciesResponse.Builder
Overrides

build()

public GuestPolicies.ListGuestPoliciesResponse build()
Returns
Type Description
GuestPolicies.ListGuestPoliciesResponse

buildPartial()

public GuestPolicies.ListGuestPoliciesResponse buildPartial()
Returns
Type Description
GuestPolicies.ListGuestPoliciesResponse

clear()

public GuestPolicies.ListGuestPoliciesResponse.Builder clear()
Returns
Type Description
GuestPolicies.ListGuestPoliciesResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GuestPolicies.ListGuestPoliciesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GuestPolicies.ListGuestPoliciesResponse.Builder
Overrides

clearGuestPolicies()

public GuestPolicies.ListGuestPoliciesResponse.Builder clearGuestPolicies()

The list of GuestPolicies.

repeated .google.cloud.osconfig.v1beta.GuestPolicy guest_policies = 1;

Returns
Type Description
GuestPolicies.ListGuestPoliciesResponse.Builder

clearNextPageToken()

public GuestPolicies.ListGuestPoliciesResponse.Builder clearNextPageToken()

A pagination token that can be used to get the next page of guest policies.

string next_page_token = 2;

Returns
Type Description
GuestPolicies.ListGuestPoliciesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GuestPolicies.ListGuestPoliciesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GuestPolicies.ListGuestPoliciesResponse.Builder
Overrides

clone()

public GuestPolicies.ListGuestPoliciesResponse.Builder clone()
Returns
Type Description
GuestPolicies.ListGuestPoliciesResponse.Builder
Overrides

getDefaultInstanceForType()

public GuestPolicies.ListGuestPoliciesResponse getDefaultInstanceForType()
Returns
Type Description
GuestPolicies.ListGuestPoliciesResponse

getDescriptorForType()

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

getGuestPolicies(int index)

public GuestPolicies.GuestPolicy getGuestPolicies(int index)

The list of GuestPolicies.

repeated .google.cloud.osconfig.v1beta.GuestPolicy guest_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
GuestPolicies.GuestPolicy

getGuestPoliciesBuilder(int index)

public GuestPolicies.GuestPolicy.Builder getGuestPoliciesBuilder(int index)

The list of GuestPolicies.

repeated .google.cloud.osconfig.v1beta.GuestPolicy guest_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
GuestPolicies.GuestPolicy.Builder

getGuestPoliciesBuilderList()

public List<GuestPolicies.GuestPolicy.Builder> getGuestPoliciesBuilderList()

The list of GuestPolicies.

repeated .google.cloud.osconfig.v1beta.GuestPolicy guest_policies = 1;

Returns
Type Description
List<Builder>

getGuestPoliciesCount()

public int getGuestPoliciesCount()

The list of GuestPolicies.

repeated .google.cloud.osconfig.v1beta.GuestPolicy guest_policies = 1;

Returns
Type Description
int

getGuestPoliciesList()

public List<GuestPolicies.GuestPolicy> getGuestPoliciesList()

The list of GuestPolicies.

repeated .google.cloud.osconfig.v1beta.GuestPolicy guest_policies = 1;

Returns
Type Description
List<GuestPolicy>

getGuestPoliciesOrBuilder(int index)

public GuestPolicies.GuestPolicyOrBuilder getGuestPoliciesOrBuilder(int index)

The list of GuestPolicies.

repeated .google.cloud.osconfig.v1beta.GuestPolicy guest_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
GuestPolicies.GuestPolicyOrBuilder

getGuestPoliciesOrBuilderList()

public List<? extends GuestPolicies.GuestPolicyOrBuilder> getGuestPoliciesOrBuilderList()

The list of GuestPolicies.

repeated .google.cloud.osconfig.v1beta.GuestPolicy guest_policies = 1;

Returns
Type Description
List<? extends com.google.cloud.osconfig.v1beta.GuestPolicies.GuestPolicyOrBuilder>

getNextPageToken()

public String getNextPageToken()

A pagination token that can be used to get the next page of guest policies.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A pagination token that can be used to get the next page of guest policies.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GuestPolicies.ListGuestPoliciesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GuestPolicies.ListGuestPoliciesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GuestPolicies.ListGuestPoliciesResponse.Builder
Overrides

removeGuestPolicies(int index)

public GuestPolicies.ListGuestPoliciesResponse.Builder removeGuestPolicies(int index)

The list of GuestPolicies.

repeated .google.cloud.osconfig.v1beta.GuestPolicy guest_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
GuestPolicies.ListGuestPoliciesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GuestPolicies.ListGuestPoliciesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GuestPolicies.ListGuestPoliciesResponse.Builder
Overrides

setGuestPolicies(int index, GuestPolicies.GuestPolicy value)

public GuestPolicies.ListGuestPoliciesResponse.Builder setGuestPolicies(int index, GuestPolicies.GuestPolicy value)

The list of GuestPolicies.

repeated .google.cloud.osconfig.v1beta.GuestPolicy guest_policies = 1;

Parameters
Name Description
index int
value GuestPolicies.GuestPolicy
Returns
Type Description
GuestPolicies.ListGuestPoliciesResponse.Builder

setGuestPolicies(int index, GuestPolicies.GuestPolicy.Builder builderForValue)

public GuestPolicies.ListGuestPoliciesResponse.Builder setGuestPolicies(int index, GuestPolicies.GuestPolicy.Builder builderForValue)

The list of GuestPolicies.

repeated .google.cloud.osconfig.v1beta.GuestPolicy guest_policies = 1;

Parameters
Name Description
index int
builderForValue GuestPolicies.GuestPolicy.Builder
Returns
Type Description
GuestPolicies.ListGuestPoliciesResponse.Builder

setNextPageToken(String value)

public GuestPolicies.ListGuestPoliciesResponse.Builder setNextPageToken(String value)

A pagination token that can be used to get the next page of guest policies.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
GuestPolicies.ListGuestPoliciesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public GuestPolicies.ListGuestPoliciesResponse.Builder setNextPageTokenBytes(ByteString value)

A pagination token that can be used to get the next page of guest policies.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
GuestPolicies.ListGuestPoliciesResponse.Builder

This builder for chaining.

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

public GuestPolicies.ListGuestPoliciesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GuestPolicies.ListGuestPoliciesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GuestPolicies.ListGuestPoliciesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GuestPolicies.ListGuestPoliciesResponse.Builder
Overrides