Class Input.SecurityRule (0.45.0)

public static final class Input.SecurityRule extends GeneratedMessageV3 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 Fields

IP_RANGES_FIELD_NUMBER

public static final int IP_RANGES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Input.SecurityRule getDefaultInstance()
Returns
Type Description
Input.SecurityRule

getDescriptor()

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

newBuilder()

public static Input.SecurityRule.Builder newBuilder()
Returns
Type Description
Input.SecurityRule.Builder

newBuilder(Input.SecurityRule prototype)

public static Input.SecurityRule.Builder newBuilder(Input.SecurityRule prototype)
Parameter
Name Description
prototype Input.SecurityRule
Returns
Type Description
Input.SecurityRule.Builder

parseDelimitedFrom(InputStream input)

public static Input.SecurityRule parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Input.SecurityRule
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Input.SecurityRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Input.SecurityRule
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Input.SecurityRule parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Input.SecurityRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Input.SecurityRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Input.SecurityRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Input.SecurityRule parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Input.SecurityRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Input.SecurityRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Input.SecurityRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Input.SecurityRule parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Input.SecurityRule
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Input.SecurityRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Input.SecurityRule
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Input.SecurityRule parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Input.SecurityRule
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Input.SecurityRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Input.SecurityRule
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Input.SecurityRule parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Input.SecurityRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Input.SecurityRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Input.SecurityRule
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Input.SecurityRule> parser()
Returns
Type Description
Parser<SecurityRule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

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.

getParserForType()

public Parser<Input.SecurityRule> getParserForType()
Returns
Type Description
Parser<SecurityRule>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Input.SecurityRule.Builder newBuilderForType()
Returns
Type Description
Input.SecurityRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Input.SecurityRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Input.SecurityRule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Input.SecurityRule.Builder toBuilder()
Returns
Type Description
Input.SecurityRule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException