Class AllocationReservationSharingPolicy.Builder (1.93.0)

public static final class AllocationReservationSharingPolicy.Builder extends GeneratedMessage.Builder<AllocationReservationSharingPolicy.Builder> implements AllocationReservationSharingPolicyOrBuilder

Protobuf type google.cloud.compute.v1.AllocationReservationSharingPolicy

Static Methods

getDescriptor()

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

Methods

build()

public AllocationReservationSharingPolicy build()
Returns
Type Description
AllocationReservationSharingPolicy

buildPartial()

public AllocationReservationSharingPolicy buildPartial()
Returns
Type Description
AllocationReservationSharingPolicy

clear()

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

clearServiceShareType()

public AllocationReservationSharingPolicy.Builder clearServiceShareType()

Sharing config for all Google Cloud services. Check the ServiceShareType enum for the list of possible values.

optional string service_share_type = 514508644;

Returns
Type Description
AllocationReservationSharingPolicy.Builder

This builder for chaining.

getDefaultInstanceForType()

public AllocationReservationSharingPolicy getDefaultInstanceForType()
Returns
Type Description
AllocationReservationSharingPolicy

getDescriptorForType()

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

getServiceShareType()

public String getServiceShareType()

Sharing config for all Google Cloud services. Check the ServiceShareType enum for the list of possible values.

optional string service_share_type = 514508644;

Returns
Type Description
String

The serviceShareType.

getServiceShareTypeBytes()

public ByteString getServiceShareTypeBytes()

Sharing config for all Google Cloud services. Check the ServiceShareType enum for the list of possible values.

optional string service_share_type = 514508644;

Returns
Type Description
ByteString

The bytes for serviceShareType.

hasServiceShareType()

public boolean hasServiceShareType()

Sharing config for all Google Cloud services. Check the ServiceShareType enum for the list of possible values.

optional string service_share_type = 514508644;

Returns
Type Description
boolean

Whether the serviceShareType field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AllocationReservationSharingPolicy other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setServiceShareType(String value)

public AllocationReservationSharingPolicy.Builder setServiceShareType(String value)

Sharing config for all Google Cloud services. Check the ServiceShareType enum for the list of possible values.

optional string service_share_type = 514508644;

Parameter
Name Description
value String

The serviceShareType to set.

Returns
Type Description
AllocationReservationSharingPolicy.Builder

This builder for chaining.

setServiceShareTypeBytes(ByteString value)

public AllocationReservationSharingPolicy.Builder setServiceShareTypeBytes(ByteString value)

Sharing config for all Google Cloud services. Check the ServiceShareType enum for the list of possible values.

optional string service_share_type = 514508644;

Parameter
Name Description
value ByteString

The bytes for serviceShareType to set.

Returns
Type Description
AllocationReservationSharingPolicy.Builder

This builder for chaining.