Class TunnelDestGroup.Builder (0.11.0)

public static final class TunnelDestGroup.Builder extends GeneratedMessageV3.Builder<TunnelDestGroup.Builder> implements TunnelDestGroupOrBuilder

A TunnelDestGroup.

Protobuf type google.cloud.iap.v1.TunnelDestGroup

Static Methods

getDescriptor()

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

Methods

addAllCidrs(Iterable<String> values)

public TunnelDestGroup.Builder addAllCidrs(Iterable<String> values)

Unordered list. List of CIDRs that this group applies to.

repeated string cidrs = 2 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
values Iterable<String>

The cidrs to add.

Returns
Type Description
TunnelDestGroup.Builder

This builder for chaining.

addAllFqdns(Iterable<String> values)

public TunnelDestGroup.Builder addAllFqdns(Iterable<String> values)

Unordered list. List of FQDNs that this group applies to.

repeated string fqdns = 3 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
values Iterable<String>

The fqdns to add.

Returns
Type Description
TunnelDestGroup.Builder

This builder for chaining.

addCidrs(String value)

public TunnelDestGroup.Builder addCidrs(String value)

Unordered list. List of CIDRs that this group applies to.

repeated string cidrs = 2 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
value String

The cidrs to add.

Returns
Type Description
TunnelDestGroup.Builder

This builder for chaining.

addCidrsBytes(ByteString value)

public TunnelDestGroup.Builder addCidrsBytes(ByteString value)

Unordered list. List of CIDRs that this group applies to.

repeated string cidrs = 2 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
value ByteString

The bytes of the cidrs to add.

Returns
Type Description
TunnelDestGroup.Builder

This builder for chaining.

addFqdns(String value)

public TunnelDestGroup.Builder addFqdns(String value)

Unordered list. List of FQDNs that this group applies to.

repeated string fqdns = 3 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
value String

The fqdns to add.

Returns
Type Description
TunnelDestGroup.Builder

This builder for chaining.

addFqdnsBytes(ByteString value)

public TunnelDestGroup.Builder addFqdnsBytes(ByteString value)

Unordered list. List of FQDNs that this group applies to.

repeated string fqdns = 3 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
value ByteString

The bytes of the fqdns to add.

Returns
Type Description
TunnelDestGroup.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TunnelDestGroup build()
Returns
Type Description
TunnelDestGroup

buildPartial()

public TunnelDestGroup buildPartial()
Returns
Type Description
TunnelDestGroup

clear()

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

clearCidrs()

public TunnelDestGroup.Builder clearCidrs()

Unordered list. List of CIDRs that this group applies to.

repeated string cidrs = 2 [(.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
TunnelDestGroup.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFqdns()

public TunnelDestGroup.Builder clearFqdns()

Unordered list. List of FQDNs that this group applies to.

repeated string fqdns = 3 [(.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
TunnelDestGroup.Builder

This builder for chaining.

clearName()

public TunnelDestGroup.Builder clearName()

Required. Immutable. Identifier for the TunnelDestGroup. Must be unique within the project and contain only lower case letters (a-z) and dashes (-).

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
TunnelDestGroup.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCidrs(int index)

public String getCidrs(int index)

Unordered list. List of CIDRs that this group applies to.

repeated string cidrs = 2 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The cidrs at the given index.

getCidrsBytes(int index)

public ByteString getCidrsBytes(int index)

Unordered list. List of CIDRs that this group applies to.

repeated string cidrs = 2 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the cidrs at the given index.

getCidrsCount()

public int getCidrsCount()

Unordered list. List of CIDRs that this group applies to.

repeated string cidrs = 2 [(.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
int

The count of cidrs.

getCidrsList()

public ProtocolStringList getCidrsList()

Unordered list. List of CIDRs that this group applies to.

repeated string cidrs = 2 [(.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
ProtocolStringList

A list containing the cidrs.

getDefaultInstanceForType()

public TunnelDestGroup getDefaultInstanceForType()
Returns
Type Description
TunnelDestGroup

getDescriptorForType()

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

getFqdns(int index)

public String getFqdns(int index)

Unordered list. List of FQDNs that this group applies to.

repeated string fqdns = 3 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The fqdns at the given index.

getFqdnsBytes(int index)

public ByteString getFqdnsBytes(int index)

Unordered list. List of FQDNs that this group applies to.

repeated string fqdns = 3 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the fqdns at the given index.

getFqdnsCount()

public int getFqdnsCount()

Unordered list. List of FQDNs that this group applies to.

repeated string fqdns = 3 [(.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
int

The count of fqdns.

getFqdnsList()

public ProtocolStringList getFqdnsList()

Unordered list. List of FQDNs that this group applies to.

repeated string fqdns = 3 [(.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
ProtocolStringList

A list containing the fqdns.

getName()

public String getName()

Required. Immutable. Identifier for the TunnelDestGroup. Must be unique within the project and contain only lower case letters (a-z) and dashes (-).

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Immutable. Identifier for the TunnelDestGroup. Must be unique within the project and contain only lower case letters (a-z) and dashes (-).

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TunnelDestGroup other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCidrs(int index, String value)

public TunnelDestGroup.Builder setCidrs(int index, String value)

Unordered list. List of CIDRs that this group applies to.

repeated string cidrs = 2 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameters
Name Description
index int

The index to set the value at.

value String

The cidrs to set.

Returns
Type Description
TunnelDestGroup.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFqdns(int index, String value)

public TunnelDestGroup.Builder setFqdns(int index, String value)

Unordered list. List of FQDNs that this group applies to.

repeated string fqdns = 3 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameters
Name Description
index int

The index to set the value at.

value String

The fqdns to set.

Returns
Type Description
TunnelDestGroup.Builder

This builder for chaining.

setName(String value)

public TunnelDestGroup.Builder setName(String value)

Required. Immutable. Identifier for the TunnelDestGroup. Must be unique within the project and contain only lower case letters (a-z) and dashes (-).

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
TunnelDestGroup.Builder

This builder for chaining.

setNameBytes(ByteString value)

public TunnelDestGroup.Builder setNameBytes(ByteString value)

Required. Immutable. Identifier for the TunnelDestGroup. Must be unique within the project and contain only lower case letters (a-z) and dashes (-).

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
TunnelDestGroup.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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