Class Input.SecurityRule.Builder (0.3.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
TypeDescription
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
NameDescription
valuesIterable<String>

The ipRanges to add.

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

The ipRanges to add.

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

The bytes of the ipRanges to add.

Returns
TypeDescription
Input.SecurityRule.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Input.SecurityRule build()
Returns
TypeDescription
Input.SecurityRule

buildPartial()

public Input.SecurityRule buildPartial()
Returns
TypeDescription
Input.SecurityRule

clear()

public Input.SecurityRule.Builder clear()
Returns
TypeDescription
Input.SecurityRule.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Input.SecurityRule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Input.SecurityRule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Input.SecurityRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Input.SecurityRule.Builder
Overrides

clone()

public Input.SecurityRule.Builder clone()
Returns
TypeDescription
Input.SecurityRule.Builder
Overrides

getDefaultInstanceForType()

public Input.SecurityRule getDefaultInstanceForType()
Returns
TypeDescription
Input.SecurityRule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the ipRanges.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Input.SecurityRule other)

public Input.SecurityRule.Builder mergeFrom(Input.SecurityRule other)
Parameter
NameDescription
otherInput.SecurityRule
Returns
TypeDescription
Input.SecurityRule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Input.SecurityRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Input.SecurityRule.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Input.SecurityRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The ipRanges to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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