Class Input.SecurityRule.Builder (0.48.0)

public static final class Input.SecurityRule.Builder extends GeneratedMessageV3.Builder<Input.SecurityRule.Builder> implements Input.SecurityRuleOrBuilder

Security rules for access control. Each field represents one security rule. Only when the source of the input stream satisfies all the fields, this input stream can be accepted.

Protobuf type google.cloud.video.livestream.v1.Input.SecurityRule

Static Methods

getDescriptor()

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

Methods

addAllIpRanges(Iterable<String> values)

public Input.SecurityRule.Builder addAllIpRanges(Iterable<String> values)

At least one ip range must match unless none specified. The IP range is defined by CIDR block: for example, 192.0.1.0/24 for a range and 192.0.1.0/32 for a single IP address.

repeated string ip_ranges = 1;

Parameter
Name Description
values Iterable<String>

The ipRanges to add.

Returns
Type Description
Input.SecurityRule.Builder

This builder for chaining.

addIpRanges(String value)

public Input.SecurityRule.Builder addIpRanges(String value)

At least one ip range must match unless none specified. The IP range is defined by CIDR block: for example, 192.0.1.0/24 for a range and 192.0.1.0/32 for a single IP address.

repeated string ip_ranges = 1;

Parameter
Name Description
value String

The ipRanges to add.

Returns
Type Description
Input.SecurityRule.Builder

This builder for chaining.

addIpRangesBytes(ByteString value)

public Input.SecurityRule.Builder addIpRangesBytes(ByteString value)

At least one ip range must match unless none specified. The IP range is defined by CIDR block: for example, 192.0.1.0/24 for a range and 192.0.1.0/32 for a single IP address.

repeated string ip_ranges = 1;

Parameter
Name Description
value ByteString

The bytes of the ipRanges to add.

Returns
Type Description
Input.SecurityRule.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Input.SecurityRule build()
Returns
Type Description
Input.SecurityRule

buildPartial()

public Input.SecurityRule buildPartial()
Returns
Type Description
Input.SecurityRule

clear()

public Input.SecurityRule.Builder clear()
Returns
Type Description
Input.SecurityRule.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearIpRanges()

public Input.SecurityRule.Builder clearIpRanges()

At least one ip range must match unless none specified. The IP range is defined by CIDR block: for example, 192.0.1.0/24 for a range and 192.0.1.0/32 for a single IP address.

repeated string ip_ranges = 1;

Returns
Type Description
Input.SecurityRule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Input.SecurityRule.Builder clone()
Returns
Type Description
Input.SecurityRule.Builder
Overrides

getDefaultInstanceForType()

public Input.SecurityRule getDefaultInstanceForType()
Returns
Type Description
Input.SecurityRule

getDescriptorForType()

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

getIpRanges(int index)

public String getIpRanges(int index)

At least one ip range must match unless none specified. The IP range is defined by CIDR block: for example, 192.0.1.0/24 for a range and 192.0.1.0/32 for a single IP address.

repeated string ip_ranges = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The ipRanges at the given index.

getIpRangesBytes(int index)

public ByteString getIpRangesBytes(int index)

At least one ip range must match unless none specified. The IP range is defined by CIDR block: for example, 192.0.1.0/24 for a range and 192.0.1.0/32 for a single IP address.

repeated string ip_ranges = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the ipRanges at the given index.

getIpRangesCount()

public int getIpRangesCount()

At least one ip range must match unless none specified. The IP range is defined by CIDR block: for example, 192.0.1.0/24 for a range and 192.0.1.0/32 for a single IP address.

repeated string ip_ranges = 1;

Returns
Type Description
int

The count of ipRanges.

getIpRangesList()

public ProtocolStringList getIpRangesList()

At least one ip range must match unless none specified. The IP range is defined by CIDR block: for example, 192.0.1.0/24 for a range and 192.0.1.0/32 for a single IP address.

repeated string ip_ranges = 1;

Returns
Type Description
ProtocolStringList

A list containing the ipRanges.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Input.SecurityRule other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setIpRanges(int index, String value)

public Input.SecurityRule.Builder setIpRanges(int index, String value)

At least one ip range must match unless none specified. The IP range is defined by CIDR block: for example, 192.0.1.0/24 for a range and 192.0.1.0/32 for a single IP address.

repeated string ip_ranges = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The ipRanges to set.

Returns
Type Description
Input.SecurityRule.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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