Class GuestPolicies.ListGuestPoliciesResponse.Builder (2.4.3)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.osconfig.v1beta.GuestPolicies.GuestPolicy>
Returns
TypeDescription
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
NameDescription
valueGuestPolicies.GuestPolicy
Returns
TypeDescription
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
NameDescription
builderForValueGuestPolicies.GuestPolicy.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueGuestPolicies.GuestPolicy
Returns
TypeDescription
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
NameDescription
indexint
builderForValueGuestPolicies.GuestPolicy.Builder
Returns
TypeDescription
GuestPolicies.ListGuestPoliciesResponse.Builder

addGuestPoliciesBuilder()

public GuestPolicies.GuestPolicy.Builder addGuestPoliciesBuilder()

The list of GuestPolicies.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
GuestPolicies.GuestPolicy.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GuestPolicies.ListGuestPoliciesResponse build()
Returns
TypeDescription
GuestPolicies.ListGuestPoliciesResponse

buildPartial()

public GuestPolicies.ListGuestPoliciesResponse buildPartial()
Returns
TypeDescription
GuestPolicies.ListGuestPoliciesResponse

clear()

public GuestPolicies.ListGuestPoliciesResponse.Builder clear()
Returns
TypeDescription
GuestPolicies.ListGuestPoliciesResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearGuestPolicies()

public GuestPolicies.ListGuestPoliciesResponse.Builder clearGuestPolicies()

The list of GuestPolicies.

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

Returns
TypeDescription
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
TypeDescription
GuestPolicies.ListGuestPoliciesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public GuestPolicies.ListGuestPoliciesResponse.Builder clone()
Returns
TypeDescription
GuestPolicies.ListGuestPoliciesResponse.Builder
Overrides

getDefaultInstanceForType()

public GuestPolicies.ListGuestPoliciesResponse getDefaultInstanceForType()
Returns
TypeDescription
GuestPolicies.ListGuestPoliciesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
GuestPolicies.GuestPolicy.Builder

getGuestPoliciesBuilderList()

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

The list of GuestPolicies.

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

Returns
TypeDescription
List<Builder>

getGuestPoliciesCount()

public int getGuestPoliciesCount()

The list of GuestPolicies.

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

Returns
TypeDescription
int

getGuestPoliciesList()

public List<GuestPolicies.GuestPolicy> getGuestPoliciesList()

The list of GuestPolicies.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
GuestPolicies.GuestPolicyOrBuilder

getGuestPoliciesOrBuilderList()

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

The list of GuestPolicies.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GuestPolicies.ListGuestPoliciesResponse other)

public GuestPolicies.ListGuestPoliciesResponse.Builder mergeFrom(GuestPolicies.ListGuestPoliciesResponse other)
Parameter
NameDescription
otherGuestPolicies.ListGuestPoliciesResponse
Returns
TypeDescription
GuestPolicies.ListGuestPoliciesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GuestPolicies.ListGuestPoliciesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
GuestPolicies.ListGuestPoliciesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GuestPolicies.ListGuestPoliciesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueGuestPolicies.GuestPolicy
Returns
TypeDescription
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
NameDescription
indexint
builderForValueGuestPolicies.GuestPolicy.Builder
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GuestPolicies.ListGuestPoliciesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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