Show / Hide Table of Contents

Class ProjectProperties

A descriptor for defining project properties for a service. One service may have many consumer projects, and the service may want to behave differently depending on some properties on the project. For example, a project may be associated with a school, or a business, or a government agency, a business type property on the project may affect how a service responds to the client. This descriptor defines which properties are allowed to be set on a project.

Example:

project_properties: properties:

  • name: NO_WATERMARK type: BOOL description: Allows usage of the API without watermarks.
  • name: EXTENDED_TILE_CACHE_PERIOD type: INT64
Inheritance
System.Object
ProjectProperties
Implements
IMessage<ProjectProperties>
IMessage
System.IEquatable<ProjectProperties>
IDeepCloneable<ProjectProperties>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Api
Assembly: Google.Api.CommonProtos.dll
Syntax
public sealed class ProjectProperties : IMessage<ProjectProperties>, IMessage, IEquatable<ProjectProperties>, IDeepCloneable<ProjectProperties>

Constructors

ProjectProperties()

Declaration
public ProjectProperties()

ProjectProperties(ProjectProperties)

Declaration
public ProjectProperties(ProjectProperties other)
Parameters
Type Name Description
ProjectProperties other

Fields

PropertiesFieldNumber

Field number for the "properties" field.

Declaration
public const int PropertiesFieldNumber = 1
Field Value
Type Description
System.Int32

Properties

Descriptor

Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Type Description
MessageDescriptor

Parser

Declaration
public static MessageParser<ProjectProperties> Parser { get; }
Property Value
Type Description
MessageParser<ProjectProperties>

Properties

List of per consumer project-specific properties.

Declaration
public RepeatedField<Property> Properties { get; }
Property Value
Type Description
RepeatedField<Property>

Methods

CalculateSize()

Declaration
public int CalculateSize()
Returns
Type Description
System.Int32
Implements
IMessage.CalculateSize()

Clone()

Declaration
public ProjectProperties Clone()
Returns
Type Description
ProjectProperties
Implements
IDeepCloneable<T>.Clone()

Equals(ProjectProperties)

Declaration
public bool Equals(ProjectProperties other)
Parameters
Type Name Description
ProjectProperties other
Returns
Type Description
System.Boolean
Implements
System.IEquatable<T>.Equals(T)

Equals(Object)

Declaration
public override bool Equals(object other)
Parameters
Type Name Description
System.Object other
Returns
Type Description
System.Boolean
Overrides
System.Object.Equals(System.Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()

MergeFrom(ProjectProperties)

Declaration
public void MergeFrom(ProjectProperties other)
Parameters
Type Name Description
ProjectProperties other
Implements
IMessage<T>.MergeFrom(T)

MergeFrom(CodedInputStream)

Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Type Name Description
CodedInputStream input
Implements
IMessage.MergeFrom(CodedInputStream)

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

WriteTo(CodedOutputStream)

Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Type Name Description
CodedOutputStream output
Implements
IMessage.WriteTo(CodedOutputStream)

Explicit Interface Implementations

IMessage.Descriptor

Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Type Description
MessageDescriptor
Implements
IMessage.Descriptor
Back to top