public sealed class Control : IMessage<Control>, IEquatable<Control>, IDeepCloneable<Control>, IBufferMessage, IMessage
Selects and configures the service controller used by the service.
Example:
control:
environment: servicecontrol.googleapis.com
Implements
IMessage Control , IEquatable Control , IDeepCloneable Control , IBufferMessage , IMessageNamespace
Google.ApiAssembly
Google.Api.CommonProtos.dll
Constructors
Control()
public Control()
Control(Control)
public Control(Control other)
Fields
EnvironmentFieldNumber
public
const
int
EnvironmentFieldNumber
=
1
Field number for the "environment" field.
MethodPoliciesFieldNumber
public
const
int
MethodPoliciesFieldNumber
=
4
Field number for the "method_policies" field.
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
Environment
public string Environment { get; set; }
The service controller environment to use. If empty, no control plane feature (like quota and billing) will be enabled. The recommended value for most services is servicecontrol.googleapis.com
MethodPolicies
public RepeatedField<MethodPolicy> MethodPolicies { get; }
Defines policies applying to the API methods of the service.
Parser
public static MessageParser<Control> Parser { get; }
Methods
CalculateSize()
public int CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
The number of bytes required to write this message to a coded output stream.
Clone()
public Control Clone()
Creates a deep clone of this object.
Equals(Control)
public bool Equals(Control other)
Equals(object)
public override bool Equals(object other)
GetHashCode()
public override int GetHashCode()
MergeFrom(Control)
public void MergeFrom(Control other)
Merges the given message into this one.
See the user guide for precise merge semantics.
MergeFrom(CodedInputStream)
public void MergeFrom(CodedInputStream input)
Merges the data from the specified coded input stream with the current message.
See the user guide for precise merge semantics.
ToString()
public override string ToString()
WriteTo(CodedOutputStream)
public void WriteTo(CodedOutputStream output)
Writes the data to the given coded output stream.
output