Class Control (2.2.0)

public sealed class Control : Protobuf.IMessage<Control>, Protobuf.IBufferMessage

Selects and configures the service controller used by the service. The service controller handles features like abuse, quota, billing, logging, monitoring, etc.

Inheritance

Object > Control

Namespace

Google.Api

Assembly

Google.Api.CommonProtos.dll

Constructors

Control()

public Control()

Control(Control)

public Control(Control other)
Parameter
Name Description
other Control

Fields

EnvironmentFieldNumber

public const int EnvironmentFieldNumber = 1

Field number for the "environment" field.

Field Value
Type Description
Int32

Properties

Descriptor

public static Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
Type Description
Protobuf.Reflection.MessageDescriptor

Environment

public string Environment { get; set; }

The service control environment to use. If empty, no control plane feature (like quota and billing) will be enabled.

Property Value
Type Description
String

Parser

public static Protobuf.MessageParser<Control> Parser { get; }
Property Value
Type Description
Protobuf.MessageParser<Control>

Methods

CalculateSize()

public int CalculateSize()
Returns
Type Description
Int32

Clone()

public Control Clone()
Returns
Type Description
Control

Equals(Control)

public bool Equals(Control other)
Parameter
Name Description
other Control
Returns
Type Description
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
Name Description
other Object
Returns
Type Description
Boolean

GetHashCode()

public override int GetHashCode()
Returns
Type Description
Int32

MergeFrom(Control)

public void MergeFrom(Control other)
Parameter
Name Description
other Control

MergeFrom(Protobuf.CodedInputStream)

public void MergeFrom(Protobuf.CodedInputStream input)
Parameter
Name Description
input Protobuf.CodedInputStream

ToString()

public override string ToString()
Returns
Type Description
String

WriteTo(Protobuf.CodedOutputStream)

public void WriteTo(Protobuf.CodedOutputStream output)
Parameter
Name Description
output Protobuf.CodedOutputStream