Show / Hide Table of Contents

Class Http

Defines the HTTP configuration for an API service. It contains a list of [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method to one or more HTTP REST API methods.

Inheritance
System.Object
Http
Implements
IMessage<Http>
IMessage
System.IEquatable<Http>
IDeepCloneable<Http>
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 Http : IMessage<Http>, IMessage, IEquatable<Http>, IDeepCloneable<Http>

Constructors

Http()

Declaration
public Http()

Http(Http)

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

Fields

FullyDecodeReservedExpansionFieldNumber

Field number for the "fully_decode_reserved_expansion" field.

Declaration
public const int FullyDecodeReservedExpansionFieldNumber = 2
Field Value
Type Description
System.Int32

RulesFieldNumber

Field number for the "rules" field.

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

Properties

Descriptor

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

FullyDecodeReservedExpansion

When set to true, URL path parameters will be fully URI-decoded except in cases of single segment matches in reserved expansion, where "%2F" will be left encoded.

The default behavior is to not decode RFC 6570 reserved characters in multi segment matches.

Declaration
public bool FullyDecodeReservedExpansion { get; set; }
Property Value
Type Description
System.Boolean

Parser

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

Rules

A list of HTTP configuration rules that apply to individual API methods.

NOTE: All service configuration rules follow "last one wins" order.

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

Methods

CalculateSize()

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

Clone()

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

Equals(Http)

Declaration
public bool Equals(Http other)
Parameters
Type Name Description
Http 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(Http)

Declaration
public void MergeFrom(Http other)
Parameters
Type Name Description
Http 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