Class CreateApiSpecRequest (0.22.0)

public final class CreateApiSpecRequest extends GeneratedMessageV3 implements CreateApiSpecRequestOrBuilder

Request message for CreateApiSpec.

Protobuf type google.cloud.apigeeregistry.v1.CreateApiSpecRequest

Static Fields

API_SPEC_FIELD_NUMBER

public static final int API_SPEC_FIELD_NUMBER
Field Value
TypeDescription
int

API_SPEC_ID_FIELD_NUMBER

public static final int API_SPEC_ID_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateApiSpecRequest getDefaultInstance()
Returns
TypeDescription
CreateApiSpecRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CreateApiSpecRequest.Builder newBuilder()
Returns
TypeDescription
CreateApiSpecRequest.Builder

newBuilder(CreateApiSpecRequest prototype)

public static CreateApiSpecRequest.Builder newBuilder(CreateApiSpecRequest prototype)
Parameter
NameDescription
prototypeCreateApiSpecRequest
Returns
TypeDescription
CreateApiSpecRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateApiSpecRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateApiSpecRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateApiSpecRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateApiSpecRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CreateApiSpecRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CreateApiSpecRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateApiSpecRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateApiSpecRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateApiSpecRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CreateApiSpecRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateApiSpecRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateApiSpecRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateApiSpecRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CreateApiSpecRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateApiSpecRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateApiSpecRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CreateApiSpecRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateApiSpecRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateApiSpecRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateApiSpecRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CreateApiSpecRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CreateApiSpecRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateApiSpecRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateApiSpecRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CreateApiSpecRequest> parser()
Returns
TypeDescription
Parser<CreateApiSpecRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getApiSpec()

public ApiSpec getApiSpec()

Required. The spec to create.

.google.cloud.apigeeregistry.v1.ApiSpec api_spec = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ApiSpec

The apiSpec.

getApiSpecId()

public String getApiSpecId()

Required. The ID to use for the spec, which will become the final component of the spec's resource name.

This value should be 4-63 characters, and valid characters are /a-z-/.

Following AIP-162, IDs must not have the form of a UUID.

string api_spec_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The apiSpecId.

getApiSpecIdBytes()

public ByteString getApiSpecIdBytes()

Required. The ID to use for the spec, which will become the final component of the spec's resource name.

This value should be 4-63 characters, and valid characters are /a-z-/.

Following AIP-162, IDs must not have the form of a UUID.

string api_spec_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for apiSpecId.

getApiSpecOrBuilder()

public ApiSpecOrBuilder getApiSpecOrBuilder()

Required. The spec to create.

.google.cloud.apigeeregistry.v1.ApiSpec api_spec = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ApiSpecOrBuilder

getDefaultInstanceForType()

public CreateApiSpecRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateApiSpecRequest

getParent()

public String getParent()

Required. The parent, which owns this collection of specs. Format: projects/*/locations/*/apis/*/versions/*

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent, which owns this collection of specs. Format: projects/*/locations/*/apis/*/versions/*

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getParserForType()

public Parser<CreateApiSpecRequest> getParserForType()
Returns
TypeDescription
Parser<CreateApiSpecRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasApiSpec()

public boolean hasApiSpec()

Required. The spec to create.

.google.cloud.apigeeregistry.v1.ApiSpec api_spec = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the apiSpec field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CreateApiSpecRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateApiSpecRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateApiSpecRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CreateApiSpecRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CreateApiSpecRequest.Builder toBuilder()
Returns
TypeDescription
CreateApiSpecRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException