Show / Hide Table of Contents

Class IntOrString

IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.

Inheritance
System.Object
IntOrString
Implements
IDirectResponseSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.CloudRun.v1alpha1.Data
Assembly: Google.Apis.CloudRun.v1alpha1.dll
Syntax
public class IntOrString : IDirectResponseSchema

Properties

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
System.String

IntVal

The int value.

Declaration
[JsonProperty("intVal")]
public virtual int? IntVal { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

StrVal

The string value.

Declaration
[JsonProperty("strVal")]
public virtual string StrVal { get; set; }
Property Value
Type Description
System.String

Type

The type of the value.

Declaration
[JsonProperty("type")]
public virtual int? Type { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

Implements

IDirectResponseSchema
Back to top