Class Input.SecurityRule (0.35.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
TypeDescription
int

Static Methods

getDefaultInstance()

public static Input.SecurityRule getDefaultInstance()
Returns
TypeDescription
Input.SecurityRule

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Input.SecurityRule.Builder newBuilder()
Returns
TypeDescription
Input.SecurityRule.Builder

newBuilder(Input.SecurityRule prototype)

public static Input.SecurityRule.Builder newBuilder(Input.SecurityRule prototype)
Parameter
NameDescription
prototypeInput.SecurityRule
Returns
TypeDescription
Input.SecurityRule.Builder

parseDelimitedFrom(InputStream input)

public static Input.SecurityRule parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Input.SecurityRule
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Input.SecurityRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Input.SecurityRule
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Input.SecurityRule parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Input.SecurityRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Input.SecurityRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Input.SecurityRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Input.SecurityRule parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Input.SecurityRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Input.SecurityRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Input.SecurityRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Input.SecurityRule parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Input.SecurityRule
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Input.SecurityRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Input.SecurityRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Input.SecurityRule parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Input.SecurityRule
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Input.SecurityRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Input.SecurityRule
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Input.SecurityRule parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Input.SecurityRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Input.SecurityRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Input.SecurityRule
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Input.SecurityRule getDefaultInstanceForType()
Returns
TypeDescription
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
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.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Input.SecurityRule.Builder newBuilderForType()
Returns
TypeDescription
Input.SecurityRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Input.SecurityRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Input.SecurityRule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Input.SecurityRule.Builder toBuilder()
Returns
TypeDescription
Input.SecurityRule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException