class MockRequestBody extends Message (View source)

internal  
 

Generated from protobuf message google.apicore.testing.MockRequestBody

Properties

protected $name

Generated from protobuf field string name = 1;

protected $number

Generated from protobuf field uint64 number = 2;

protected $nested_message

Generated from protobuf field .google.apicore.testing.MockRequestBody nested_message = 4;

protected $bytes_value

Generated from protobuf field .google.protobuf.BytesValue bytes_value = 5;

protected $duration_value

Generated from protobuf field .google.protobuf.Duration duration_value = 6;

protected $field_mask

Generated from protobuf field .google.protobuf.FieldMask field_mask = 7;

protected $int64_value

Generated from protobuf field .google.protobuf.Int64Value int64_value = 8;

protected $list_value

Generated from protobuf field .google.protobuf.ListValue list_value = 9;

protected $string_value

Generated from protobuf field .google.protobuf.StringValue string_value = 10;

protected $struct_value

Generated from protobuf field .google.protobuf.Struct struct_value = 11;

protected $timestamp_value

Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 12;

protected $value_value

Generated from protobuf field .google.protobuf.Value value_value = 13;

protected $oneof_field

Methods

__construct(array $data = NULL)

Constructor.

string
getName()

Generated from protobuf field string name = 1;

$this
setName(string $var)

Generated from protobuf field string name = 1;

int|string
getNumber()

Generated from protobuf field uint64 number = 2;

$this
setNumber(int|string $var)

Generated from protobuf field uint64 number = 2;

RepeatedField
getRepeatedField()

Generated from protobuf field repeated string repeated_field = 3;

$this
setRepeatedField(string[]|RepeatedField $var)

Generated from protobuf field repeated string repeated_field = 3;

getNestedMessage()

Generated from protobuf field .google.apicore.testing.MockRequestBody nested_message = 4;

hasNestedMessage()

No description

clearNestedMessage()

No description

$this
setNestedMessage(MockRequestBody $var)

Generated from protobuf field .google.apicore.testing.MockRequestBody nested_message = 4;

BytesValue
getBytesValue()

Generated from protobuf field .google.protobuf.BytesValue bytes_value = 5;

hasBytesValue()

No description

clearBytesValue()

No description

string|null
getBytesValueUnwrapped()

Returns the unboxed value from getBytesValue()

$this
setBytesValue(BytesValue $var)

Generated from protobuf field .google.protobuf.BytesValue bytes_value = 5;

$this
setBytesValueUnwrapped(string|null $var)

Sets the field by wrapping a primitive type in a Google\Protobuf\BytesValue object.

Duration
getDurationValue()

Generated from protobuf field .google.protobuf.Duration duration_value = 6;

hasDurationValue()

No description

clearDurationValue()

No description

$this
setDurationValue(Duration $var)

Generated from protobuf field .google.protobuf.Duration duration_value = 6;

FieldMask
getFieldMask()

Generated from protobuf field .google.protobuf.FieldMask field_mask = 7;

hasFieldMask()

No description

clearFieldMask()

No description

$this
setFieldMask(FieldMask $var)

Generated from protobuf field .google.protobuf.FieldMask field_mask = 7;

Int64Value
getInt64Value()

Generated from protobuf field .google.protobuf.Int64Value int64_value = 8;

hasInt64Value()

No description

clearInt64Value()

No description

int|string|null
getInt64ValueUnwrapped()

Returns the unboxed value from getInt64Value()

$this
setInt64Value(Int64Value $var)

Generated from protobuf field .google.protobuf.Int64Value int64_value = 8;

$this
setInt64ValueUnwrapped(int|string|null $var)

Sets the field by wrapping a primitive type in a Google\Protobuf\Int64Value object.

ListValue
getListValue()

Generated from protobuf field .google.protobuf.ListValue list_value = 9;

hasListValue()

No description

clearListValue()

No description

$this
setListValue(ListValue $var)

Generated from protobuf field .google.protobuf.ListValue list_value = 9;

StringValue
getStringValue()

Generated from protobuf field .google.protobuf.StringValue string_value = 10;

hasStringValue()

No description

clearStringValue()

No description

string|null
getStringValueUnwrapped()

Returns the unboxed value from getStringValue()

$this
setStringValue(StringValue $var)

Generated from protobuf field .google.protobuf.StringValue string_value = 10;

$this
setStringValueUnwrapped(string|null $var)

Sets the field by wrapping a primitive type in a Google\Protobuf\StringValue object.

Struct
getStructValue()

Generated from protobuf field .google.protobuf.Struct struct_value = 11;

hasStructValue()

No description

clearStructValue()

No description

$this
setStructValue(Struct $var)

Generated from protobuf field .google.protobuf.Struct struct_value = 11;

Timestamp
getTimestampValue()

Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 12;

hasTimestampValue()

No description

clearTimestampValue()

No description

$this
setTimestampValue(Timestamp $var)

Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 12;

Value
getValueValue()

Generated from protobuf field .google.protobuf.Value value_value = 13;

hasValueValue()

No description

clearValueValue()

No description

$this
setValueValue(Value $var)

Generated from protobuf field .google.protobuf.Value value_value = 13;

string
getField1()

Generated from protobuf field string field_1 = 14;

hasField1()

No description

$this
setField1(string $var)

Generated from protobuf field string field_1 = 14;

string
getField2()

Generated from protobuf field string field_2 = 15;

hasField2()

No description

$this
setField2(string $var)

Generated from protobuf field string field_2 = 15;

string
getField3()

Generated from protobuf field string field_3 = 16;

hasField3()

No description

$this
setField3(string $var)

Generated from protobuf field string field_3 = 16;

string
getOneofField()

No description

Details

__construct(array $data = NULL)

Constructor.

Parameters

array $data

{ Optional. Data for populating the Message object.

@type string $name
@type int|string $number
@type string[]|\Google\Protobuf\Internal\RepeatedField $repeated_field
@type \Google\ApiCore\Testing\MockRequestBody $nested_message
@type \Google\Protobuf\BytesValue $bytes_value
@type \Google\Protobuf\Duration $duration_value
@type \Google\Protobuf\FieldMask $field_mask
@type \Google\Protobuf\Int64Value $int64_value
@type \Google\Protobuf\ListValue $list_value
@type \Google\Protobuf\StringValue $string_value
@type \Google\Protobuf\Struct $struct_value
@type \Google\Protobuf\Timestamp $timestamp_value
@type \Google\Protobuf\Value $value_value
@type string $field_1
@type string $field_2
@type string $field_3

}

string getName()

Generated from protobuf field string name = 1;

Return Value

string

$this setName(string $var)

Generated from protobuf field string name = 1;

Parameters

string $var

Return Value

$this

int|string getNumber()

Generated from protobuf field uint64 number = 2;

Return Value

int|string

$this setNumber(int|string $var)

Generated from protobuf field uint64 number = 2;

Parameters

int|string $var

Return Value

$this

RepeatedField getRepeatedField()

Generated from protobuf field repeated string repeated_field = 3;

Return Value

RepeatedField

$this setRepeatedField(string[]|RepeatedField $var)

Generated from protobuf field repeated string repeated_field = 3;

Parameters

string[]|RepeatedField $var

Return Value

$this

MockRequestBody getNestedMessage()

Generated from protobuf field .google.apicore.testing.MockRequestBody nested_message = 4;

Return Value

MockRequestBody

hasNestedMessage()

No description

clearNestedMessage()

No description

$this setNestedMessage(MockRequestBody $var)

Generated from protobuf field .google.apicore.testing.MockRequestBody nested_message = 4;

Parameters

MockRequestBody $var

Return Value

$this

BytesValue getBytesValue()

Generated from protobuf field .google.protobuf.BytesValue bytes_value = 5;

Return Value

BytesValue

hasBytesValue()

No description

clearBytesValue()

No description

string|null getBytesValueUnwrapped()

Returns the unboxed value from getBytesValue()

Generated from protobuf field .google.protobuf.BytesValue bytes_value = 5;

Return Value

string|null

$this setBytesValue(BytesValue $var)

Generated from protobuf field .google.protobuf.BytesValue bytes_value = 5;

Parameters

BytesValue $var

Return Value

$this

$this setBytesValueUnwrapped(string|null $var)

Sets the field by wrapping a primitive type in a Google\Protobuf\BytesValue object.

Generated from protobuf field .google.protobuf.BytesValue bytes_value = 5;

Parameters

string|null $var

Return Value

$this

Duration getDurationValue()

