Class ServiceAttachmentConsumerProjectLimit.Builder (1.7.2)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ServiceAttachmentConsumerProjectLimit build()
Returns
TypeDescription
ServiceAttachmentConsumerProjectLimit

buildPartial()

public ServiceAttachmentConsumerProjectLimit buildPartial()
Returns
TypeDescription
ServiceAttachmentConsumerProjectLimit

clear()

public ServiceAttachmentConsumerProjectLimit.Builder clear()
Returns
TypeDescription
ServiceAttachmentConsumerProjectLimit.Builder
Overrides

clearConnectionLimit()

public ServiceAttachmentConsumerProjectLimit.Builder clearConnectionLimit()

The value of the limit to set.

optional uint32 connection_limit = 131403546;

Returns
TypeDescription
ServiceAttachmentConsumerProjectLimit.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ServiceAttachmentConsumerProjectLimit.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ServiceAttachmentConsumerProjectLimit.Builder

This builder for chaining.

clone()

public ServiceAttachmentConsumerProjectLimit.Builder clone()
Returns
TypeDescription
ServiceAttachmentConsumerProjectLimit.Builder
Overrides

getConnectionLimit()

public int getConnectionLimit()

The value of the limit to set.

optional uint32 connection_limit = 131403546;

Returns
TypeDescription
int

The connectionLimit.

getDefaultInstanceForType()

public ServiceAttachmentConsumerProjectLimit getDefaultInstanceForType()
Returns
TypeDescription
ServiceAttachmentConsumerProjectLimit

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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

The bytes for projectIdOrNum.

hasConnectionLimit()

public boolean hasConnectionLimit()

The value of the limit to set.

optional uint32 connection_limit = 131403546;

Returns
TypeDescription
boolean

Whether the connectionLimit 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
TypeDescription
boolean

Whether the projectIdOrNum field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ServiceAttachmentConsumerProjectLimit other)

public ServiceAttachmentConsumerProjectLimit.Builder mergeFrom(ServiceAttachmentConsumerProjectLimit other)
Parameter
NameDescription
otherServiceAttachmentConsumerProjectLimit
Returns
TypeDescription
ServiceAttachmentConsumerProjectLimit.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The connectionLimit to set.

Returns
TypeDescription
ServiceAttachmentConsumerProjectLimit.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ServiceAttachmentConsumerProjectLimit.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ServiceAttachmentConsumerProjectLimit.Builder
Overrides

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
NameDescription
valueString

The projectIdOrNum to set.

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

The bytes for projectIdOrNum to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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