Class ServiceAttachmentConsumerProjectLimit.Builder (1.54.0)

public static final class ServiceAttachmentConsumerProjectLimit.Builder extends GeneratedMessageV3.Builder<ServiceAttachmentConsumerProjectLimit.Builder> implements ServiceAttachmentConsumerProjectLimitOrBuilder

Protobuf type google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ServiceAttachmentConsumerProjectLimit build()
Returns
Type Description
ServiceAttachmentConsumerProjectLimit

buildPartial()

public ServiceAttachmentConsumerProjectLimit buildPartial()
Returns
Type Description
ServiceAttachmentConsumerProjectLimit

clear()

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

clearConnectionLimit()

public ServiceAttachmentConsumerProjectLimit.Builder clearConnectionLimit()

The value of the limit to set.

optional uint32 connection_limit = 131403546;

Returns
Type Description
ServiceAttachmentConsumerProjectLimit.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearNetworkUrl()

public ServiceAttachmentConsumerProjectLimit.Builder clearNetworkUrl()

The network URL for the network to set the limit for.

optional string network_url = 207194078;

Returns
Type Description
ServiceAttachmentConsumerProjectLimit.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectIdOrNum()

public ServiceAttachmentConsumerProjectLimit.Builder clearProjectIdOrNum()

The project id or number for the project to set the limit for.

optional string project_id_or_num = 349783336;

Returns
Type Description
ServiceAttachmentConsumerProjectLimit.Builder

This builder for chaining.

clone()

public ServiceAttachmentConsumerProjectLimit.Builder clone()
Returns
Type Description
ServiceAttachmentConsumerProjectLimit.Builder
Overrides

getConnectionLimit()

public int getConnectionLimit()

The value of the limit to set.

optional uint32 connection_limit = 131403546;

Returns
Type Description
int

The connectionLimit.

getDefaultInstanceForType()

public ServiceAttachmentConsumerProjectLimit getDefaultInstanceForType()
Returns
Type Description
ServiceAttachmentConsumerProjectLimit

getDescriptorForType()

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

getNetworkUrl()

public String getNetworkUrl()

The network URL for the network to set the limit for.

optional string network_url = 207194078;

Returns
Type Description
String

The networkUrl.

getNetworkUrlBytes()

public ByteString getNetworkUrlBytes()

The network URL for the network to set the limit for.

optional string network_url = 207194078;

Returns
Type Description
ByteString

The bytes for networkUrl.

getProjectIdOrNum()

public String getProjectIdOrNum()

The project id or number for the project to set the limit for.

optional string project_id_or_num = 349783336;

Returns
Type Description
String

The projectIdOrNum.

getProjectIdOrNumBytes()

public ByteString getProjectIdOrNumBytes()

The project id or number for the project to set the limit for.

optional string project_id_or_num = 349783336;

Returns
Type Description
ByteString

The bytes for projectIdOrNum.

hasConnectionLimit()

public boolean hasConnectionLimit()

The value of the limit to set.

optional uint32 connection_limit = 131403546;

Returns
Type Description
boolean

Whether the connectionLimit field is set.

hasNetworkUrl()

public boolean hasNetworkUrl()

The network URL for the network to set the limit for.

optional string network_url = 207194078;

Returns
Type Description
boolean

Whether the networkUrl field is set.

hasProjectIdOrNum()

public boolean hasProjectIdOrNum()

The project id or number for the project to set the limit for.

optional string project_id_or_num = 349783336;

Returns
Type Description
boolean

Whether the projectIdOrNum field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ServiceAttachmentConsumerProjectLimit other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConnectionLimit(int value)

public ServiceAttachmentConsumerProjectLimit.Builder setConnectionLimit(int value)

The value of the limit to set.

optional uint32 connection_limit = 131403546;

Parameter
Name Description
value int

The connectionLimit to set.

Returns
Type Description
ServiceAttachmentConsumerProjectLimit.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setNetworkUrl(String value)

public ServiceAttachmentConsumerProjectLimit.Builder setNetworkUrl(String value)

The network URL for the network to set the limit for.

optional string network_url = 207194078;

Parameter
Name Description
value String

The networkUrl to set.

Returns
Type Description
ServiceAttachmentConsumerProjectLimit.Builder

This builder for chaining.

setNetworkUrlBytes(ByteString value)

public ServiceAttachmentConsumerProjectLimit.Builder setNetworkUrlBytes(ByteString value)

The network URL for the network to set the limit for.

optional string network_url = 207194078;

Parameter
Name Description
value ByteString

The bytes for networkUrl to set.

Returns
Type Description
ServiceAttachmentConsumerProjectLimit.Builder

This builder for chaining.

setProjectIdOrNum(String value)

public ServiceAttachmentConsumerProjectLimit.Builder setProjectIdOrNum(String value)

The project id or number for the project to set the limit for.

optional string project_id_or_num = 349783336;

Parameter
Name Description
value String

The projectIdOrNum to set.

Returns
Type Description
ServiceAttachmentConsumerProjectLimit.Builder

This builder for chaining.

setProjectIdOrNumBytes(ByteString value)

public ServiceAttachmentConsumerProjectLimit.Builder setProjectIdOrNumBytes(ByteString value)

The project id or number for the project to set the limit for.

optional string project_id_or_num = 349783336;

Parameter
Name Description
value ByteString

The bytes for projectIdOrNum to set.

Returns
Type Description
ServiceAttachmentConsumerProjectLimit.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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