Generated from protobuf field .google.protobuf.Duration duration_value = 6;

Return Value

Duration

hasDurationValue()

No description

clearDurationValue()

No description

$this setDurationValue(Duration $var)

Generated from protobuf field .google.protobuf.Duration duration_value = 6;

Parameters

Duration $var

Return Value

$this

FieldMask getFieldMask()

Generated from protobuf field .google.protobuf.FieldMask field_mask = 7;

Return Value

FieldMask

hasFieldMask()

No description

clearFieldMask()

No description

$this setFieldMask(FieldMask $var)

Generated from protobuf field .google.protobuf.FieldMask field_mask = 7;

Parameters

FieldMask $var

Return Value

$this

Int64Value getInt64Value()

Generated from protobuf field .google.protobuf.Int64Value int64_value = 8;

Return Value

Int64Value

hasInt64Value()

No description

clearInt64Value()

No description

int|string|null getInt64ValueUnwrapped()

Returns the unboxed value from getInt64Value()

Generated from protobuf field .google.protobuf.Int64Value int64_value = 8;

Return Value

int|string|null

$this setInt64Value(Int64Value $var)

Generated from protobuf field .google.protobuf.Int64Value int64_value = 8;

Parameters

Int64Value $var

Return Value

$this

$this setInt64ValueUnwrapped(int|string|null $var)

Sets the field by wrapping a primitive type in a Google\Protobuf\Int64Value object.

Generated from protobuf field .google.protobuf.Int64Value int64_value = 8;

Parameters

int|string|null $var

Return Value

$this

ListValue getListValue()

Generated from protobuf field .google.protobuf.ListValue list_value = 9;

Return Value

ListValue

hasListValue()

No description

clearListValue()

No description

$this setListValue(ListValue $var)

Generated from protobuf field .google.protobuf.ListValue list_value = 9;

Parameters

ListValue $var

Return Value

$this

StringValue getStringValue()

Generated from protobuf field .google.protobuf.StringValue string_value = 10;

Return Value

StringValue

hasStringValue()

No description

clearStringValue()

No description

string|null getStringValueUnwrapped()

Returns the unboxed value from getStringValue()

Generated from protobuf field .google.protobuf.StringValue string_value = 10;

Return Value

string|null

$this setStringValue(StringValue $var)

Generated from protobuf field .google.protobuf.StringValue string_value = 10;

Parameters

StringValue $var

Return Value

$this

$this setStringValueUnwrapped(string|null $var)

Sets the field by wrapping a primitive type in a Google\Protobuf\StringValue object.

Generated from protobuf field .google.protobuf.StringValue string_value = 10;

Parameters

string|null $var

Return Value

$this

Struct getStructValue()

Generated from protobuf field .google.protobuf.Struct struct_value = 11;

Return Value

Struct

hasStructValue()

No description

clearStructValue()

No description

$this setStructValue(Struct $var)

Generated from protobuf field .google.protobuf.Struct struct_value = 11;

Parameters

Struct $var

Return Value

$this

Timestamp getTimestampValue()

Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 12;

Return Value

Timestamp

hasTimestampValue()

No description

clearTimestampValue()

No description

$this setTimestampValue(Timestamp $var)

Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 12;

Parameters

Timestamp $var

Return Value

$this

Value getValueValue()

Generated from protobuf field .google.protobuf.Value value_value = 13;

Return Value

Value

hasValueValue()

No description

clearValueValue()

No description

$this setValueValue(Value $var)

Generated from protobuf field .google.protobuf.Value value_value = 13;

Parameters

Value $var

Return Value

$this

string getField1()

Generated from protobuf field string field_1 = 14;

Return Value

string

hasField1()

No description

$this setField1(string $var)

Generated from protobuf field string field_1 = 14;

Parameters

string $var

Return Value

$this

string getField2()

Generated from protobuf field string field_2 = 15;

Return Value

string

hasField2()

No description

$this setField2(string $var)

Generated from protobuf field string field_2 = 15;

Parameters

string $var

Return Value

$this

string getField3()

Generated from protobuf field string field_3 = 16;

Return Value

string

hasField3()

No description

$this setField3(string $var)

Generated from protobuf field string field_3 = 16;

Parameters

string $var

Return Value

$this

string getOneofField()

No description

Return Value

string